Function at 0x585640
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x585976
sub esp, 0x48
lea edi, [esp + 0x58]
xor eax, eax
call fcn.00465fe9
lea edi, [esp + 0x2c]
call fcn.00465fe9
mov ecx, dword [esp + 0x50]
cmp ecx, 0xa
jl 0x5858bc
mov edx, dword [esp + 0x4c]
movzx ebx, byte [edx + 1]
movzx ebp, byte [edx]
shl ebp, 8
or ebx, ebp
mov word [esp + 0x2c], bx
lea ebx, [ecx - 2]
cmp ebx, 1
jbe 0x585969
movzx ebx, byte [edx + 3]
movzx ebp, byte [edx + 2]
shl ebp, 8
or ebx, ebp
mov word [esp + 0x2e], bx
lea ebx, [ecx - 4]
cmp ebx, 1
jbe 0x58595d
movzx ebx, byte [edx + 5]
movzx ebp, byte [edx + 4]
shl ebp, 8
or ebx, ebp
mov word [esp + 0x30], bx
lea ebx, [ecx - 6]
cmp ebx, 1
jbe 0x585951
movzx ebx, byte [edx + 7]
movzx ebp, byte [edx + 6]
shl ebp, 8
or ebx, ebp
mov word [esp + 0x32], bx
lea ebx, [ecx - 8]
cmp ebx, 1
jbe 0x585945
movzx eax, byte [edx + 9]
movzx ebx, byte [edx + 8]
shl ebx, 8
or eax, ebx
mov word [esp + 0x34], ax
movzx eax, word [esp + 0x32]
test ax, ax
jne 0x585717
xor eax, eax
xor ebx, ebx
jmp 0x585752
mov dword [esp], edx
mov dword [esp + 4], ecx
mov ebx, dword [esp + 0x54]
mov dword [esp + 8], ebx
mov word [esp + 0xc], ax
call fcn.0059c930
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], ebx
mov edx, dword [esp + 0x4c]
mov ebx, ecx
mov ecx, dword [esp + 0x50]
test eax, eax
je 0x5857d2
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
je 0x58576b
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
lea eax, [0x6f948e]
mov dword [esp], eax
mov dword [esp + 4], 0x19
lea eax, [esp + 0x24]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004cde70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x20], ecx
lea edi, [esp + 0x58]
lea esi, [esp + 0x2c]
call fcn.004664ba
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x7c], eax
add esp, 0x48
ret
movzx eax, word [esp + 0x34]
test ax, ax
jne 0x5857e2
xor eax, eax
xor ecx, ecx
jmp 0x585813
mov dword [esp], edx
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 8], ecx
mov word [esp + 0xc], ax
call fcn.0059c930
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ebx
test eax, eax
je 0x585893
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
je 0x58582c
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
lea eax, [0x6f948e]
mov dword [esp], eax
mov dword [esp + 4], 0x19
lea eax, [esp + 0x24]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004cde70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x20], ecx
lea edi, [esp + 0x58]
lea esi, [esp + 0x2c]
call fcn.004664ba
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x7c], eax
add esp, 0x48
ret
lea edi, [esp + 0x58]
lea esi, [esp + 0x2c]
call fcn.004664ba
mov dword [esp + 0x74], 0xa
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
add esp, 0x48
ret
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp], ecx
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
lea eax, [0x704d4a]
mov dword [esp], eax
mov dword [esp + 4], 0x37
lea eax, [esp + 0x24]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004cde70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x20], ecx
lea edi, [esp + 0x58]
lea esi, [esp + 0x2c]
call fcn.004664ba
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x7c], eax
add esp, 0x48
ret
mov eax, 1
mov ecx, ebx
call fcn.00465e00
mov eax, 1
mov ecx, ebx
call fcn.00465e00
mov eax, 1
mov ecx, ebx
call fcn.00465e00
mov eax, 1
mov ecx, ebx
call fcn.00465e00
nop
call fcn.004649b0
jmp fcn.00585640