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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x58f524
sub esp, 0x68
lea eax, [0x5f02c0]
mov dword [esp], eax
call fcn.0040b8d0
mov eax, dword [esp + 4]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x6c]
mov ecx, dword [ecx + 0x10]
mov edx, dword [esp + 0x70]
mov dword [esp], edx
call ecx
lea edi, [esp + 0x2c]
lea esi, [esp + 4]
call fcn.0045e5a2
lea edi, [esp]
lea esi, [esp + 0x2c]
call fcn.0045e5a2
mov eax, dword [esp + 0x38]
mov dword [esp + 0xc], eax
call fcn.00589df0
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x58f041
mov edx, dword [eax + 8]
cmp edx, 0x9efdc81d
ja 0x58f28a
cmp edx, 0x28d5a11
jne 0x58f118
lea edx, [0x65fd18]
mov ebx, dword [esp + 0x6c]
cmp edx, ebx
jne 0x58f041
nop
mov eax, dword [esp + 0x70]
movzx ecx, byte [eax]
test cl, cl
je 0x58f4ee
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
mov ebx, dword [eax + 0x14]
cmp ecx, 0x100
jle 0x58efb4
mov ecx, 0x100
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
call fcn.004091b0
mov eax, dword [esp + 0xc]
lea ecx, [0x5d3720]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
lea eax, [0x65e910]
mov dword [esp], eax
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], ecx
lea edx, [0x60fc32]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 8
lea edx, [esp + 0x3c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 1
call fcn.004aff10
nop
mov eax, dword [esp + 0x70]
movzx ecx, byte [eax]
test cl, cl
je 0x58f4d6
mov edx, dword [eax + 0x10]
cmp edx, 0x100
jg 0x58f0a3
mov edx, dword [esp + 0x38]
test edx, edx
je 0x58f096
mov ecx, dword [edx + 4]
mov ebx, dword [edx]
mov ebp, dword [edx + 8]
mov eax, dword [edx + 0xc]
cmp ecx, eax
jb 0x58f4d1
mov dword [esp], 0
sub ebp, eax
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, eax
lea edx, [ebx + ebp]
mov dword [esp + 4], edx
sub ecx, eax
mov dword [esp + 8], ecx
call fcn.00448630
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
add esp, 0x68
ret
mov ecx, 5
lea eax, [0x60f4c1]
jmp 0x58f08a
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
lea eax, [edx - 0x100]
mov dword [esp], eax
call fcn.00409020
mov eax, dword [esp + 4]
lea ecx, [0x5da940]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
lea eax, [0x65e910]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
lea ecx, [0x613363]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 0x13
lea ecx, [esp + 0x3c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 1
call fcn.004aff10
jmp 0x58f041
cmp edx, 0xee9413f
jne 0x58f1f6
lea edx, [0x65fdf0]
mov ebx, dword [esp + 0x6c]
cmp edx, ebx
jne 0x58f041
mov dword [esp + 0x28], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
lea eax, [0x5afc00]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x70]
mov dword [esp], ecx
lea ecx, [esp + 0x44]
mov dword [esp + 4], ecx
call fcn.0058bc50
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x58f1ed
mov ebx, dword [esp + 0x38]
mov ebp, dword [ebx + 4]
sub ebp, dword [ebx + 0xc]
cmp ebp, 1
jne 0x58f1b3
nop
mov dword [ebx + 4], 0
mov dword [ebx + 0xc], 0
mov byte [ebx + 0x10], 0
jmp 0x58f041
mov byte [ebx + 0x10], 0
lea esi, [ebp - 1]
test esi, esi
jl 0x58f50b
mov edx, dword [ebx + 8]
mov edi, dword [ebx + 4]
mov eax, ebx
mov ebx, dword [ebx + 0xc]
sub edi, ebx
cmp esi, edi
jg 0x58f50b
lea ecx, [ebp + ebx - 1]
cmp ecx, edx
ja 0x58f506
mov dword [eax + 4], ecx
mov ebx, eax
jmp 0x58f041
mov ebx, dword [esp + 0x38]
jmp 0x58f041
cmp edx, 0x9efdc81d
jne 0x58f041
mov edx, dword [esp + 0x6c]
lea ebx, [0x65fdd8]
cmp edx, ebx
jne 0x58f041
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call fcn.00409020
mov eax, dword [esp + 4]
lea ecx, [0x5de340]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
lea eax, [0x65e910]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
lea ecx, [0x6108a6]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 0xb
lea ecx, [esp + 0x3c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 1
call fcn.004aff10
jmp 0x58f041
cmp edx, 0x9f5a1761
jne 0x58f369
mov edx, dword [esp + 0x6c]
lea ebx, [0x65fd30]
cmp edx, ebx
jne 0x58f041
lea edi, [esp + 0x50]
xor eax, eax
call fcn.0045e0aa
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + 0xc]
mov dword [esp], edx
call fcn.00409020
mov ecx, dword [esp + 4]
lea edx, [0x5db300]
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + 0x10]
mov dword [esp], edx
call fcn.00409020
mov ecx, dword [esp + 4]
lea edx, [0x5de340]
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + 0x14]
mov ebx, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x1c]
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call fcn.004091b0
mov ecx, dword [esp + 0xc]
lea edx, [0x5d3720]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], ecx
lea ecx, [0x65e910]
mov dword [esp], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], ecx
lea edx, [0x61a12e]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0x24
lea edx, [esp + 0x50]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], 3
mov dword [esp + 0x18], 3
call fcn.004aff10
jmp 0x58f041
cmp edx, 0xa833b76b
jne 0x58f40f
lea edx, [0x65fd90]
mov ebx, dword [esp + 0x6c]
cmp edx, ebx
jne 0x58f041
mov eax, dword [esp + 0x70]
test byte [eax], al
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
add eax, 0xc
mov dword [esp], eax
mov dword [esp + 4], 8
mov dword [esp + 8], 8
call fcn.004091b0
mov eax, dword [esp + 0xc]
lea ecx, [0x5d3720]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
lea eax, [0x65e910]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
lea ecx, [0x60fc82]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 8
lea ecx, [esp + 0x3c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 1
call fcn.004aff10
jmp 0x58f041
cmp edx, 0xd47d69d1
jne 0x58f041
lea edx, [0x65fe20]
mov ebx, dword [esp + 0x6c]
cmp edx, ebx
jne 0x58f041
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x58f4aa
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call fcn.00409020
mov eax, dword [esp + 4]
lea ecx, [0x5db300]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
lea eax, [0x65e910]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
lea ecx, [0x60fc4a]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 8
lea ecx, [esp + 0x3c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 1
call fcn.004aff10
jmp 0x58f041
mov eax, dword [esp + 0x38]
mov dword [esp], eax
lea ecx, [0x60f8e9]
mov dword [esp + 4], ecx
mov dword [esp + 8], 7
call fcn.004ba830
mov eax, dword [esp + 0x70]
jmp 0x58f438
call fcn.0045def0
lea eax, [0x5db180]
mov dword [esp], eax
lea eax, [0x65bf78]
mov dword [esp + 4], eax
call fcn.00431a30
lea eax, [0x5db180]
mov dword [esp], eax
lea eax, [0x65bf78]
mov dword [esp + 4], eax
call fcn.00431a30
call fcn.0045ded0
lea eax, [0x5db180]
mov dword [esp], eax
lea eax, [0x65be48]
mov dword [esp + 4], eax
call fcn.00431a30
nop
call fcn.0045c8b0
jmp fcn.0058eef0