Function at 0x10004d50
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10084822
mov eax, dword fs:[0]
push eax
mov eax, 0x1094
call fcn.100790e0
mov eax, dword [0x100a5c90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10a0], 0x100aa2d0
call fcn.10004910
mov eax, 1
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [0x100aa2d4], eax
mov dword [0x100aa2d8], eax
mov dword [0x100aa2dc], eax
mov edi, 7
xor eax, eax
mov dword [0x100aa2d0], 0x10092894
mov dword [0x100aa2e0], 0x19000
mov dword [ebp - 0x1050], edi
mov dword [ebp - 0x1054], ebx
mov word [ebp - 0x1064], ax
xor ecx, ecx
mov dword [ebp - 0x1018], edi
mov dword [ebp - 0x101c], ebx
mov word [ebp - 0x102c], cx
lea ecx, [ebp - 0x102c]
mov byte [ebp - 4], 2
call fcn.1001fe80
push 0x800
lea edx, [ebp - 0x1010]
push ebx
push edx
call fcn.1006b580
mov eax, dword [ebp - 0x102c]
add esp, 0xc
cmp dword [ebp - 0x1018], 8
jae 0x10004e26
lea eax, [ebp - 0x102c]
mov ecx, dword [ebp - 0x101c]
lea edx, [ecx + ecx]
push edx
push eax
lea eax, [ebp - 0x1010]
push eax
call fcn.10073cd0
add esp, 0xc
lea ecx, [ebp - 0x1010]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor edx, edx
push 0xc
mov eax, 0x100921b0
lea esi, [ebp - 0x1080]
mov dword [ebp - 0x106c], edi
mov dword [ebp - 0x1070], ebx
mov word [ebp - 0x1080], dx
call fcn.10003a30
mov byte [ebp - 4], 3
xor eax, eax
mov word [ebp - 0x1048], ax
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x1034], edi
mov dword [ebp - 0x1038], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10004e96
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x1010]
lea esi, [ebp - 0x1048]
call fcn.10003a30
mov ecx, esi
push ecx
lea edx, [ebp - 0x1080]
lea ecx, [ebp - 0x109c]
mov byte [ebp - 4], 4
call fcn.1001fca0
add esp, 4
mov edi, eax
lea esi, [ebp - 0x1064]
mov byte [ebp - 4], 5
call fcn.100037e0
mov esi, 8
cmp dword [ebp - 0x1088], esi
jb 0x10004eff
mov edx, dword [ebp - 0x109c]
push edx
call fcn.10066b10
add esp, 4
xor eax, eax
mov edi, 7
mov dword [ebp - 0x1088], edi
mov dword [ebp - 0x108c], ebx
mov word [ebp - 0x109c], ax
cmp dword [ebp - 0x1034], esi
jb 0x10004f30
mov ecx, dword [ebp - 0x1048]
push ecx
call fcn.10066b10
add esp, 4
xor edx, edx
mov dword [ebp - 0x1034], edi
mov dword [ebp - 0x1038], ebx
mov word [ebp - 0x1048], dx
cmp dword [ebp - 0x106c], esi
jb 0x10004f5c
mov eax, dword [ebp - 0x1080]
push eax
call fcn.10066b10
add esp, 4
mov eax, dword [ebp - 0x1064]
cmp dword [ebp - 0x1050], esi
jae 0x10004f70
lea eax, [ebp - 0x1064]
push eax
push 0x800
push 0x100ab2e4
call fcn.100676b5
add esp, 0xc
cmp dword [ebp - 0x1018], esi
jb 0x10004f9a
mov ecx, dword [ebp - 0x102c]
push ecx
call fcn.10066b10
add esp, 4
xor edx, edx
mov dword [ebp - 0x1018], edi
mov dword [ebp - 0x101c], ebx
mov word [ebp - 0x102c], dx
cmp dword [ebp - 0x1050], esi
jb 0x10004fc6
mov eax, dword [ebp - 0x1064]
push eax
call fcn.10066b10
add esp, 4
mov eax, 0x100aa2d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10066b1b
mov esp, ebp
pop ebp
ret