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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x28]
cmp eax, dword [ecx + 8]
jbe 0x597e53
sub esp, 0xa8
xor eax, eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0xac]
mov ecx, dword [eax + 0x60]
test ecx, ecx
jne 0x597de4
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
mov ebx, dword [eax + 4]
mov ebp, dword [eax]
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp], ebp
mov dword [esp + 4], ebx
call fcn.00597250
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x44], ecx
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
test ecx, ecx
jne 0x597d73
mov eax, dword [esp + 0xac]
mov dword [eax + 4], edx
mov ecx, dword [0x77c810]
test ecx, ecx
jne 0x597d5b
mov dword [eax], ebx
mov ecx, dword [eax + 0x50]
test ecx, ecx
jne 0x597cf9
mov ecx, dword [eax + 0x5c]
mov ebx, dword [eax + 0x58]
test ebx, ebx
jne 0x597c38
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
lea ecx, [0x65c4a8]
mov dword [esp + 0x78], ecx
lea ecx, [0x65c4ac]
mov dword [esp + 0x7c], ecx
lea ecx, [0x65c4a4]
mov dword [esp + 0x80], ecx
xor ecx, ecx
lea edx, [esp + 0x78]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x6c], edx
cmp ecx, 3
jge 0x5976e9
mov ebx, dword [edx]
mov dword [esp], eax
mov ebp, dword [ebx]
mov edx, ebx
call ebp
mov eax, dword [esp + 4]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x48], ecx
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x54], ebx
test ecx, ecx
jne 0x597bc7
mov ecx, dword [esp + 0xac]
mov ebx, dword [ecx + 0x6c]
mov ebp, dword [ecx + 0x70]
mov esi, dword [ecx + 0x74]
lea edi, [ecx + 0x6c]
mov dword [esp + 0x68], edi
lea edi, [ebp + 1]
cmp edi, esi
jg 0x597b51
lea esi, [ebp + 1]
mov dword [ecx + 0x70], esi
mov esi, dword [0x77c810]
lea edi, [ebx + ebp*4]
test esi, esi
jne 0x597b39
mov dword [ebx + ebp*4], eax
mov ebx, dword [esp + 0x6c]
lea edx, [ebx + 4]
mov ebx, dword [esp + 0x38]
inc ebx
mov eax, ecx
mov ecx, ebx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x6c], edx
cmp ecx, 3
jl 0x597661
mov ecx, dword [eax + 0x70]
mov dword [esp + 0x38], ecx
mov edx, dword [eax + 0x44]
mov dword [esp + 0x34], edx
lea ebx, [ecx + edx]
mov dword [esp + 0x30], ebx
mov ebp, dword [eax + 0x6c]
mov esi, dword [eax + 0x74]
mov edi, dword [eax + 0x40]
mov dword [esp + 0x64], edi
mov eax, dword [eax + 0x48]
mov dword [esp + 0x2c], eax
cmp ebx, esi
ja 0x597afa
mov dword [esp + 0x60], ebp
mov dword [esp + 0x38], esi
cmp ebx, esi
ja 0x597af3
cmp ecx, ebx
ja 0x597af3
sub esi, ecx
lea ebx, [esi - 1]
sar ebx, 0x1f
shl ecx, 2
xor ebx, 0xffffffff
and ecx, ebx
add ecx, ebp
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], esi
lea ecx, [0x645560]
mov dword [esp], ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
call fcn.0040d8f0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0xac]
mov dword [ecx + 0x70], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 0x74], eax
mov eax, dword [0x77c810]
lea edx, [ecx + 0x6c]
test eax, eax
jne 0x597ad7
mov eax, dword [esp + 0x60]
mov dword [ecx + 0x6c], eax
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
mov ebx, dword [ecx + 0x10]
test edx, edx
jle 0x597aa7
mov dword [esp + 0x24], edx
mov dword [esp + 0x60], eax
mov dword [esp + 0x28], ebx
mov dword [esp], ecx
call fcn.005965c0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0xc]
lea edi, [esp + 0x84]
mov ebx, eax
xor eax, eax
call fcn.0044a0c7
mov eax, dword [esp + 0xac]
mov ecx, dword [eax + 0x20]
mov ebp, dword [eax + 0x24]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], ebp
mov ecx, dword [eax + 0x6c]
mov ebp, dword [eax + 0x70]
mov esi, dword [eax + 0x74]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], ebp
mov dword [esp + 0xa0], esi
mov dword [esp + 0x8c], ebx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], edx
mov ecx, dword [eax + 0x4c]
mov dword [esp + 0xa4], ecx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov ecx, dword [esp + 0x60]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x84]
mov dword [esp + 0x14], ecx
call fcn.0047cdd0
mov eax, dword [esp + 0x18]
mov ecx, dword [0x77c810]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x40], edx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x50], ebx
mov ebp, dword [esp + 0xac]
lea esi, [ebp + 0x50]
test ecx, ecx
jne 0x597a87
mov dword [ebp + 0x50], eax
test edx, edx
jne 0x597a1d
mov eax, dword [ebp + 0x78]
mov ecx, dword [ebp + 0x7c]
mov edx, dword [ebp + 0x80]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov dword [esp], ebp
call fcn.00597190
mov eax, dword [esp + 0xac]
mov ecx, dword [eax + 0x94]
lea edx, [0x600b20]
mov dword [esp], edx
mov dword [esp + 4], ecx
sar ecx, 0x1f
mov dword [esp + 8], ecx
call fcn.004032c0
mov eax, dword [0x77c810]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0xac]
lea ebx, [edx + 0x9c]
test eax, eax
jne 0x597a05
mov dword [edx + 0x9c], ecx
mov eax, dword [edx + 0x90]
mov ecx, dword [edx + 0x94]
mov dword [esp + 0x38], ecx
xor ebx, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x5c], eax
cmp ebx, ecx
jge 0x597971
mov ebp, dword [eax]
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebp
mov dword [esp], 8
lea ebp, [0x65c49c]
mov dword [esp + 4], ebp
call fcn.0042d490
mov eax, dword [esp + 0x5c]
add eax, 4
mov ecx, dword [esp + 0x34]
lea ebx, [ecx + 1]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0xac]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x5c], eax
cmp ebx, ecx
jl 0x59792c
mov eax, dword [edx + 0x58]
test eax, eax
jne 0x597995
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
add esp, 0xa8
ret
lea eax, [0x600e60]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0
call fcn.004032c0
mov eax, dword [esp + 0xc]
mov ecx, dword [0x77c810]
mov edx, dword [esp + 0xac]
lea ebx, [edx + 0xa0]
test ecx, ecx
jne 0x5979f0
mov dword [edx + 0xa0], eax
mov dword [esp + 8], edx
mov dword [esp], 4
lea eax, [0x65c4a0]
mov dword [esp + 4], eax
call fcn.0042d490
jmp 0x597978
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0040d580
mov edx, dword [esp + 0xac]
jmp 0x5979d4
mov dword [esp], ebx
mov dword [esp + 4], ecx
call fcn.0040d580
mov edx, dword [esp + 0xac]
jmp 0x59790e
mov eax, dword [ebp + 0x78]
mov ecx, dword [ebp + 0x7c]
mov esi, dword [ebp + 0x80]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], esi
mov dword [esp], ebp
call fcn.00597190
mov eax, dword [esp + 0xac]
mov ecx, dword [eax + 0x84]
mov edx, dword [eax + 0x88]
mov ebx, dword [eax + 0x8c]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call fcn.00597190
mov eax, dword [esp + 0x40]
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0xb4], eax
add esp, 0xa8
ret
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.0040d580
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x50]
mov ebp, dword [esp + 0xac]
jmp 0x59789b
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov ebp, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], esi
mov edx, 1
lea eax, [esp + 0x70]
mov ebx, 1
jmp 0x5977a8
mov dword [esp], edx
mov eax, dword [esp + 0x60]
mov dword [esp + 4], eax
call fcn.0040d580
mov ecx, dword [esp + 0xac]
jmp 0x597797
call fcn.004246c0
ud2
lea eax, [0x645560]
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
call fcn.00437350
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x64]
jmp 0x59771a
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.0040d580
mov ecx, dword [esp + 0xac]
jmp 0x5976c8
lea edx, [0x645560]
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
call fcn.00437350
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0xac]
mov dword [ebx + 0x74], edx
mov edx, dword [0x77c810]
test edx, edx
jne 0x597baa
mov dword [ebx + 0x6c], eax
mov esi, dword [ebx + 0x6c]
mov eax, dword [esp + 0x3c]
mov ecx, ebx
mov ebp, dword [esp + 0x34]
mov ebx, esi
jmp 0x5976ae
mov edx, dword [esp + 0x68]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.0040d580
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0xac]
jmp 0x597b96
mov eax, dword [esp + 0xac]
mov edx, dword [eax + 0x78]
mov ebp, dword [eax + 0x7c]
mov esi, dword [eax + 0x80]
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], esi
mov dword [esp], eax
call fcn.00597190
mov eax, dword [esp + 0xac]
mov ecx, dword [eax + 0x84]
mov edx, dword [eax + 0x88]
mov ebx, dword [eax + 0x8c]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call fcn.00597190
mov eax, dword [esp + 0x48]
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xb4], eax
add esp, 0xa8
ret
mov edx, dword [ebx + 0x18]
mov dword [esp], ecx
call edx
mov eax, dword [esp + 4]
lea ecx, [0x6009a0]
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [esp + 8], eax
call fcn.00404c70
movzx eax, byte [esp + 0xc]
test al, al
jne 0x597c73
mov eax, dword [esp + 0xac]
jmp 0x59760e
mov eax, dword [esp + 0xac]
mov ecx, dword [eax + 0x7c]
mov edx, dword [eax + 0x78]
mov ebx, dword [eax + 0x80]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call fcn.00597190
mov eax, dword [esp + 0xac]
mov ecx, dword [eax + 0x84]
mov edx, dword [eax + 0x88]
mov ebx, dword [eax + 0x8c]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call fcn.00597190
mov eax, dword [esp + 0xac]
mov ecx, dword [eax + 0x58]
mov ecx, dword [ecx + 0x1c]
mov eax, dword [eax + 0x5c]
mov dword [esp], eax
call ecx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], ecx
add esp, 0xa8
ret
lea eax, [0x617560]
mov dword [esp], eax
call fcn.0040cd50
mov eax, dword [esp + 4]
mov dword [esp + 0x58], eax
mov dword [eax + 4], 0x15
mov ecx, dword [0x77c810]
test ecx, ecx
jne 0x597d43
lea ecx, [0x650720]
mov dword [eax], ecx
lea ecx, [0x741b60]
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb4], eax
add esp, 0xa8
ret
mov dword [esp], eax
lea ecx, [0x650720]
mov dword [esp + 4], ecx
call fcn.0040d580
mov eax, dword [esp + 0x58]
jmp 0x597d28
mov dword [esp], eax
mov dword [esp + 4], ebx
call fcn.0040d580
mov eax, dword [esp + 0xac]
jmp 0x5975f5
mov edx, dword [esp + 0xac]
mov ebx, dword [edx + 0x80]
mov ebp, dword [edx + 0x7c]
mov esi, dword [edx + 0x78]
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ebx
mov dword [esp], edx
call fcn.00597190
mov eax, dword [esp + 0xac]
mov ecx, dword [eax + 0x88]
mov edx, dword [eax + 0x84]
mov ebx, dword [eax + 0x8c]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call fcn.00597190
mov eax, dword [esp + 0x44]
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xb4], eax
add esp, 0xa8
ret
mov ecx, dword [eax + 0x7c]
mov edx, dword [eax + 0x78]
mov ebx, dword [eax + 0x80]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call fcn.00597190
mov eax, dword [esp + 0xac]
mov ecx, dword [eax + 0x8c]
mov edx, dword [eax + 0x88]
mov ebx, dword [eax + 0x84]
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp], eax
call fcn.00597190
mov eax, dword [esp + 0xac]
mov ecx, dword [eax + 0x60]
mov eax, dword [eax + 0x64]
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb4], eax
add esp, 0xa8
ret
call fcn.00448420
jmp fcn.00597560