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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x51bba4
sub esp, 0x64
mov eax, dword [esp + 0x68]
test eax, eax
je 0x51bb33
nop
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x51bb18
xor edx, edx
test edx, edx
jge 0x51b946
mov byte [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
nop
nop
lea ecx, [esp + 0x54]
cmp eax, ecx
je 0x51b6d6
mov edx, dword [eax + 8]
nop
mov ebx, dword [eax + 4]
nop
test edx, edx
jg 0x51b8bc
mov ebp, edx
xor esi, esi
xor edi, edi
cmp edx, ebp
jle 0x51b8b5
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x48], edi
cmp edi, ebx
je 0x51b6b3
mov dword [esp], edi
mov dword [esp + 4], ebx
shl ebp, 2
mov dword [esp + 8], ebp
call fcn.0044d6a0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x68]
movzx eax, byte [eax]
mov byte [esp + 0x54], al
mov eax, dword [esp + 0x5c]
test eax, eax
jle 0x51b8ae
movzx eax, byte [esp + 0x54]
xor eax, 1
mov byte [esp + 0x54], al
lea eax, [esp + 0x54]
mov dword [esp], eax
mov dword [esp + 4], eax
mov eax, dword [0x726f4c]
mov dword [esp + 8], eax
call fcn.004c71e0
nop
mov eax, dword [esp + 0x5c]
lea ecx, [0x597d60]
mov dword [esp], ecx
shl eax, 2
mov dword [esp + 0x24], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.00438f10
mov eax, dword [esp + 0xc]
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x58]
mov ebx, dword [esp + 0x5c]
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
call fcn.004d1230
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
cmp eax, ecx
ja 0x51bb9d
sub ecx, eax
mov edx, ecx
neg ecx
sar ecx, 0x1f
and eax, ecx
mov ecx, dword [esp + 0x44]
lea ebx, [ecx + eax]
xor ebp, ebp
jmp 0x51b78e
movzx esi, byte [ebp + ebx]
xor esi, 0xffffffff
xchg esi, eax
mov byte [ebx + ebp], al
xchg esi, eax
inc ebp
cmp ebp, edx
jge 0x51b799
jb 0x51b780
jmp 0x51bb96
mov dword [esp + 0x2c], edx
mov dword [esp + 0x34], ebx
test edx, edx
jne 0x51b86b
lea eax, [0x5921e0]
mov dword [esp], eax
call fcn.00409bc0
mov eax, dword [0x7237d0]
mov ecx, dword [esp + 4]
mov dword [esp + 0x40], ecx
mov edx, dword [0x7237d4]
mov dword [ecx], eax
mov eax, dword [0x738420]
test eax, eax
jne 0x51b85c
mov dword [ecx + 4], edx
mov eax, dword [esp + 0x34]
mov dword [esp], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.00407650
mov eax, dword [esp + 0xc]
lea ecx, [0x602100]
mov edx, dword [esp + 0x40]
mov dword [edx + 8], ecx
mov ecx, dword [0x738420]
test ecx, ecx
jne 0x51b852
mov dword [edx + 0xc], eax
mov dword [esp], edx
mov dword [esp + 4], 2
mov dword [esp + 8], 2
call fcn.00407650
mov eax, dword [esp + 0xc]
lea ecx, [0x602140]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x64
ret
lea edi, [edx + 0xc]
call fcn.0044cea0
jmp 0x51b814
lea edi, [ecx + 4]
mov eax, edx
call fcn.0044cea0
jmp 0x51b7de
movzx eax, byte [eax + ecx]
test al, 0x80
je 0x51b7a9
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], edx
call fcn.00407650
mov eax, dword [esp + 0xc]
lea ecx, [0x602100]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x64
ret
xor eax, eax
jmp 0x51b6ea
mov ebp, edx
jmp 0x51b690
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ebx
cmp edx, 1
jne 0x51b90a
lea eax, [0x5974e0]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00438f10
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x54]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x2c]
mov esi, 1
mov edx, 1
jmp 0x51b688
lea eax, [0x5974e0]
mov dword [esp], eax
mov dword [esp + 4], edx
lea eax, [edx + 4]
mov dword [esp + 0x20], eax
mov dword [esp + 8], eax
call fcn.00438f10
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x54]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x20]
mov edx, ebp
jmp 0x51b688
nop
test ecx, ecx
jne 0x51bafd
xor edx, edx
test edx, edx
je 0x51bad5
nop
lea eax, [0x597d60]
mov dword [esp], eax
shl ecx, 2
mov dword [esp + 0x28], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.00438f10
mov eax, dword [esp + 0xc]
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x68]
mov edx, dword [ecx + 0xc]
mov ebx, dword [ecx + 8]
mov ecx, dword [ecx + 4]
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
call fcn.004d1230
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
ja 0x51bb8f
sub ecx, eax
mov edx, ecx
neg ecx
sar ecx, 0x1f
and eax, ecx
mov ecx, dword [esp + 0x44]
lea ebx, [ecx + eax]
test edx, edx
jle 0x51b9d7
movzx eax, byte [eax + ecx]
test al, 0x80
jne 0x51ba0d
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], edx
call fcn.00407650
mov eax, dword [esp + 0xc]
lea ecx, [0x602100]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x64
ret
mov dword [esp + 0x2c], edx
mov dword [esp + 0x38], ebx
lea eax, [0x5921e0]
mov dword [esp], eax
call fcn.00409bc0
mov eax, dword [0x7237cc]
mov ecx, dword [0x7237c8]
mov edx, dword [esp + 4]
mov dword [esp + 0x3c], edx
mov dword [edx], ecx
mov ecx, dword [0x738420]
test ecx, ecx
jne 0x51bac8
mov dword [edx + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.00407650
mov eax, dword [esp + 0xc]
lea ecx, [0x602100]
mov edx, dword [esp + 0x3c]
mov dword [edx + 8], ecx
mov ecx, dword [0x738420]
test ecx, ecx
jne 0x51babe
mov dword [edx + 0xc], eax
mov dword [esp], edx
mov dword [esp + 4], 2
mov dword [esp + 8], 2
call fcn.00407650
mov eax, dword [esp + 0xc]
lea ecx, [0x602140]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x64
ret
lea edi, [edx + 0xc]
call fcn.0044cea0
jmp 0x51ba80
lea edi, [edx + 4]
call fcn.0044cea0
jmp 0x51ba4a
mov eax, dword [0x7237cc]
mov ecx, dword [0x7237c8]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x64
ret
movzx edx, byte [eax]
test dl, dl
je 0x51bb0e
mov edx, 0xffffffff
jmp 0x51b951
mov edx, 1
jmp 0x51b951
movzx edx, byte [eax]
test dl, dl
je 0x51bb29
mov edx, 0xffffffff
jmp 0x51b643
mov edx, 1
jmp 0x51b643
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
lea eax, [0x5c81ee]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], 0xd
lea eax, [0x6011c0]
mov dword [esp], eax
lea eax, [esp + 0x4c]
mov dword [esp + 4], eax
call fcn.00407740
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
add esp, 0x64
ret
call fcn.00427100
ud2
call fcn.00427000
ud2
call fcn.00427100
ud2
call fcn.0044b750
jmp fcn.0051b610