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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5123d8
sub esp, 0x68
lea eax, [0x549e60]
mov dword [esp], eax
call fcn.0040a710
mov eax, dword [esp + 4]
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 0x70]
mov dword [esp], ecx
mov edx, dword [esp + 0x74]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x78]
mov dword [esp + 8], ebx
lea ebp, [0x52e120]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.004da400
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
test ecx, ecx
jne 0x5121e8
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax]
cmp ecx, 1
jne 0x51216e
mov ecx, dword [esp + 0x6c]
test ecx, ecx
je 0x512148
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.00513d40
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x512107
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x54], eax
lea eax, [0x543840]
mov dword [esp], eax
call fcn.0040a710
mov eax, dword [esp + 4]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx + 0xc]
mov ebx, dword [ecx + 8]
mov ebp, dword [ecx + 4]
mov esi, dword [eax + 0xc]
mov edi, dword [eax + 8]
mov ecx, dword [eax + 4]
mov dword [esp], ecx
mov dword [esp + 4], edi
mov dword [esp + 8], esi
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edx
call fcn.004c48a0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x4c]
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], eax
mov eax, dword [0x67bf10]
test eax, eax
jne 0x5120f8
mov dword [ebx + 4], edx
mov byte [ebx], 0
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0x1c]
mov edx, dword [esp + 0x54]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 4]
mov eax, dword [eax + 4]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x4c]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004b9000
mov eax, dword [esp + 8]
test eax, eax
jge 0x5120b7
lea eax, [0x54ff80]
mov dword [esp], eax
call fcn.0040a710
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x3c]
mov dword [eax], ecx
mov edx, dword [0x67bf10]
test edx, edx
jne 0x512092
mov edx, dword [esp + 0x54]
mov dword [eax + 4], edx
mov ebx, dword [esp + 0x4c]
mov dword [eax + 0x10], ebx
mov dword [esp + 0x48], eax
mov ebx, dword [esp + 0x40]
mov ebp, dword [ebx + 4]
mov ebx, dword [ebx + 8]
lea esi, [ebx - 1]
test esi, esi
jl 0x51208b
mov ebx, dword [ebp + ebx*4 - 4]
nop
cmp ebx, 0x10000
jb 0x512084
shr ebx, 0x10
mov ebp, 0x10
cmp ebx, 0x100
jb 0x511ee1
shr ebx, 8
add ebp, 8
cmp ebx, 0x100
jae 0x5123cb
shl esi, 5
lea edi, [0x64f440]
movzx ebx, byte [edi + ebx]
add ebx, ebp
add ebx, esi
lea eax, [0x53b4c0]
mov dword [esp], eax
lea eax, [ebx + 7]
sar eax, 0x1f
shr eax, 0x1d
lea eax, [eax + ebx + 7]
sar eax, 3
mov dword [esp + 0x34], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.00440360
mov eax, dword [esp + 0x5c]
lea edi, [eax + 4]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x34]
jmp 0x511f3f
mov ebx, dword [esp + 0x34]
mov edx, ebx
mov ebx, dword [eax + 8]
mov ebp, dword [eax + 4]
mov esi, dword [eax + 0xc]
cmp ebx, edx
jle 0x511fc7
movzx edx, byte [ebp]
test dl, dl
jne 0x511f86
lea edx, [ebx - 1]
mov dword [eax + 8], edx
lea edx, [esi - 1]
mov dword [eax + 0xc], edx
mov ebx, dword [0x67bf10]
neg edx
sar edx, 0x1f
and edx, 1
add edx, ebp
test ebx, ebx
jne 0x511f79
mov dword [eax + 4], edx
jmp 0x511f39
mov ebx, eax
mov eax, edx
call fcn.00455bf0
mov eax, ebx
jmp 0x511f39
lea eax, [0x53ff20]
mov dword [esp], eax
call fcn.0040a710
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x20
lea ecx, [0x562362]
mov dword [eax], ecx
mov dword [esp + 0x7c], 0
lea ecx, [0x58a9f0]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
add esp, 0x68
ret
mov eax, edx
sub eax, ebx
cmp eax, edx
ja 0x5123c4
mov esi, edx
sub edx, eax
mov edi, edx
neg edx
sar edx, 0x1f
and edx, eax
lea eax, [edx + ecx]
cmp edi, ebx
jle 0x51207d
mov dword [esp + 0x58], ecx
cmp eax, ebp
je 0x512003
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
call fcn.00456550
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x20]
mov ecx, dword [esp + 0x54]
mov dword [esp], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
call eax
mov eax, dword [0x67bf10]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
test eax, eax
jne 0x512061
mov eax, dword [esp + 0x48]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
add esp, 0x68
ret
mov ebx, dword [esp + 0x48]
lea edi, [ebx + 8]
mov eax, ecx
call fcn.00455bf0
lea edi, [ebx + 0xc]
mov eax, edx
call fcn.00455bf0
mov eax, ebx
jmp 0x512043
mov ebx, edi
jmp 0x511feb
xor ebp, ebp
jmp 0x511ed3
xor ebx, ebx
jmp 0x511efe
lea edi, [eax + 4]
mov edx, eax
mov eax, dword [esp + 0x54]
call fcn.00455bf0
lea edi, [edx + 0x10]
mov ebx, eax
mov eax, dword [esp + 0x4c]
call fcn.00455bf0
mov eax, edx
mov edx, ebx
jmp 0x511ea1
lea eax, [0x53ff20]
mov dword [esp], eax
call fcn.0040a710
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x2e
lea ecx, [0x565122]
mov dword [eax], ecx
mov dword [esp + 0x7c], 0
lea ecx, [0x58a9f0]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
add esp, 0x68
ret
lea edi, [ebx + 4]
mov eax, edx
call fcn.00455bf0
jmp 0x511e33
lea eax, [0x53ff20]
mov dword [esp], eax
call fcn.0040a710
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x1c
lea ecx, [0x5610c4]
mov dword [eax], ecx
mov dword [esp + 0x7c], 0
lea ecx, [0x58a9f0]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
add esp, 0x68
ret
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x10]
mov ebx, dword [eax + 0x18]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
call fcn.00513d40
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
jmp 0x511db4
mov dword [esp], ecx
call fcn.00407fe0
mov eax, dword [esp + 4]
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
lea ecx, [0x53aac0]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
lea eax, [0x563da2]
mov dword [esp], eax
mov dword [esp + 4], 0x27
lea eax, [esp + 0x60]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004a36f0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
add esp, 0x68
ret
mov dword [esp + 0x50], eax
mov dword [esp + 0x38], ecx
lea eax, [0x5475e0]
mov dword [esp], eax
call fcn.0040a710
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x70]
mov dword [esp], ecx
mov edx, dword [esp + 0x74]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x78]
mov dword [esp + 8], ebx
lea ebp, [0x52e220]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.004da400
mov eax, dword [esp + 0x28]
test eax, eax
je 0x512383
lea eax, [0x550040]
mov dword [esp], eax
call fcn.0040a710
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x70]
mov dword [esp], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 8], ecx
lea ecx, [0x52e1a0]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.004da400
mov eax, dword [esp + 0x28]
test eax, eax
je 0x512342
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 0x10]
mov ecx, dword [esp + 0x50]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp], 0
lea edx, [0x563abf]
mov dword [esp + 4], edx
mov dword [esp + 8], 0x26
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
call fcn.004437f0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x30], ecx
lea edx, [0x53ff20]
mov dword [esp], edx
call fcn.0040a710
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x30]
mov dword [edi + 4], eax
mov eax, dword [0x67bf10]
test eax, eax
jne 0x512337
mov eax, dword [esp + 0x44]
mov dword [edi], eax
mov dword [esp + 0x7c], 0
lea eax, [0x58a9f0]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], edi
add esp, 0x68
ret
mov eax, dword [esp + 0x44]
call fcn.00455bf0
jmp 0x512317
lea eax, [0x53ff20]
mov dword [esp], eax
call fcn.0040a710
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x58
lea ecx, [0x566e9e]
mov dword [eax], ecx
mov dword [esp + 0x7c], 0
lea ecx, [0x58a9f0]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
add esp, 0x68
ret
lea eax, [0x53ff20]
mov dword [esp], eax
call fcn.0040a710
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x58
lea ecx, [0x566ef6]
mov dword [eax], ecx
mov dword [esp + 0x7c], 0
lea ecx, [0x58a9f0]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
add esp, 0x68
ret
mov ecx, edx
call fcn.00455cd0
mov eax, ebx
mov ecx, 0x100
call fcn.00455c80
nop
call fcn.004543b0
jmp fcn.00511d00