Function at 0x51566c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1016df7b
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x101fdf00]
xor eax, esp
mov dword [esp + 0xf0], eax
push ebx
push esi
push edi
mov eax, dword [0x101fdf00]
xor eax, esp
push eax
lea eax, [esp + 0x108]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ecx], ebx
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], edx
mov dword [edx], ebx
cmp eax, ebx
jne 0x51572b
xor edi, edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x110], ebx
call fcn.005151fc
movzx eax, ax
xor edx, edx
cmp ax, dx
je 0x5157e1
cmp di, dx
je 0x51575c
cmp di, ax
je 0x51575c
push 0x2af9
call dword [0x10171320]
xor eax, eax
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf0]
xor ecx, esp
call fcn.00633420
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x515735
lea edi, [eax + 1]
jmp 0x5156ca
sub eax, 2
neg eax
sbb eax, eax
and eax, 0xe8
add eax, 0x17
movzx edi, ax
mov eax, 0xff
cmp di, ax
jne 0x5156ca
push 0x273f
jmp 0x5156ff
mov word [esp + 0x58], ax
cmp eax, 2
je 0x515772
cmp eax, 0x17
je 0x515779
push 0x2741
jmp 0x5156ff
mov ecx, 0x10
jmp 0x51577e
mov ecx, 0x1c
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x5c]
push ecx
push edx
push eax
push esi
call dword [0x10171314]
test eax, eax
jne 0x515705
lea eax, [esp + 0x58]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
lea edi, [esp + 0x18]
call fcn.00516d9c
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
push ecx
push edx
mov eax, edi
push eax
call fcn.005159fc
mov esi, eax
mov eax, dword [esp + 0x24]
add esp, 0xc
test eax, eax
je 0x5157da
push eax
call fcn.00633415
add esp, 4
mov eax, esi
jmp 0x515707
xor eax, eax
mov dword [esp + 0x3c], eax
movzx ecx, di
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
lea eax, [esp + 0x78]
mov dword [esp + 0x28], edx
mov dword [esp + 0x38], 0x100
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x74], eax
cmp esi, edx
jne 0x51585a
mov dword [esp + 0x74], edx
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x3c]
push edx
push 0
push eax
call dword [0x10171310]
mov esi, eax
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x78]
cmp eax, ecx
je 0x515850
push eax
call fcn.00633594
add esp, 4
test esi, esi
je 0x5158b8
push esi
jmp 0x5156ff
push esi
call dword [0x101710ac]
inc eax
lea edi, [esp + 0x78]
mov ecx, eax
lea esi, [esp + 0x74]
mov dword [esp + 0x14], eax
call fcn.005063bc
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x74]
push eax
push ecx
push eax
push edx
call fcn.00634bb4
add esp, 0x10
cmp eax, 0x50
ja 0x515987
movzx eax, byte [eax + 0x100369a8]
jmp dword [eax*4 + 0x10036998]
mov eax, dword [esp + 0x28]
mov edi, eax
test eax, eax
je 0x515938
mov eax, dword [edi + 4]
cmp eax, 2
je 0x5158cf
cmp eax, 0x17
jne 0x515931
mov esi, dword [edi + 0x18]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], esi
cmp edx, ebx
jae 0x515911
mov eax, dword [esp + 0x18]
mov ecx, edx
cmp eax, ecx
ja 0x515911
mov esi, edx
sub esi, eax
sar esi, 2
cmp ebx, dword [esp + 0x20]
jne 0x515906
lea eax, [esp + 0x18]
call fcn.00516dfc
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
test ebx, ebx
je 0x51592a
mov edx, dword [eax + esi*4]
mov dword [ebx], edx
jmp 0x51592a
cmp ebx, dword [esp + 0x20]
jne 0x515924
lea eax, [esp + 0x18]
call fcn.00516dfc
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x51592a
mov dword [ebx], esi
add ebx, 4
mov dword [esp + 0x1c], ebx
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x5158c2
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
push eax
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.005159fc
mov esi, eax
mov eax, dword [esp + 0x34]
add esp, 0xc
push eax
call dword [0x1017130c]
test esi, esi
jne 0x51596b
push 0x2af9
call dword [0x10171320]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x5157da
push eax
call fcn.00633415
add esp, 4
mov eax, esi
jmp 0x515707
push 0x80004005
call fcn.004e165c
lea ecx, [ecx]
push 0x68a81003
add edx, dword [eax]
mov dl, 0x68
add edx, dword [eax]
mov ebp, dword [ecx + 3]
adc byte [eax], al
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ecx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [eax]
int3