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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x594e97
sub esp, 0x68
lea eax, [0x87f940]
mov dword [esp], eax
call fcn.0040a800
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, [0x814140]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.00527860
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
test eax, eax
jne 0x594ca7
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax]
cmp ecx, 1
jne 0x594c2d
mov ecx, dword [esp + 0x6c]
test ecx, ecx
je 0x594c07
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.00599aa0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x594bc6
mov dword [esp + 0x54], eax
mov dword [esp + 0x3c], ecx
lea eax, [0x869b80]
mov dword [esp], eax
call fcn.0040a800
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.0050a0f0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x4c]
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], eax
mov eax, dword [0xc6be00]
test eax, eax
jne 0x594bb7
mov dword [ebx + 4], ecx
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.004fbf70
mov eax, dword [esp + 8]
test eax, eax
jge 0x594b76
lea eax, [0x89e5a0]
mov dword [esp], eax
call fcn.0040a800
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x3c]
mov dword [eax], ecx
mov edx, dword [0xc6be00]
test edx, edx
jne 0x594b51
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 + 8]
mov ebx, dword [ebx + 4]
lea esi, [ebp - 1]
test esi, esi
jl 0x594b4a
mov ebx, dword [ebx + ebp*4 - 4]
nop
cmp ebx, 0x10000
jb 0x594b43
shr ebx, 0x10
mov ebp, 0x10
cmp ebx, 0x100
jb 0x5949a1
shr ebx, 8
add ebp, 8
cmp ebx, 0x100
jae 0x594e8a
shl esi, 5
lea edi, [0xc1e120]
movzx ebx, byte [edi + ebx]
add ebx, ebp
add ebx, esi
lea eax, [0x843ec0]
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.0043d110
mov eax, dword [esp + 0x5c]
lea edi, [eax + 4]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x34]
jmp 0x5949ff
mov ebx, dword [esp + 0x34]
mov edx, ebx
mov ebx, dword [eax + 0xc]
mov ebp, dword [eax + 8]
mov esi, dword [eax + 4]
cmp ebp, edx
jle 0x594a86
movzx edx, byte [esi]
test dl, dl
jne 0x594a45
lea edx, [ebp - 1]
mov dword [eax + 8], edx
lea edx, [ebx - 1]
mov dword [eax + 0xc], edx
mov ebx, dword [0xc6be00]
neg edx
sar edx, 0x1f
and edx, 1
add edx, esi
test ebx, ebx
jne 0x594a38
mov dword [eax + 4], edx
jmp 0x5949f9
mov ebx, eax
mov eax, edx
call fcn.00451ff0
mov eax, ebx
jmp 0x5949f9
lea eax, [0x85b840]
mov dword [esp], eax
call fcn.0040a800
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x20
lea ecx, [0x8cff98]
mov dword [eax], ecx
mov dword [esp + 0x7c], 0
lea ecx, [0x96e8d0]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
add esp, 0x68
ret
mov eax, edx
sub eax, ebp
cmp eax, edx
ja 0x594e83
mov ebx, edx
sub edx, eax
mov edi, edx
neg edx
sar edx, 0x1f
and edx, eax
lea eax, [edx + ecx]
cmp edi, ebp
jle 0x594b3c
mov dword [esp + 0x58], ecx
cmp eax, esi
je 0x594ac2
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
call fcn.004529a0
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 [0xc6be00]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
test eax, eax
jne 0x594b20
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.00451ff0
lea edi, [ebx + 0xc]
mov eax, edx
call fcn.00451ff0
mov eax, ebx
jmp 0x594b02
mov ebp, edi
jmp 0x594aaa
xor ebp, ebp
jmp 0x594993
xor ebx, ebx
jmp 0x5949be
lea edi, [eax + 4]
mov edx, eax
mov eax, dword [esp + 0x54]
call fcn.00451ff0
lea edi, [edx + 0x10]
mov ebx, eax
mov eax, dword [esp + 0x4c]
call fcn.00451ff0
mov eax, edx
mov edx, ebx
jmp 0x594961
lea eax, [0x85b840]
mov dword [esp], eax
call fcn.0040a800
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x2e
lea ecx, [0x8d7113]
mov dword [eax], ecx
mov dword [esp + 0x7c], 0
lea ecx, [0x96e8d0]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
add esp, 0x68
ret
lea edi, [ebx + 4]
mov eax, ecx
call fcn.00451ff0
jmp 0x5948f3
lea eax, [0x85b840]
mov dword [esp], eax
call fcn.0040a800
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x1c
lea ecx, [0x8cd7bd]
mov dword [eax], ecx
mov dword [esp + 0x7c], 0
lea ecx, [0x96e8d0]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
add esp, 0x68
ret
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x18]
mov ebx, dword [eax + 0x14]
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
call fcn.00599aa0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
jmp 0x594874
mov dword [esp], ecx
call fcn.00408030
mov eax, dword [esp + 4]
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
lea ecx, [0x843000]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
lea eax, [0x8d3d22]
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.004c6360
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
add esp, 0x68
ret
mov dword [esp + 0x38], eax
mov dword [esp + 0x50], ecx
lea eax, [0x877680]
mov dword [esp], eax
call fcn.0040a800
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, [0x814280]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.00527860
mov eax, dword [esp + 0x28]
test eax, eax
je 0x594e42
lea eax, [0x89e7e0]
mov dword [esp], eax
call fcn.0040a800
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, [0x814200]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.00527860
mov eax, dword [esp + 0x28]
test eax, eax
je 0x594e01
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 + 8]
mov ecx, dword [esp + 4]
mov dword [esp], 0
lea edx, [0x8d35ad]
mov dword [esp + 4], edx
mov dword [esp + 8], 0x26
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
call fcn.00440470
mov eax, dword [esp + 0x14]
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x30], ecx
lea edx, [0x85b840]
mov dword [esp], edx
call fcn.0040a800
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x30]
mov dword [edi + 4], eax
mov eax, dword [0xc6be00]
test eax, eax
jne 0x594df6
mov eax, dword [esp + 0x44]
mov dword [edi], eax
mov dword [esp + 0x7c], 0
lea eax, [0x96e8d0]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], edi
add esp, 0x68
ret
mov eax, dword [esp + 0x44]
call fcn.00451ff0
jmp 0x594dd6
lea eax, [0x85b840]
mov dword [esp], eax
call fcn.0040a800
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x58
lea ecx, [0x8de295]
mov dword [eax], ecx
mov dword [esp + 0x7c], 0
lea ecx, [0x96e8d0]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
add esp, 0x68
ret
lea eax, [0x85b840]
mov dword [esp], eax
call fcn.0040a800
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x58
lea ecx, [0x8de2ed]
mov dword [eax], ecx
mov dword [esp + 0x7c], 0
lea ecx, [0x96e8d0]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
add esp, 0x68
ret
mov ecx, edx
call fcn.004520d0
mov eax, ebx
mov ecx, 0x100
call fcn.00452080
nop
call fcn.004507b0
jmp fcn.005947c0