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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x587c49
sub esp, 0x68
lea edi, [esp + 0x70]
xor eax, eax
call fcn.0045cbb3
mov ecx, dword [esp + 0x6c]
mov edx, dword [ecx + 0x38]
mov ebx, dword [ecx + 0x34]
lea ebp, [0x64a840]
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
call fcn.0040a160
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov ecx, dword [esp + 0x6c]
lea edx, [ecx + 0x4c]
mov dword [esp + 0x50], edx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0xa
mov dword [esp + 0x10], 0x200
mov dword [esp + 0x14], 0xa
call fcn.00494e20
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
test ecx, ecx
jne 0x587c37
mov ecx, dword [esp + 0x6c]
cmp byte [ecx + 0x4c], 0x1f
je 0x5876d7
mov eax, dword [0x7ccc10]
mov ecx, dword [0x7ccc14]
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], ecx
add esp, 0x68
ret
cmp byte [ecx + 0x4d], 0x8b
jne 0x5876b9
cmp byte [ecx + 0x4e], 8
jne 0x5876b9
mov edx, dword [ecx + 0x50]
test edx, edx
seta bl
movzx ebp, byte [ecx + 0x4f]
xchg ebp, eax
mov byte [esp + 0x27], al
xchg ebp, eax
and ebx, 1
test bl, bl
je 0x58773d
add edx, 0x7791f700
lea edi, [esp + 0x54]
mov eax, 0
call fcn.0045cbbb
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], edx
adc eax, 0xe
mov dword [esp + 0x60], eax
mov ecx, dword [0x61bf5c]
mov dword [esp + 0x64], ecx
lea edi, [esp + 0x84]
lea esi, [esp + 0x54]
call fcn.0045d09e
mov eax, dword [esp + 0x6c]
movzx ecx, byte [eax + 0x55]
mov byte [esp + 0xa0], cl
mov ecx, dword [esp + 0x50]
mov dword [esp], ecx
mov dword [esp + 4], 0xa
mov dword [esp + 8], 0x200
call fcn.00586c50
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x6c]
mov dword [ecx + 0x44], eax
movzx eax, byte [esp + 0x27]
test al, 4
jne 0x587a16
test al, 8
jne 0x5879cc
test al, 0x10
jne 0x587988
test al, 2
jne 0x5878a1
mov dword [ecx + 0x44], 0
mov eax, dword [ecx + 0x3c]
mov edx, dword [ecx + 0x40]
test eax, eax
je 0x587849
lea ecx, [0x64a240]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.0040a1e0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x4c], ecx
mov eax, dword [eax + 0x10]
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0x6c]
mov ebx, dword [edx + 0x34]
mov edx, dword [edx + 0x38]
lea ebp, [0x64a840]
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
call fcn.0040a160
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x4c]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x38]
call eax
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
add esp, 0x68
ret
mov eax, dword [ecx + 0x34]
mov edx, dword [ecx + 0x38]
lea ebx, [0x64a840]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.0040a160
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00586160
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x6c]
mov dword [edx + 0x3c], ecx
mov ecx, dword [0x7e34e0]
test ecx, ecx
jne 0x587897
mov dword [edx + 0x40], eax
jmp 0x58782f
lea edi, [edx + 0x40]
call fcn.0045c920
jmp 0x58782f
mov eax, dword [ecx + 0x38]
mov edx, dword [ecx + 0x34]
lea ebx, [0x64a840]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.0040a160
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x50]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 0x200
mov dword [esp + 0x14], 2
call fcn.00494e20
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
test eax, eax
je 0x587956
cmp dword [0x7ccd90], eax
je 0x587917
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], ecx
add esp, 0x68
ret
mov dword [esp + 0x30], eax
mov dword [esp + 0x40], ecx
mov dword [esp], eax
mov dword [esp + 4], ecx
mov edx, dword [0x7ccd94]
mov dword [esp + 8], edx
call fcn.00404120
movzx eax, byte [esp + 0xc]
test al, al
je 0x58794c
mov eax, dword [0x7ccdb8]
mov ecx, dword [0x7ccdbc]
jmp 0x587905
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x40]
jmp 0x587905
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 0x44]
cmp word [eax + 0x4c], cx
jne 0x58796a
mov ecx, eax
jmp 0x58779c
mov eax, dword [0x7ccc10]
mov ecx, dword [0x7ccc14]
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], ecx
add esp, 0x68
ret
mov dword [esp], ecx
call fcn.005873d0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0x10]
test eax, eax
jne 0x5879ba
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], edx
movzx eax, byte [esp + 0x27]
mov ecx, dword [esp + 0x6c]
jmp 0x587793
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], ebx
add esp, 0x68
ret
mov dword [esp], ecx
call fcn.005873d0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0x10]
test eax, eax
jne 0x587a04
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], edx
movzx eax, byte [esp + 0x27]
mov ecx, dword [esp + 0x6c]
jmp 0x58778a
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], ebx
add esp, 0x68
ret
mov eax, dword [ecx + 0x38]
mov edx, dword [ecx + 0x34]
lea ebx, [0x64a840]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.0040a160
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x50]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 0x200
mov dword [esp + 0x14], 2
call fcn.00494e20
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
test eax, eax
je 0x587acb
cmp dword [0x7ccd90], eax
je 0x587a8c
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], ecx
add esp, 0x68
ret
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x2c], eax
mov dword [esp], eax
mov dword [esp + 4], ecx
mov edx, dword [0x7ccd94]
mov dword [esp + 8], edx
call fcn.00404120
movzx eax, byte [esp + 0xc]
test al, al
je 0x587ac1
mov eax, dword [0x7ccdb8]
mov ecx, dword [0x7ccdbc]
jmp 0x587a7a
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
jmp 0x587a7a
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 0x44]
mov dword [esp], ecx
mov ecx, dword [0x7cc6f4]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 0x200
call fcn.00586b50
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x6c]
mov dword [ecx + 0x44], eax
movzx eax, word [ecx + 0x4c]
mov dword [esp + 0x34], eax
lea edx, [0x643900]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.00444130
mov eax, dword [esp + 0xc]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x6c]
mov edx, dword [ecx + 0x34]
mov ebx, dword [ecx + 0x38]
lea ebp, [0x64a840]
mov dword [esp], ebp
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
call fcn.0040a160
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x34]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
call fcn.00494e20
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
test eax, eax
je 0x587bde
cmp dword [0x7ccd90], eax
je 0x587b9f
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], ecx
add esp, 0x68
ret
mov dword [esp + 0x28], eax
mov dword [esp + 0x44], ecx
mov dword [esp], eax
mov dword [esp + 4], ecx
mov edx, dword [0x7ccd94]
mov dword [esp + 8], edx
call fcn.00404120
movzx eax, byte [esp + 0xc]
test al, al
je 0x587bd4
mov eax, dword [0x7ccdb8]
mov ecx, dword [0x7ccdbc]
jmp 0x587b8d
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x44]
jmp 0x587b8d
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 0x44]
mov dword [esp], ecx
mov ecx, dword [0x7cc6f4]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x34]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], edx
call fcn.00586b50
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x6c]
mov dword [ecx + 0x44], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
movzx eax, byte [esp + 0x27]
jmp 0x587781
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], edx
add esp, 0x68
ret
call fcn.0045b380
jmp fcn.00587620