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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x358]
cmp eax, dword [ecx + 8]
jbe 0x597b22
sub esp, 0x3d8
lea eax, [0x5c4c40]
mov dword [esp], eax
call fcn.0040b8e0
mov eax, dword [esp + 4]
lea ecx, [0x599e10]
mov dword [eax], ecx
mov ecx, dword [0x770e60]
test ecx, ecx
jne 0x597b03
mov ecx, dword [esp + 0x3dc]
mov dword [eax + 4], ecx
mov dword [esp + 0x78], eax
mov edx, dword [ecx + 0x108]
movzx edx, byte [edx]
test dl, dl
jne 0x5976d6
mov edx, dword [0x770e60]
test edx, edx
jne 0x5976c0
lea edx, [0x601d40]
mov dword [0x751f0c], edx
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
mov eax, dword [ecx + 0xdc]
mov edx, dword [ecx + 0xe0]
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], edx
lea eax, [0x5eb587]
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], 3
lea eax, [esp + 0x9c]
mov dword [esp], eax
mov dword [esp + 4], 2
mov dword [esp + 8], 2
call fcn.00547500
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
lea eax, [esp + 0x8c]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00547390
mov eax, dword [esp + 0xc]
mov dword [esp + 0x60], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov edx, dword [esp + 0x3dc]
mov ebx, dword [edx + 0xc0]
mov ebp, dword [edx + 0xc4]
mov dword [esp], ebx
mov dword [esp + 4], ebp
call fcn.00409140
mov eax, dword [esp + 8]
lea ecx, [0x5beac0]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
lea eax, [0x5ebb37]
mov dword [esp], eax
mov dword [esp + 4], 6
lea eax, [esp + 0x84]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004c09b0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
mov edx, dword [esp + 0x60]
mov dword [esp + 0x9c], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], ecx
lea eax, [esp + 0x9c]
mov dword [esp], eax
mov dword [esp + 4], 2
mov dword [esp + 8], 2
call fcn.00547500
mov eax, dword [esp + 0xc]
mov dword [esp + 0x64], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x3c], ecx
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x441
mov dword [esp + 0xc], 0x1a4
call fcn.004b9290
mov eax, dword [0x770e60]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
test eax, eax
jne 0x5976a7
mov eax, dword [esp + 0x3dc]
mov dword [eax + 0x104], ecx
test edx, edx
jne 0x597692
mov eax, dword [esp + 0x64]
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov dword [esp + 8], 5
call fcn.00586320
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
test ecx, ecx
jne 0x59767d
mov dword [esp + 0x5c], eax
lea eax, [0x5b8cc0]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.004046e0
mov eax, dword [esp + 8]
mov dword [esp + 0x58], eax
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
lea ecx, [0x63b030]
mov dword [esp + 0x7c], ecx
lea ecx, [0x60218c]
mov dword [esp + 0x80], ecx
mov dword [esp], eax
lea ecx, [esp + 0x7c]
mov dword [esp + 4], ecx
mov dword [esp + 8], 1
mov dword [esp + 0xc], 1
call fcn.00585d30
mov dword [esp], 8
lea eax, [0x601d18]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0xc], eax
call fcn.0043bf50
lea edi, [esp + 0x398]
xor eax, eax
call fcn.0045e1f0
lea ecx, [0x639fa4]
mov dword [esp + 0x398], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x39c], ecx
lea ecx, [0x5f4c62]
mov dword [esp + 0x3a4], ecx
mov dword [esp + 0x3a8], 0x1d
mov byte [esp + 0x3a0], 1
lea ecx, [0x63a288]
mov dword [esp], ecx
lea ecx, [esp + 0x398]
mov dword [esp + 4], ecx
call fcn.004092b0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
test eax, eax
je 0x59766c
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x28], eax
lea edx, [0x5c6ca0]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00409460
movzx eax, byte [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
test al, al
je 0x59761a
mov dword [esp + 0x2c], ecx
lea edi, [esp + 0x290]
xor eax, eax
call fcn.0045e1f5
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x290], ecx
mov dword [esp + 0x294], edx
mov byte [esp + 0x298], 0xff
lea edi, [esp + 0x188]
lea esi, [esp + 0x290]
call fcn.0045e6a2
mov ecx, dword [esp + 0x1a0]
mov dword [esp + 0x44], ecx
mov edx, dword [esp + 0x19c]
mov dword [esp + 0x68], edx
lea ebx, [0x5bec80]
mov dword [esp], ebx
mov dword [esp + 4], 0
mov dword [esp + 8], 0x1f4
call fcn.00444f30
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x19c], ecx
mov dword [esp + 0x1a0], 0
mov dword [esp + 0x1a4], 0x1f4
mov edx, dword [esp + 0x68]
test edx, edx
je 0x5975f5
mov eax, dword [esp + 0x44]
cmp eax, 0x1f4
ja 0x5975ba
mov ebx, 0x1f4
mov dword [esp + 0x48], ebx
mov dword [esp + 0x74], ecx
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.0045e900
mov eax, dword [esp + 0x74]
mov dword [esp + 0x19c], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1a0], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x1a4], eax
lea edi, [esp + 0x36c]
xor eax, eax
call fcn.0045e1f5
lea edi, [esp + 0x36c]
lea esi, [esp + 0x188]
call fcn.0045e6a2
lea edi, [esp + 0x1e0]
lea esi, [esp + 0x36c]
call fcn.0045e6a2
mov ecx, dword [0x770b94]
mov dword [esp], ecx
call fcn.00409030
mov eax, dword [esp + 4]
lea edi, [esp + 0xac]
lea esi, [esp + 0x1e0]
call fcn.0045e6a2
mov ecx, dword [esp + 0xd0]
lea edx, [ecx + 1]
mov ebx, dword [esp + 0xcc]
mov ebp, dword [esp + 0xd4]
cmp ebp, edx
jb 0x597575
lea edx, [ecx + 1]
mov dword [esp + 0xd0], edx
lea edx, [ebx + ecx*8]
lea ebp, [0x63a2c4]
mov dword [edx], ebp
mov edx, dword [0x770e60]
lea edi, [ebx + ecx*8 + 4]
test edx, edx
jne 0x59756b
mov dword [edi], eax
lea edi, [esp + 0x1e0]
lea esi, [esp + 0xac]
call fcn.0045e6a2
lea edi, [esp + 0x20c]
lea esi, [esp + 0x1e0]
call fcn.0045e6a2
lea edi, [esp + 0x15c]
lea esi, [esp + 0x20c]
call fcn.0045e6a2
mov ecx, dword [esp + 0x180]
lea edx, [ecx + 1]
mov ebx, dword [esp + 0x17c]
mov ebp, dword [esp + 0x184]
cmp ebp, edx
jb 0x59752e
lea edx, [ecx + 1]
mov dword [esp + 0x180], edx
lea edx, [ebx + ecx*8]
lea ebp, [0x63a2d8]
mov dword [edx], ebp
mov edx, dword [0x770e60]
lea edi, [ebx + ecx*8 + 4]
test edx, edx
jne 0x59751e
lea ecx, [0x770c9c]
mov dword [edi], ecx
lea edi, [esp + 0x20c]
lea esi, [esp + 0x15c]
call fcn.0045e6a2
lea edi, [esp + 0x238]
lea esi, [esp + 0x20c]
call fcn.0045e6a2
lea edi, [esp + 0x130]
lea esi, [esp + 0x238]
call fcn.0045e6a2
mov ecx, dword [esp + 0x154]
lea edx, [ecx + 1]
mov ebx, dword [esp + 0x150]
mov ebp, dword [esp + 0x158]
cmp ebp, edx
jb 0x5974e1
lea edx, [ecx + 1]
mov dword [esp + 0x154], edx
lea edx, [ebx + ecx*8]
lea ebp, [0x63a29c]
mov dword [edx], ebp
mov edx, dword [0x770e60]
lea edi, [ebx + ecx*8 + 4]
test edx, edx
jne 0x5974d6
mov eax, dword [esp + 0x78]
mov dword [edi], eax
mov eax, dword [0x770e60]
test eax, eax
jne 0x5974b1
lea edi, [0x7535c0]
lea esi, [esp + 0x130]
call fcn.0045e6a2
nop
mov eax, dword [0x751f18]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00462d90
mov dword [esp + 0x3e0], 0
mov dword [esp + 0x3e4], 0
add esp, 0x3d8
ret
lea eax, [0x5e0660]
mov dword [esp], eax
lea eax, [0x7535c0]
mov dword [esp + 4], eax
lea eax, [esp + 0x130]
mov dword [esp + 8], eax
call fcn.004106b0
jmp 0x59747d
mov eax, dword [esp + 0x78]
call fcn.0045df70
jmp 0x597461
lea eax, [0x5c4040]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], edx
call fcn.004450a0
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x158], eax
mov dword [esp + 0x150], ebx
jmp 0x597438
lea eax, [0x770c9c]
call fcn.0045df70
jmp 0x5973df
lea eax, [0x5c4040]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], edx
call fcn.004450a0
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x184], eax
mov dword [esp + 0x17c], ebx
jmp 0x5973b0
call fcn.0045df70
jmp 0x597357
mov dword [esp + 0x70], eax
lea eax, [0x5c4040]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], edx
call fcn.004450a0
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xd4], eax
mov dword [esp + 0xcc], ebx
mov eax, dword [esp + 0x70]
jmp 0x59732e
lea edx, [0x5bec80]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0x1f4
mov dword [esp + 0x10], eax
call fcn.004450a0
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x68]
jmp 0x59727c
mov byte [ecx], 0x7b
mov dword [esp + 0x19c], ecx
mov dword [esp + 0x1a0], 1
mov dword [esp + 0x1a4], 0x1f4
jmp 0x5972b5
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x98], eax
lea eax, [0x63b018]
mov dword [esp], eax
lea eax, [esp + 0x94]
mov dword [esp + 4], eax
call fcn.004092b0
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
jmp 0x5971c8
mov eax, dword [0x752bd8]
mov ecx, dword [0x752bdc]
jmp 0x597195
mov dword [esp + 0x3e0], edx
mov dword [esp + 0x3e4], ebx
add esp, 0x3d8
ret
mov dword [esp + 0x3e0], ebx
mov dword [esp + 0x3e4], ebp
add esp, 0x3d8
ret
mov esi, dword [esp + 0x3dc]
lea edi, [esi + 0x104]
mov eax, ecx
call fcn.0045df70
jmp 0x597058
lea edi, [0x751f0c]
lea eax, [0x601d40]
call fcn.0045df70
jmp 0x596e34
mov eax, dword [0x752bd8]
mov dword [esp + 0x20], eax
mov ecx, dword [0x752bdc]
mov dword [esp + 0x50], ecx
lea edx, [0x5c6ca0]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00409460
movzx eax, byte [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
test al, al
je 0x597ab1
mov dword [esp + 0x34], ecx
lea edi, [esp + 0x314]
xor eax, eax
call fcn.0045e1f5
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x314], ecx
mov dword [esp + 0x318], edx
mov byte [esp + 0x31c], 0xff
lea edi, [esp + 0xd8]
lea esi, [esp + 0x314]
call fcn.0045e6a2
mov byte [esp + 0xe0], 7
lea edi, [esp + 0x340]
lea esi, [esp + 0xd8]
call fcn.0045e6a2
lea ecx, [0x63a2b0]
mov dword [esp], ecx
lea ecx, [esp + 0x340]
mov dword [esp + 4], ecx
call fcn.004092b0
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
test ecx, ecx
je 0x597aa0
mov dword [esp + 0x24], ecx
mov dword [esp + 0x54], edx
lea eax, [0x5c6ca0]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00409460
movzx eax, byte [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
test al, al
je 0x597a4e
mov dword [esp + 0x30], ecx
lea edi, [esp + 0x2e8]
xor eax, eax
call fcn.0045e1f5
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x2e8], ecx
mov dword [esp + 0x2ec], edx
mov byte [esp + 0x2f0], 0xff
lea edi, [esp + 0x1b4]
lea esi, [esp + 0x2e8]
call fcn.0045e6a2
mov ecx, dword [esp + 0x1cc]
mov dword [esp + 0x40], ecx
mov edx, dword [esp + 0x1c8]
mov dword [esp + 0x6c], edx
lea ebx, [0x5bec80]
mov dword [esp], ebx
mov dword [esp + 4], 0
mov dword [esp + 8], 0x1f4
call fcn.00444f30
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x1c8], ecx
mov dword [esp + 0x1cc], 0
mov dword [esp + 0x1d0], 0x1f4
mov edx, dword [esp + 0x6c]
test edx, edx
je 0x597a29
mov eax, dword [esp + 0x40]
cmp eax, 0x1f4
ja 0x5979ee
mov ebx, 0x1f4
mov dword [esp + 0x48], ebx
mov dword [esp + 0x74], ecx
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.0045e900
mov eax, dword [esp + 0x74]
mov dword [esp + 0x1c8], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x1cc], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x1d0], eax
lea edi, [esp + 0x2bc]
xor eax, eax
call fcn.0045e1f5
lea edi, [esp + 0x2bc]
lea esi, [esp + 0x1b4]
call fcn.0045e6a2
lea edi, [esp + 0x264]
lea esi, [esp + 0x2bc]
call fcn.0045e6a2
lea edi, [esp + 0x104]
lea esi, [esp + 0x264]
call fcn.0045e6a2
mov ecx, dword [esp + 0x128]
lea edx, [ecx + 1]
mov ebx, dword [esp + 0x124]
mov ebp, dword [esp + 0x12c]
cmp ebp, edx
jb 0x5979b1
lea edx, [ecx + 1]
mov dword [esp + 0x128], edx
lea edx, [ebx + ecx*8]
lea ebp, [0x63a29c]
mov dword [edx], ebp
mov edx, dword [0x770e60]
lea edi, [ebx + ecx*8 + 4]
test edx, edx
jne 0x5979a6
mov eax, dword [esp + 0x78]
mov dword [edi], eax
mov eax, dword [0x770e60]
test eax, eax
jne 0x597981
lea edi, [0x7535c0]
lea esi, [esp + 0x104]
call fcn.0045e6a2
mov dword [esp + 0x3e0], 0
mov dword [esp + 0x3e4], 0
add esp, 0x3d8
ret
lea eax, [0x5e0660]
mov dword [esp], eax
lea eax, [0x7535c0]
mov dword [esp + 4], eax
lea eax, [esp + 0x104]
mov dword [esp + 8], eax
call fcn.004106b0
jmp 0x597964
mov eax, dword [esp + 0x78]
call fcn.0045df70
jmp 0x597948
lea eax, [0x5c4040]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], edx
call fcn.004450a0
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x12c], eax
mov dword [esp + 0x124], ebx
jmp 0x59791f
lea edx, [0x5bec80]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0x1f4
mov dword [esp + 0x10], eax
call fcn.004450a0
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x6c]
jmp 0x59787f
mov byte [ecx], 0x7b
mov dword [esp + 0x1c8], ecx
mov dword [esp + 0x1cc], 1
mov dword [esp + 0x1d0], 0x1f4
jmp 0x5978b8
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x98], eax
lea eax, [0x63b018]
mov dword [esp], eax
lea eax, [esp + 0x94]
mov dword [esp + 4], eax
call fcn.004092b0
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
jmp 0x5977cb
mov ecx, dword [0x752bd8]
mov edx, dword [0x752bdc]
jmp 0x597798
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov eax, dword [esp + 0x20]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x98], eax
lea eax, [0x63b018]
mov dword [esp], eax
lea ecx, [esp + 0x94]
mov dword [esp + 4], ecx
call fcn.004092b0
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
jmp 0x597715
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x3dc]
call fcn.0045df70
mov eax, ecx
mov ecx, dword [esp + 0x3dc]
jmp 0x596e05
call fcn.0045ca10
jmp fcn.00596db0