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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x58c423
sub esp, 0x60
mov ecx, dword [esp + 0x70]
test ecx, ecx
je 0x58c414
nop
nop
movzx edx, byte [0x753128]
test dl, dl
je 0x58c40b
mov edx, dword [esp + 0x70]
mov dword [0x75312c], edx
mov edx, dword [0x770e60]
test edx, edx
jne 0x58c3f7
mov eax, dword [esp + 0x74]
mov dword [0x753130], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
mov edx, dword [esp + 0x48]
test edx, edx
je 0x58c3ea
nop
movzx ebx, byte [edx + 0xf]
mov ebp, ebx
and ebx, 0x1f
xchg ebp, eax
test al, 0x20
xchg ebp, eax
jne 0x58ba73
or ebx, 0x80
mov ebp, eax
nop
mov esi, ebx
and ebx, 0x1f
cmp ebx, 0x16
jne 0x58ba8c
test esi, 0x200
je 0x58c3c3
test ecx, ecx
je 0x58c27e
test esi, esi
je 0x58c154
mov dword [esp + 0x30], esi
mov ebx, dword [esp + 0x64]
mov edi, dword [ebx]
mov esi, dword [edi]
mov edi, dword [edi + 4]
test esi, esi
jne 0x58c049
nop
mov eax, dword [esp + 0x80]
mov edx, eax
and eax, 0x1f
lea esi, [eax - 2]
nop
cmp esi, 4
ja 0x58c021
mov eax, 2
mov dword [esp + 0x34], eax
cmp eax, 0x13
ja 0x58be4f
cmp eax, 7
ja 0x58bd66
cmp eax, 1
je 0x58bd20
cmp eax, 2
je 0x58bcda
cmp eax, 7
je 0x58bbaf
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov eax, dword [esp + 0x68]
mov dword [esp], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 4], eax
call fcn.00409140
mov eax, dword [esp + 8]
lea ecx, [0x5beac0]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call fcn.00409030
mov eax, dword [esp + 4]
lea ecx, [0x5c1440]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], eax
lea eax, [0x5f2868]
mov dword [esp], eax
mov dword [esp + 4], 0x18
lea eax, [esp + 0x50]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004bdd90
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
add esp, 0x60
ret
mov dword [esp], ebx
mov eax, dword [esp + 0x68]
mov dword [esp + 4], eax
mov esi, dword [esp + 0x6c]
mov dword [esp + 8], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebp
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
call fcn.0058dc60
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, 1
test dl, dl
je 0x58bcd3
mov edx, dword [esp + 0x64]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
test edx, edx
je 0x58bcd3
mov ebx, dword [esp + 0x6c]
test ebx, ebx
je 0x58bcd3
mov ebp, dword [edx + 4]
lea esi, [ebp + 1]
mov edi, ecx
mov ecx, dword [edx]
mov ebx, dword [edx + 8]
cmp ebx, esi
jb 0x58bc70
lea ebx, [ebp + 1]
mov dword [edx + 4], ebx
lea edx, [ecx + ebp*8 + 4]
mov ebx, dword [esp + 0x6c]
mov dword [edx], ebx
mov edx, dword [0x770e60]
lea ecx, [ecx + ebp*8]
test edx, edx
jne 0x58bc5b
mov edx, dword [esp + 0x68]
mov dword [ecx], edx
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], edi
add esp, 0x60
ret
mov edx, edi
mov edi, ecx
mov ebx, eax
mov eax, dword [esp + 0x68]
call fcn.0045df70
mov eax, ebx
mov edi, edx
jmp 0x58bc49
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], edi
mov dword [esp + 0x38], eax
lea eax, [0x5beac0]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], esi
call fcn.004450a0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x44]
mov dword [edi + 8], edx
mov edx, dword [0x770e60]
test edx, edx
jne 0x58bccc
mov dword [edi], eax
mov edx, edi
mov edi, dword [esp + 0x40]
mov ebp, ecx
mov ecx, eax
mov eax, dword [esp + 0x38]
jmp 0x58bc26
call fcn.0045df70
jmp 0x58bcb9
mov edi, ecx
jmp 0x58bc49
mov dword [esp], ebx
mov eax, dword [esp + 0x68]
mov dword [esp + 4], eax
mov esi, dword [esp + 0x6c]
mov dword [esp + 8], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebp
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
call fcn.0058d2b0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, 1
jmp 0x58bbf0
mov dword [esp], ebx
mov eax, dword [esp + 0x68]
mov dword [esp + 4], eax
mov esi, dword [esp + 0x6c]
mov dword [esp + 8], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebp
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
call fcn.0058e8e0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, 1
jmp 0x58bbf0
cmp eax, 0xd
je 0x58be09
cmp eax, 0x11
je 0x58bdc3
cmp eax, 0x13
jne 0x58bb03
mov dword [esp], ebx
mov eax, dword [esp + 0x68]
mov dword [esp + 4], eax
mov esi, dword [esp + 0x6c]
mov dword [esp + 8], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebp
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
call fcn.00592010
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, 1
jmp 0x58bbf0
mov dword [esp], ebx
mov eax, dword [esp + 0x68]
mov dword [esp + 4], eax
mov esi, dword [esp + 0x6c]
mov dword [esp + 8], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebp
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
call fcn.00593090
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, 1
jmp 0x58bbf0
mov dword [esp], ebx
mov eax, dword [esp + 0x68]
mov dword [esp + 4], eax
mov esi, dword [esp + 0x6c]
mov dword [esp + 8], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebp
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
call fcn.0058f130
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, 1
jmp 0x58bbf0
cmp eax, 0x16
ja 0x58bf38
cmp eax, 0x14
je 0x58bef2
cmp eax, 0x15
jne 0x58beac
mov dword [esp], ebx
mov eax, dword [esp + 0x68]
mov dword [esp + 4], eax
mov esi, dword [esp + 0x6c]
mov dword [esp + 8], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebp
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
call fcn.0058fac0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, 1
jmp 0x58bbf0
mov dword [esp], ebx
mov eax, dword [esp + 0x68]
mov dword [esp + 4], eax
mov esi, dword [esp + 0x6c]
mov dword [esp + 8], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebp
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
call fcn.00591a20
movzx edx, byte [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
jmp 0x58bbf0
mov dword [esp], ebx
mov eax, dword [esp + 0x68]
mov dword [esp + 4], eax
mov esi, dword [esp + 0x6c]
mov dword [esp + 8], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebp
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
call fcn.0058c430
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, 1
jmp 0x58bbf0
cmp eax, 0x17
je 0x58bfdb
cmp eax, 0x18
je 0x58bf95
cmp eax, 0x19
jne 0x58bb03
mov dword [esp], ebx
mov eax, dword [esp + 0x68]
mov dword [esp + 4], eax
mov esi, dword [esp + 0x6c]
mov dword [esp + 8], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebp
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
call fcn.00593bd0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, 1
jmp 0x58bbf0
mov dword [esp], ebx
mov eax, dword [esp + 0x68]
mov dword [esp + 4], eax
mov esi, dword [esp + 0x6c]
mov dword [esp + 8], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebp
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
call fcn.0058ca30
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, 1
jmp 0x58bbf0
mov dword [esp], ebx
mov eax, dword [esp + 0x68]
mov dword [esp + 4], eax
mov esi, dword [esp + 0x6c]
mov dword [esp + 8], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebp
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
call fcn.00592310
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, 1
jmp 0x58bbf0
lea esi, [eax - 7]
cmp esi, 4
ja 0x58c033
mov eax, 7
jmp 0x58bad2
lea esi, [eax - 0xd]
cmp esi, 1
ja 0x58bad2
mov eax, 0xd
jmp 0x58bad2
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x80]
mov dword [esp + 0x1c], edx
call fcn.0058b0a0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
test eax, eax
jne 0x58c0a3
mov ecx, ebx
mov ebx, dword [esp + 0x64]
jmp 0x58bab3
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov eax, dword [esp + 0x68]
mov dword [esp], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 4], eax
call fcn.00409140
mov eax, dword [esp + 8]
lea ecx, [0x5beac0]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x58c150
mov ecx, dword [eax + 4]
mov dword [esp + 0x58], ecx
mov eax, dword [esp + 0x40]
mov dword [esp + 0x5c], eax
lea eax, [0x5f2377]
mov dword [esp], eax
mov dword [esp + 4], 0x17
lea eax, [esp + 0x50]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004bdd90
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
add esp, 0x60
ret
mov ecx, eax
jmp 0x58c0fc
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov ecx, dword [esp + 0x7c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x80]
mov dword [esp + 8], edx
call fcn.00488490
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00488ff0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x78]
mov dword [esp], ebx
mov ebx, dword [esp + 0x7c]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x80]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
call fcn.004875d0
mov eax, dword [esp + 0x64]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x58c202
mov ecx, dword [esp + 0x6c]
test ecx, ecx
je 0x58c202
mov edx, dword [eax + 4]
lea ebx, [edx + 1]
mov ebp, dword [eax]
mov esi, dword [eax + 8]
cmp ebx, esi
ja 0x58c227
lea ebx, [edx + 1]
mov dword [eax + 4], ebx
lea ebx, [ebp + edx*8 + 4]
mov dword [ebx], ecx
mov ecx, dword [0x770e60]
lea edi, [ebp + edx*8]
test ecx, ecx
jne 0x58c21c
mov eax, dword [esp + 0x68]
mov dword [edi], eax
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
add esp, 0x60
ret
mov eax, dword [esp + 0x68]
call fcn.0045df70
jmp 0x58c202
mov dword [esp + 0x44], eax
lea eax, [0x5beac0]
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], edx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
call fcn.004450a0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x44]
mov dword [edi + 8], edx
mov edx, dword [0x770e60]
test edx, edx
jne 0x58c277
mov dword [edi], eax
mov edx, ecx
mov ebp, eax
mov eax, edi
mov ecx, dword [esp + 0x6c]
jmp 0x58c1e2
call fcn.0045df70
jmp 0x58c268
mov eax, dword [esp + 0x64]
mov ecx, dword [eax]
movzx ecx, byte [ecx + 9]
test cl, cl
jne 0x58c2a6
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
add esp, 0x60
ret
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov ecx, dword [esp + 0x7c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x80]
mov dword [esp + 8], edx
call fcn.00488490
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00488ff0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x78]
mov dword [esp], ebx
mov ebx, dword [esp + 0x7c]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x80]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
call fcn.004875d0
mov eax, dword [esp + 0x64]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x58c28c
mov ecx, dword [esp + 0x6c]
test ecx, ecx
je 0x58c28c
mov edx, dword [eax + 4]
lea ebx, [edx + 1]
mov ebp, dword [eax]
mov esi, dword [eax + 8]
cmp ebx, esi
ja 0x58c36f
lea ebx, [edx + 1]
mov dword [eax + 4], ebx
lea ebx, [ebp + edx*8 + 4]
mov dword [ebx], ecx
mov ecx, dword [0x770e60]
lea edi, [ebp + edx*8]
test ecx, ecx
jne 0x58c361
mov eax, dword [esp + 0x68]
mov dword [edi], eax
jmp 0x58c28c
mov eax, dword [esp + 0x68]
call fcn.0045df70
jmp 0x58c28c
mov dword [esp + 0x44], eax
lea eax, [0x5beac0]
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], edx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
call fcn.004450a0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x44]
mov dword [edi + 8], edx
mov edx, dword [0x770e60]
test edx, edx
jne 0x58c3bc
mov dword [edi], eax
mov edx, ecx
mov ebp, eax
mov eax, edi
mov ecx, dword [esp + 0x6c]
jmp 0x58c33c
call fcn.0045df70
jmp 0x58c3b0
test esi, 0x80
je 0x58c3e6
mov ebx, dword [eax]
test ebx, ebx
setne bl
xor ebx, 1
test bl, bl
je 0x58ba8c
xor ecx, ecx
xor ebp, ebp
jmp 0x58ba8c
mov ebx, eax
jmp 0x58c3cd
mov ebp, eax
xor ebx, ebx
xor eax, eax
xor edx, edx
jmp 0x58ba75
lea edi, [0x753130]
mov eax, dword [esp + 0x74]
call fcn.0045df70
jmp 0x58ba48
mov eax, dword [esp + 0x74]
jmp 0x58ba48
mov ebp, dword [esp + 0x74]
xor esi, esi
xor edx, edx
xor eax, eax
jmp 0x58ba8c
call fcn.0045ca10
jmp fcn.0058b9f0