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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x585ddc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x58], 0
je 0x585924
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 0xffffffff
jne 0x5858e9
cmp dword [eax + 0x10], 0xffffffff
ja 0x585924
jmp 0x5858eb
jg 0x585924
mov eax, dword [ebp - 4]
cmp byte [eax + 0x4a], 0
jne 0x585924
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0058579c
lea ecx, [ebp - 0x1c]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00584c04
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
call fcn.0059ae00
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
call fcn.005975c4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
cmp dword [eax + 8], 0
jg 0x585a7c
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
sub eax, 1
jno 0x58595a
call fcn.00403060
test eax, eax
jl 0x585d62
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0
imul eax, dword [ebp - 0x10], 0xd
jno 0x585978
call fcn.00403060
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x68]
cmp byte [edx + eax*4 + 0x24], 0
jne 0x585a6b
imul eax, dword [ebp - 0x10], 0xd
jno 0x585994
call fcn.00403060
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x68]
xor ecx, ecx
mov dword [edx + eax*4 + 0x1c], ecx
imul eax, dword [ebp - 0x10], 0xd
jno 0x5859ab
call fcn.00403060
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x68]
cmp byte [edx + eax*4 + 0x2c], 0
je 0x5859ea
imul eax, dword [ebp - 0x10], 0xd
jno 0x5859c3
call fcn.00403060
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x68]
cmp dword [edx + eax*4 + 0x30], 0
je 0x5859ea
imul eax, dword [ebp - 0x10], 0xd
jno 0x5859db
call fcn.00403060
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x68]
mov eax, dword [edx + eax*4 + 0x30]
call fcn.00403124
imul eax, dword [ebp - 0x10], 0xd
jno 0x5859f5
call fcn.00403060
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x68]
mov byte [edx + eax*4 + 0x2c], 0
imul eax, dword [ebp - 0x10], 0xd
jno 0x585a0b
call fcn.00403060
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x68]
mov byte [edx + eax*4 + 0x2d], 0
imul eax, dword [ebp - 0x10], 0xd
jno 0x585a21
call fcn.00403060
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x68]
xor ecx, ecx
mov dword [edx + eax*4 + 0x30], ecx
imul eax, dword [ebp - 0x10], 0xd
jno 0x585a38
call fcn.00403060
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x68]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x3c]
mov dword [edx + eax*4 + 0x20], ecx
imul eax, dword [ebp - 0x10], 0xd
jno 0x585a53
call fcn.00403060
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x68]
mov ecx, dword [ebp - 0x14]
mov dword [edx + eax*4 + 0x28], ecx
add dword [ebp - 0x14], 1
jno 0x585a6b
call fcn.00403060
inc dword [ebp - 0x10]
dec dword [ebp - 0x18]
jne 0x58596d
jmp 0x585d62
mov eax, dword [ebp - 4]
cmp byte [eax + 4], 0
je 0x585c30
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov eax, dword [eax + 8]
sub eax, 1
jno 0x585a9c
call fcn.00403060
test eax, eax
jl 0x585d62
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x14], eax
imul eax, dword [ebp - 0x14], 0xd
jno 0x585acc
call fcn.00403060
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x68]
cmp byte [edx + eax*4 + 0x24], 0
je 0x585b48
push 0x585df0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
imul eax, dword [ebp - 0x14], 0xd
jno 0x585af6
call fcn.00403060
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x68]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
imul eax, dword [ebp - 0x14], 0xd
jno 0x585b11
call fcn.00403060
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x68]
mov eax, dword [edx + eax*4 + 4]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
lea eax, [ebp - 0x3c]
push eax
push 3
mov ecx, 0x284a
mov dl, 1
mov eax, dword [0x511cb0]
call fcn.00511e14
call fcn.004038bc
imul eax, dword [ebp - 0x14], 0xd
jno 0x585b53
call fcn.00403060
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x68]
xor ecx, ecx
mov dword [edx + eax*4 + 0x1c], ecx
imul eax, dword [ebp - 0x14], 0xd
jno 0x585b6a
call fcn.00403060
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x68]
cmp byte [edx + eax*4 + 0x2c], 0
je 0x585ba9
imul eax, dword [ebp - 0x14], 0xd
jno 0x585b82
call fcn.00403060
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x68]
cmp dword [edx + eax*4 + 0x30], 0
je 0x585ba9
imul eax, dword [ebp - 0x14], 0xd
jno 0x585b9a
call fcn.00403060
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x68]
mov eax, dword [edx + eax*4 + 0x30]
call fcn.00403124
imul eax, dword [ebp - 0x14], 0xd
jno 0x585bb4
call fcn.00403060
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x68]
mov byte [edx + eax*4 + 0x2c], 0
imul eax, dword [ebp - 0x14], 0xd
jno 0x585bca
call fcn.00403060
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x68]
mov byte [edx + eax*4 + 0x2d], 0
imul eax, dword [ebp - 0x14], 0xd
jno 0x585be0
call fcn.00403060
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x68]
xor ecx, ecx
mov dword [edx + eax*4 + 0x30], ecx
imul eax, dword [ebp - 0x14], 0xd
jno 0x585bf7
call fcn.00403060
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x68]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x3c]
mov dword [edx + eax*4 + 0x20], ecx
imul eax, dword [ebp - 0x14], 0xd
jno 0x585c12
call fcn.00403060
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x68]
mov ecx, dword [ebp - 0x10]
mov dword [edx + eax*4 + 0x28], ecx
inc dword [ebp - 0x10]
dec dword [ebp - 0x18]
jne 0x585aaf
jmp 0x585d62
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
sub eax, 1
jno 0x585c45
call fcn.00403060
test eax, eax
jl 0x585d62
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0
imul eax, dword [ebp - 0x10], 0xd
jno 0x585c63
call fcn.00403060
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x68]
cmp byte [edx + eax*4 + 0x24], 0
jne 0x585d56
imul eax, dword [ebp - 0x10], 0xd
jno 0x585c7f
call fcn.00403060
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x68]
xor ecx, ecx
mov dword [edx + eax*4 + 0x1c], ecx
imul eax, dword [ebp - 0x10], 0xd
jno 0x585c96
call fcn.00403060
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x68]
cmp byte [edx + eax*4 + 0x2c], 0
je 0x585cd5
imul eax, dword [ebp - 0x10], 0xd
jno 0x585cae
call fcn.00403060
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x68]
cmp dword [edx + eax*4 + 0x30], 0
je 0x585cd5
imul eax, dword [ebp - 0x10], 0xd
jno 0x585cc6
call fcn.00403060
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x68]
mov eax, dword [edx + eax*4 + 0x30]
call fcn.00403124
imul eax, dword [ebp - 0x10], 0xd
jno 0x585ce0
call fcn.00403060
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x68]
mov byte [edx + eax*4 + 0x2c], 0
imul eax, dword [ebp - 0x10], 0xd
jno 0x585cf6
call fcn.00403060
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x68]
mov byte [edx + eax*4 + 0x2d], 0
imul eax, dword [ebp - 0x10], 0xd
jno 0x585d0c
call fcn.00403060
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x68]
xor ecx, ecx
mov dword [edx + eax*4 + 0x30], ecx
imul eax, dword [ebp - 0x10], 0xd
jno 0x585d23
call fcn.00403060
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x68]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x3c]
mov dword [edx + eax*4 + 0x20], ecx
imul eax, dword [ebp - 0x10], 0xd
jno 0x585d3e
call fcn.00403060
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x68]
mov ecx, dword [ebp - 0x14]
mov dword [edx + eax*4 + 0x28], ecx
add dword [ebp - 0x14], 1
jno 0x585d56
call fcn.00403060
inc dword [ebp - 0x10]
dec dword [ebp - 0x18]
jne 0x585c58
mov eax, dword [ebp - 4]
mov byte [eax + 0x38], 1
mov eax, dword [ebp - 4]
cmp byte [eax + 6], 0
je 0x585d8e
mov eax, dword [ebp - 4]
cmp dword [eax + 0x78], 0
je 0x585d8e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x78]
call fcn.00403124
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x78], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x6c], 0
je 0x585da2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x6c]
call fcn.00403124
mov eax, dword [ebp - 4]
cmp dword [eax + 0x70], 0
je 0x585db6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x70]
call fcn.00403124
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x70], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x6c], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x585de3
lea eax, [ebp - 0x1c]
call fcn.00403ec4
ret