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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x58b27e
sub esp, 0x64
mov edx, dword [0x7b6254]
mov ebx, dword [0x7b6250]
test edx, edx
je 0x58ad28
mov ecx, dword [esp + 0x68]
xor eax, eax
xor ebp, ebp
xor esi, esi
jmp 0x58b245
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
test eax, eax
jne 0x58ad6c
cmp ecx, 4
jne 0x58ad4e
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x6c]
jmp 0x58ae70
mov eax, dword [0x7baf90]
mov ecx, dword [0x7baf94]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], ecx
add esp, 0x64
ret
cmp eax, 2
je 0x58b20f
cmp eax, 3
jne 0x58addc
movzx edx, byte [esp + 0x8c]
test dl, dl
jne 0x58addc
lea eax, [0x60d2a5]
mov dword [esp], eax
mov dword [esp + 4], 8
call fcn.004d5980
mov eax, dword [esp + 8]
cmp dword [esp + 0xc], 1
jne 0x58adac
cmp byte [eax], 0x31
je 0x58add4
mov eax, dword [esp + 0x68]
mov dword [esp], eax
call fcn.00409040
mov eax, dword [esp + 4]
lea ecx, [0x6684dc]
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], eax
add esp, 0x64
ret
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
cmp eax, 0x14
jae 0x58b1f1
mov edx, dword [0x7bb4ec]
mov ebx, dword [0x7bb4e8]
cmp eax, edx
jae 0x58b237
mov edx, dword [ebx + eax*4]
test edx, edx
je 0x58b1f1
mov dword [esp], eax
call fcn.004b6d60
mov eax, dword [esp + 4]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x40], ecx
mov edx, dword [eax + 0x20]
mov dword [esp], ecx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 0xc], ebx
call edx
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x1c]
mov ecx, dword [esp + 0x40]
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x84]
test ebx, ebx
je 0x58b1d3
mov ebx, dword [ebx + 8]
cmp ebx, 0x4bcec15d
jne 0x58afca
mov ebx, dword [esp + 0x84]
lea ebp, [0x5ed4e0]
cmp ebx, ebp
jne 0x58b1d3
mov ebx, dword [esp + 0x2c]
cmp ebx, 1
jne 0x58af99
nop
mov ebx, dword [esp + 0x68]
add ebx, 0xfffffff3
cmp ebx, 2
ja 0x58af41
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0xffffffff
mov ebx, dword [esp + 0x88]
mov dword [esp], ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x78]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x20], eax
call fcn.00572d80
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], ecx
add esp, 0x64
ret
mov ebx, dword [esp + 0x88]
mov dword [esp], ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x78]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x1c], eax
call fcn.00572390
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], ecx
add esp, 0x64
ret
mov dword [esp], ebx
mov dword [esp + 4], ebp
mov eax, dword [esp + 0x88]
mov dword [esp + 8], eax
call fcn.0058abf0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], ecx
add esp, 0x64
ret
cmp ebx, 0x8c7bd38d
jne 0x58b0bb
mov ebx, dword [esp + 0x84]
lea ebp, [0x5fecc0]
cmp ebx, ebp
jne 0x58b1d3
mov ebx, dword [esp + 0x2c]
cmp ebx, 3
jne 0x58b08a
mov ebx, dword [esp + 0x88]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x78]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x18], eax
call fcn.00568670
movzx eax, byte [esp + 0x1c]
test al, al
je 0x58b051
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
add esp, 0x64
ret
lea eax, [0x5ec160]
mov dword [esp], eax
call fcn.0040b6c0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x20
lea ecx, [0x6183c9]
mov dword [eax], ecx
lea ecx, [0x6681f8]
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], eax
add esp, 0x64
ret
mov dword [esp], ebx
mov dword [esp + 4], ebp
mov eax, dword [esp + 0x88]
mov dword [esp + 8], eax
call fcn.0058abf0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], ecx
add esp, 0x64
ret
cmp ebx, 0xc0d9e4a4
jne 0x58b1d3
mov ebx, dword [esp + 0x84]
lea ebp, [0x5ea8e0]
cmp ebx, ebp
jne 0x58b1d3
mov ebx, dword [esp + 0x88]
mov esi, dword [ebx + 4]
mov edi, dword [ebx + 8]
mov ebx, dword [ebx]
mov ebp, dword [esp + 0x2c]
cmp ebp, 4
jne 0x58b18b
mov dword [esp], ebx
mov dword [esp + 4], esi
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x78]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x20], eax
call fcn.00571f30
movzx eax, byte [esp + 0x24]
test al, al
je 0x58b152
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
add esp, 0x64
ret
lea eax, [0x5ec160]
mov dword [esp], eax
call fcn.0040b6c0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x22
lea ecx, [0x618f7b]
mov dword [eax], ecx
lea ecx, [0x6681f8]
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], eax
add esp, 0x64
ret
mov dword [esp], ebx
mov dword [esp + 4], esi
mov dword [esp + 8], edi
call fcn.004091d0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x2c]
mov dword [esp], ecx
lea ecx, [0x5ea8e0]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0058abf0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], ecx
add esp, 0x64
ret
mov eax, dword [0x7baf90]
mov ecx, dword [0x7baf94]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], ecx
add esp, 0x64
ret
mov eax, dword [0x7baf90]
mov ecx, dword [0x7baf94]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], ecx
add esp, 0x64
ret
mov eax, dword [esp + 0x68]
mov dword [esp], eax
call fcn.00409040
mov eax, dword [esp + 4]
lea ecx, [0x6684dc]
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], eax
add esp, 0x64
ret
mov ecx, edx
call fcn.00461160
add ebx, 0x20
mov eax, ebp
mov ebp, edi
mov dword [esp + 0x2c], esi
lea edi, [esp + 0x44]
mov esi, ebx
call fcn.00461810
mov ecx, dword [esp + 0x68]
cmp dword [esp + 0x44], ecx
jne 0x58b268
mov ebp, dword [esp + 0x60]
mov esi, dword [esp + 0x5c]
jmp 0x58b26c
mov esi, dword [esp + 0x2c]
mov edi, ebp
lea ebp, [eax + 1]
cmp edx, ebp
jg 0x58b23e
mov eax, edi
mov ecx, esi
jmp 0x58ad2c
call fcn.0045fcc0
jmp fcn.0058acf0