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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x1c]
cmp eax, dword [ecx + 8]
jbe 0x58c51c
sub esp, 0x9c
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax + 0x28]
mov dword [esp + 0x38], ecx
nop
nop
mov edx, dword [esp + 0xb0]
mov ebx, edx
and edx, 0x1f
cmp edx, 0x11
je 0x58c13e
cmp edx, 0x14
je 0x58c0cf
cmp edx, 0x17
jne 0x58c081
test ebx, 0x200
jne 0x58bfde
lea edx, [0x675c20]
mov ebp, dword [esp + 0xa8]
jmp 0x58c00c
mov eax, dword [esp + 0xa8]
mov dword [esp], eax
mov ecx, dword [esp + 0xac]
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
call fcn.004c53d0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, eax
mov ebp, ecx
mov ecx, dword [esp + 0x38]
mov dword [esp], edx
mov dword [esp + 4], ebp
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
call fcn.004c5ef0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0xa8]
mov dword [esp], ebx
mov ebp, dword [esp + 0xac]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0xb0]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
call fcn.004c43b0
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0xb0]
mov ecx, dword [esp + 0xa8]
mov ebx, dword [esp + 0xac]
xor ebp, ebp
xor esi, esi
xor edi, edi
jmp 0x58c185
mov ecx, dword [esp + 0xa0]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea eax, [0x61bf2f]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 5
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
call fcn.00588910
mov byte [esp + 0xb4], 0
add esp, 0x9c
ret
lea eax, [0x5f06c0]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.0044a1a0
mov eax, dword [esp + 0xc]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.00409770
mov eax, dword [esp + 0xc]
lea ecx, [0x5e9d40]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0058be10
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ebx, ecx
mov ebp, dword [esp + 0xb0]
mov esi, dword [esp + 0xa8]
mov edi, dword [esp + 0xac]
mov ecx, eax
mov eax, dword [esp + 0x38]
jmp 0x58c185
mov eax, dword [esp + 0xa8]
mov dword [esp], eax
mov ecx, dword [esp + 0xac]
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
call fcn.004c3680
mov eax, dword [esp + 0x38]
cmp dword [esp + 0xc], eax
jne 0x58c3c8
mov edx, dword [esp + 0xb0]
mov ecx, dword [esp + 0xa8]
mov ebx, dword [esp + 0xac]
xor ebp, ebp
xor esi, esi
xor edi, edi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x68], edi
mov dword [esp + 0x70], esi
mov dword [esp + 0x28], edx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x64], ecx
test edx, edx
je 0x58c1b9
test edx, 0x200
jne 0x58c1b9
mov dword [esp + 0x3c], eax
lea eax, [0x675c20]
mov dword [esp + 0x20], eax
jmp 0x58c1d5
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
call fcn.004c53d0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x28]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov dword [esp + 0x80], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x74], ecx
xor edx, edx
xor ebx, ebx
jmp 0x58c20c
mov ebp, dword [esp + 0x30]
lea edx, [ebp + 1]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x74]
mov ebp, dword [esp + 0x38]
cmp edx, ebp
jge 0x58c311
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], ebx
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.004c6210
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.004c2b60
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0xa4]
mov ebp, dword [ebx + 0x28]
mov esi, dword [ebx + 0x24]
mov edi, dword [esp + 0x30]
cmp edi, ebp
jae 0x58c3bf
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x78], eax
mov ebx, dword [esi + edi*4]
mov ebp, dword [esp + 0xa0]
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
call fcn.00589750
movzx eax, byte [esp + 0x14]
test al, al
jne 0x58c2ad
mov ebx, dword [esp + 0x2c]
jmp 0x58c1fa
mov eax, dword [esp + 0x64]
mov dword [esp], eax
mov ecx, dword [esp + 0x6c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x28]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0xc], ebx
call fcn.004c2e00
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov eax, dword [esp + 0x78]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], eax
call fcn.004c43b0
mov eax, dword [esp + 0x2c]
lea ebx, [eax + 1]
jmp 0x58c1fa
nop
mov eax, dword [esp + 0x28]
mov ecx, eax
and eax, 0x1f
cmp eax, 0x11
je 0x58c37c
mov eax, dword [esp + 0x64]
mov dword [esp], eax
mov edx, dword [esp + 0x6c]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], ebx
call fcn.004c5040
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x64]
mov dword [esp], ebx
mov ebp, dword [esp + 0x6c]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0x28]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
call fcn.004c43b0
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x58c3b0
mov edx, dword [esp + 0x70]
mov dword [esp], edx
mov edx, dword [esp + 0x68]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
call fcn.004c43b0
mov byte [esp + 0xb4], 1
add esp, 0x9c
ret
mov eax, edi
mov ecx, ebp
call fcn.004638e0
mov eax, dword [esp + 0xa8]
mov dword [esp], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 8], eax
call fcn.004c3680
mov eax, dword [esp + 0xc]
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp], eax
call fcn.004095e0
mov eax, dword [esp + 4]
lea ecx, [0x5f0580]
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.004095e0
mov eax, dword [esp + 4]
lea ecx, [0x5f0580]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], eax
lea eax, [esp + 0x44]
mov dword [esp], eax
lea eax, [0x61c4c4]
mov dword [esp + 4], eax
mov dword [esp + 8], 6
lea eax, [0x62b389]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0x2a
call fcn.0044dd40
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [esp + 0x8c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004cb530
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
lea eax, [0x5f7a00]
mov dword [esp], eax
lea ecx, [esp + 0x84]
mov dword [esp + 4], ecx
call fcn.004094a0
mov eax, dword [esp + 8]
lea ecx, [0x5f7a00]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00435790
nop
call fcn.00462450
jmp fcn.0058bf70