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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x51f138
sub esp, 0x6c
mov eax, dword [esp + 0x70]
test eax, eax
je 0x51efac
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x51ec00
xor edx, edx
jmp 0x51ec13
movzx edx, byte [eax]
test dl, dl
je 0x51ec0e
mov edx, 0xffffffff
jmp 0x51ec13
mov edx, 1
test edx, edx
jge 0x51edd9
mov byte [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
nop
lea ecx, [esp + 0x5c]
cmp eax, ecx
je 0x51ed30
mov edx, dword [eax + 8]
mov ebx, dword [eax + 4]
test edx, edx
jg 0x51ec5a
mov ebp, edx
xor esi, esi
xor edi, edi
jmp 0x51ece0
mov dword [esp + 0x28], edx
mov dword [esp + 0x44], ebx
cmp edx, 1
jne 0x51eca7
lea eax, [0x60d280]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00447550
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x5c]
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x28]
mov edx, 1
mov esi, eax
mov edi, 1
mov eax, dword [esp + 0x70]
jmp 0x51ece0
lea eax, [0x60d280]
mov dword [esp], eax
mov dword [esp + 4], edx
lea eax, [edx + 4]
mov dword [esp + 0x1c], eax
mov dword [esp + 8], eax
call fcn.00447550
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x5c]
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x28]
mov edx, ebp
mov esi, eax
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x70]
cmp edx, ebp
jg 0x51ece6
mov ebp, edx
cmp esi, ebx
je 0x51ed1d
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edx
mov dword [esp + 0x40], esi
mov dword [esp], esi
mov dword [esp + 4], ebx
shl ebp, 2
mov dword [esp + 8], ebp
call fcn.0045ef80
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x5c]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], edi
mov dword [esp + 0x60], esi
movzx eax, byte [eax]
mov byte [esp + 0x5c], al
mov eax, dword [esp + 0x64]
test eax, eax
jle 0x51ed42
movzx eax, byte [esp + 0x5c]
xor eax, 1
jmp 0x51ed44
xor eax, eax
mov byte [esp + 0x5c], al
mov eax, dword [0x7eeaa0]
mov dword [esp], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004f1ae0
nop
mov eax, dword [esp + 0x64]
lea ecx, [0x60da40]
mov dword [esp], ecx
shl eax, 2
mov dword [esp + 0x2c], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.00447550
mov eax, dword [esp + 0xc]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x68]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
call fcn.004fae30
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
ja 0x51f132
sub ecx, eax
mov edx, ecx
neg ecx
sar ecx, 0x1f
and eax, ecx
mov ebx, dword [esp + 0x50]
lea ebp, [ebx + eax]
xor ecx, ecx
jmp 0x51f00e
test ecx, ecx
jne 0x51ede1
xor edx, edx
jmp 0x51edf4
movzx edx, byte [eax]
test dl, dl
je 0x51edef
mov edx, 0xffffffff
jmp 0x51edf4
mov edx, 1
test edx, edx
je 0x51ef81
nop
lea eax, [0x60da40]
mov dword [esp], eax
shl ecx, 2
mov dword [esp + 0x30], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.00447550
mov eax, dword [esp + 0xc]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + 4]
mov ebx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
call fcn.004fae30
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
cmp eax, ecx
ja 0x51effb
sub ecx, eax
mov edx, ecx
neg ecx
sar ecx, 0x1f
and eax, ecx
mov ecx, dword [esp + 0x50]
lea ebx, [ecx + eax]
test edx, edx
jle 0x51ef48
movzx eax, byte [eax + ecx]
test al, 0x80
je 0x51ef48
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], ebx
lea eax, [0x6097c0]
mov dword [esp], eax
call fcn.0040b5f0
mov eax, dword [esp + 4]
mov dword [esp + 0x4c], eax
mov ecx, dword [0x7e9cd4]
mov edx, dword [0x7e9cd0]
mov dword [eax], edx
mov edx, dword [0x816df0]
test edx, edx
jne 0x51eebd
mov dword [eax + 4], ecx
jmp 0x51eec7
lea edi, [eax + 4]
mov eax, ecx
call fcn.0045e5d0
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.00408f30
mov eax, dword [esp + 0xc]
lea ecx, [0x6a300c]
mov edx, dword [esp + 0x4c]
mov dword [edx + 8], ecx
mov ecx, dword [0x816df0]
test ecx, ecx
jne 0x51eeff
mov dword [edx + 0xc], eax
jmp 0x51ef07
lea edi, [edx + 0xc]
call fcn.0045e5d0
mov dword [esp], edx
mov dword [esp + 4], 2
mov dword [esp + 8], 2
call fcn.00408f30
mov eax, dword [esp + 0xc]
lea ecx, [0x6a303c]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
add esp, 0x6c
ret
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], edx
call fcn.00408f30
mov eax, dword [esp + 0xc]
lea ecx, [0x6a300c]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
add esp, 0x6c
ret
mov eax, dword [0x7e9cd0]
mov ecx, dword [0x7e9cd4]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
add esp, 0x6c
ret
lea eax, [0x63ed7c]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 0xd
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov dword [esp + 4], 0xd
call fcn.00408eb0
mov eax, dword [esp + 8]
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
lea ecx, [0x69f94c]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], eax
add esp, 0x6c
ret
call fcn.0045e6b0
movzx esi, byte [ecx + ebp]
xor esi, 0xffffffff
xchg esi, eax
mov byte [ebp + ecx], al
xchg esi, eax
inc ecx
cmp ecx, edx
jge 0x51f019
jb 0x51f000
jmp 0x51f129
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], ebp
test edx, edx
je 0x51f032
movzx eax, byte [eax + ebx]
test al, 0x80
jne 0x51f0f0
lea eax, [0x6097c0]
mov dword [esp], eax
call fcn.0040b5f0
mov eax, dword [esp + 4]
mov dword [esp + 0x48], eax
mov ecx, dword [0x7e9cdc]
mov edx, dword [0x7e9cd8]
mov dword [eax], edx
mov edx, dword [0x816df0]
test edx, edx
jne 0x51f065
mov dword [eax + 4], ecx
jmp 0x51f06f
lea edi, [eax + 4]
mov eax, ecx
call fcn.0045e5d0
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.00408f30
mov eax, dword [esp + 0xc]
lea ecx, [0x6a300c]
mov edx, dword [esp + 0x48]
mov dword [edx + 8], ecx
mov ecx, dword [0x816df0]
test ecx, ecx
jne 0x51f0a7
mov dword [edx + 0xc], eax
jmp 0x51f0af
lea edi, [edx + 0xc]
call fcn.0045e5d0
mov dword [esp], edx
mov dword [esp + 4], 2
mov dword [esp + 8], 2
call fcn.00408f30
mov eax, dword [esp + 0xc]
lea ecx, [0x6a303c]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
add esp, 0x6c
ret
mov dword [esp], ebp
mov dword [esp + 4], edx
mov dword [esp + 8], edx
call fcn.00408f30
mov eax, dword [esp + 0xc]
lea ecx, [0x6a300c]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
add esp, 0x6c
ret
mov eax, ecx
mov ecx, edx
call fcn.0045e650
call fcn.0045e6b0
nop
call fcn.0045d190
jmp fcn.0051ebd0