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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x58b08b
sub esp, 0x7c
mov eax, 0
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov byte [esp + 0x27], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov eax, dword [esp + 0x80]
test eax, eax
je 0x58a9f6
movzx eax, byte [eax]
test al, al
jne 0x58b02d
call fcn.0058e920
lea eax, [0xbd51ac]
mov dword [esp + 0x78], eax
mov byte [esp + 0x27], 1
mov eax, dword [esp + 0x90]
cmp eax, 4
je 0x58afb0
xor ecx, ecx
mov dword [esp + 0x28], ecx
lea edi, [esp + 0x50]
xor eax, eax
call fcn.00460de8
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x38], 0
mov ecx, dword [esp + 0x94]
mov dword [esp], ecx
mov edx, dword [esp + 0x98]
mov dword [esp + 4], edx
call fcn.00473cd0
mov ecx, dword [esp + 8]
mov dword [esp], 0
mov dword [esp + 4], ecx
lea ecx, [esp + 0x50]
mov dword [esp + 8], ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0xc], ecx
call fcn.0047bde0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
test ecx, ecx
jne 0x58ad72
lea eax, [0xbd5674]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x70], eax
mov byte [esp + 0x27], 3
mov eax, dword [esp + 0x38]
test eax, eax
je 0x58ac69
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 4]
cmp eax, 2
je 0x58ac1b
cmp eax, 0x17
je 0x58abcd
mov dword [esp], 0x20000027
call fcn.00473d40
mov eax, dword [esp + 4]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x34], ecx
lea edx, [0xb31380]
mov dword [esp], edx
call fcn.0040bd00
mov edi, dword [esp + 4]
mov dword [esp + 0x48], edi
mov eax, dword [esp + 0x34]
mov dword [edi + 4], eax
mov eax, dword [0x10fd360]
test eax, eax
jne 0x58abbf
mov eax, dword [esp + 0x4c]
mov dword [edi], eax
mov dword [esp], 0
mov eax, dword [esp + 0x8c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 8], eax
lea eax, [0xb8e062]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x94]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x18], eax
call fcn.0044a4a0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x48]
mov dword [edx + 0xc], ecx
mov ecx, dword [0x10fd360]
test ecx, ecx
jne 0x58abb5
mov dword [edx + 8], eax
mov dword [esp + 0x9c], 0
lea eax, [0xc83240]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], edx
mov byte [esp + 0x27], 1
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call fcn.0047bed0
mov byte [esp + 0x27], 0
call fcn.0058e970
add esp, 0x7c
ret
lea edi, [edx + 8]
call fcn.00460b40
jmp 0x58ab77
mov eax, dword [esp + 0x4c]
call fcn.00460b40
jmp 0x58ab11
movzx eax, word [ecx + 2]
mov word [esp], ax
call fcn.0047b8a0
movzx eax, word [esp + 4]
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov byte [esp + 0x27], 1
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call fcn.0047bed0
mov byte [esp + 0x27], 0
call fcn.0058e970
add esp, 0x7c
ret
movzx eax, word [ecx + 2]
mov word [esp], ax
call fcn.0047b8a0
movzx eax, word [esp + 4]
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov byte [esp + 0x27], 1
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call fcn.0047bed0
mov byte [esp + 0x27], 0
call fcn.0058e970
add esp, 0x7c
ret
mov dword [esp], 0x20000027
call fcn.00473d40
mov eax, dword [esp + 4]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x34], ecx
lea edx, [0xb31380]
mov dword [esp], edx
call fcn.0040bd00
mov edi, dword [esp + 4]
mov dword [esp + 0x48], edi
mov eax, dword [esp + 0x34]
mov dword [edi + 4], eax
mov eax, dword [0x10fd360]
test eax, eax
jne 0x58ad64
mov eax, dword [esp + 0x4c]
mov dword [edi], eax
mov dword [esp], 0
mov eax, dword [esp + 0x8c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 8], eax
lea eax, [0xb8e062]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x94]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x18], eax
call fcn.0044a4a0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x48]
mov dword [edx + 0xc], ecx
mov ecx, dword [0x10fd360]
test ecx, ecx
jne 0x58ad5a
mov dword [edx + 8], eax
mov dword [esp + 0x9c], 0
lea eax, [0xc83240]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], edx
mov byte [esp + 0x27], 1
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call fcn.0047bed0
mov byte [esp + 0x27], 0
call fcn.0058e970
add esp, 0x7c
ret
lea edi, [edx + 8]
call fcn.00460b40
jmp 0x58ad1c
mov eax, dword [esp + 0x4c]
call fcn.00460b40
jmp 0x58acb6
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0x8c]
mov dword [esp], eax
mov ecx, dword [esp + 0x90]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x94]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x98]
mov dword [esp + 0xc], ebx
call fcn.00588760
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
test eax, eax
je 0x58af85
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x58af2c
lea ecx, [0xb1a740]
cmp dword [eax + 4], ecx
jne 0x58af2c
mov ecx, dword [esp + 0x40]
cmp dword [ecx], 0x2af9
jne 0x58af2c
mov eax, dword [0x10e4840]
mov ecx, dword [0x10e4844]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x30], eax
mov edx, dword [eax + 0x10]
mov dword [esp], ecx
call edx
mov eax, dword [esp + 4]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x34], ecx
lea edx, [0xb31380]
mov dword [esp], edx
call fcn.0040bd00
mov edi, dword [esp + 4]
mov dword [esp + 0x44], edi
mov eax, dword [esp + 0x34]
mov dword [edi + 4], eax
mov eax, dword [0x10fd360]
test eax, eax
jne 0x58af1e
mov eax, dword [esp + 0x4c]
mov dword [edi], eax
mov dword [esp], 0
mov eax, dword [esp + 0x8c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 8], eax
lea eax, [0xb8e062]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x94]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x18], eax
call fcn.0044a4a0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x44]
mov dword [edx + 0xc], ecx
mov ecx, dword [0x10fd360]
test ecx, ecx
jne 0x58af14
mov dword [edx + 8], eax
mov eax, dword [esp + 0x30]
cmp dword [0x10e4840], eax
je 0x58aee1
mov dword [esp + 0x9c], 0
lea eax, [0xc83240]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], edx
mov byte [esp + 0x27], 0
call fcn.0058e970
add esp, 0x7c
ret
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [0x10e4844]
mov dword [esp + 8], eax
call fcn.004038f0
movzx eax, byte [esp + 0xc]
test al, al
je 0x58af0e
mov edx, dword [esp + 0x44]
mov byte [edx + 0x1a], 1
jmp 0x58aeb4
mov edx, dword [esp + 0x44]
jmp 0x58aeb4
lea edi, [edx + 8]
call fcn.00460b40
jmp 0x58aea8
mov eax, dword [esp + 0x4c]
call fcn.00460b40
jmp 0x58ae42
nop
lea eax, [0xaeef00]
mov dword [esp], eax
call fcn.0040bd00
mov eax, dword [esp + 4]
mov dword [eax + 4], 0xc
lea ecx, [0xb972a2]
mov dword [eax], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 8], ecx
mov ecx, dword [0x10fd360]
test ecx, ecx
jne 0x58af73
mov ecx, dword [esp + 0x40]
mov dword [eax + 0xc], ecx
mov ecx, eax
lea eax, [0xc83740]
jmp 0x58adf1
lea edi, [eax + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x40]
call fcn.00460b40
mov eax, ecx
jmp 0x58af66
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov byte [esp + 0x27], 0
call fcn.0058e970
add esp, 0x7c
ret
mov ecx, dword [esp + 0x8c]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea edx, [0xb8f8f4]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 4
call fcn.00402910
mov eax, dword [esp + 0x10]
test eax, eax
jg 0x58b00a
mov ecx, dword [esp + 0x8c]
cmp dword [ecx], 0x34706374
jne 0x58aff6
mov ecx, 1
jmp 0x58aa1c
cmp dword [ecx], 0x36706374
je 0x58afec
mov eax, dword [esp + 0x90]
jmp 0x58aa1a
mov ecx, dword [esp + 0x8c]
cmp dword [ecx], 0x34706475
jne 0x58b023
mov ecx, 2
jmp 0x58aa1c
cmp dword [ecx], 0x36706475
je 0x58b019
jmp 0x58affe
mov eax, dword [esp + 0x8c]
mov dword [esp], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0xc], eax
call fcn.00588760
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], edx
add esp, 0x7c
ret
call fcn.0045f5f0
jmp fcn.0058a990