Function at 0x5893f8
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
xor eax, eax
mov dword [ebp - 0x14], eax
xor edx, edx
mov dword [ebp - 0x18], edx
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
call fcn.005a67a0
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x589431
mov eax, dword [0xd220e0]
neg eax
jmp 0x589797
push dword [ebp + 8]
push 0
call fcn.0059474c
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x58945a
push dword [ebp - 0x18]
call fcn.005a6810
pop ecx
mov eax, 0xfffffff4
jmp 0x589797
cmp byte [ebp + 0x14], 1
jne 0x589475
mov dword [ebp - 0x34], 0xffffff86
push dword [ebp - 0x18]
call fcn.005a6810
pop ecx
jmp 0x589782
push dword [ebp - 4]
push 0
push 0
push 0
push 0
mov dl, byte [ebp + 0x14]
push edx
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
push 0x90
call fcn.00587fdb
add esp, 0x24
mov dword [ebp - 0x34], eax
push dword [ebp - 0x18]
call fcn.005a6810
pop ecx
cmp dword [ebp - 0x34], 0
je 0x5894b5
mov dword [ebp - 0x34], 0xffffffec
jmp 0x589782
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 4]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
cmp byte [edx + 8], 0
jne 0x5894d1
mov ecx, dword [ebp - 8]
cmp word [ecx + 0xc], 0
je 0x5894dd
mov dword [ebp - 0x34], 0xffffffea
jmp 0x589782
mov eax, dword [ebp - 8]
movzx edx, word [eax + 0x14]
add edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0x10]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0xc]
mov ecx, dword [edx + 0x10]
add ecx, dword [ebp - 0xc]
add ecx, 0x10
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0xc]
mov ecx, dword [edx + 8]
mov dword [ebp - 0x38], ecx
push 8
push 0
lea eax, [ebp - 0x24]
push eax
call fcn.0066cc88
add esp, 0xc
push 1
push 0
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.00596ba4
add esp, 0x10
push 8
lea ecx, [ebp - 0x24]
push ecx
mov al, byte [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00589350
add esp, 0x18
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x589782
push dword [ebp - 0x38]
call fcn.005a22b0
pop ecx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x589580
mov edx, dword [0xd220e0]
neg edx
mov dword [ebp - 0x34], edx
jmp 0x589782
mov ecx, dword [ebp - 0x14]
mov dword [ecx], 0x58444e49
mov eax, dword [ebp - 0x14]
mov word [eax + 4], 0x28
cmp dword [ebp - 0x38], 0x200
jl 0x5895b5
mov edx, dword [ebp - 0x38]
test edx, edx
jns 0x5895a8
add edx, 0x1ff
sar edx, 9
inc edx
mov ecx, dword [ebp - 0x14]
mov word [ecx + 6], dx
jmp 0x5895be
mov eax, dword [ebp - 0x14]
mov word [eax + 6], 1
mov edx, dword [ebp - 0x14]
movzx ecx, word [edx + 4]
mov eax, dword [ebp - 0x14]
mov word [eax + ecx], 1
mov edx, dword [ebp - 0x14]
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x24], 0
mov edx, dword [ebp - 0x14]
movzx ecx, word [edx + 6]
add ecx, ecx
add ecx, 0x17
and ecx, 0xfffffff8
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x18], ecx
mov edx, dword [ebp - 0x38]
sub edx, 0x18
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x20], edx
jmp 0x589624
mov eax, dword [ebp - 0x10]
movzx edx, word [eax + 8]
add dword [ebp - 0x10], edx
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x2c]
jae 0x589635
mov eax, dword [ebp - 0x10]
test byte [eax + 0xc], 2
je 0x58961a
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
movzx eax, word [ecx + 8]
add edx, eax
mov dword [ebp - 0x30], edx
push dword [ebp - 0x30]
push dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
add edx, dword [ecx + 0x18]
add edx, 0x18
push edx
call fcn.0066cc18
add esp, 0xc
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x14]
add eax, dword [edx + 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x1c], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x28]
jbe 0x589695
mov edx, dword [ebp - 0x10]
movzx ecx, word [edx + 8]
push ecx
push dword [ebp - 0x10]
push dword [ebp - 0x28]
call fcn.0066cc3c
add esp, 0xc
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x1c], 1
mov ecx, dword [ebp - 0x10]
or word [ecx + 0xc], 1
mov eax, dword [ebp - 0x10]
cmp word [eax + 8], 0x18
jae 0x5896b6
mov edx, dword [ebp - 0x10]
add word [edx + 8], 8
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + 0x10]
mov edx, dword [ebp - 0x10]
movzx ecx, word [edx + 8]
add eax, ecx
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x14]
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x18], ecx
mov edx, dword [ebp - 0xc]
mov ecx, dword [edx + 0x18]
add ecx, 0x10
push ecx
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00595894
add esp, 0xc
test eax, eax
je 0x589702
mov eax, dword [0xd220e0]
neg eax
mov dword [ebp - 0x34], eax
jmp 0x589782
mov edx, dword [ebp - 0x10]
movzx ecx, word [edx + 8]
mov eax, dword [ebp - 0x10]
mov dword [eax + ecx - 8], 0
mov dword [eax + ecx - 4], 0
push dword [ebp - 0x38]
push dword [ebp - 0x14]
call fcn.005a2420
add esp, 8
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x589740
mov edx, dword [0xd220e0]
neg edx
mov dword [ebp - 0x34], edx
jmp 0x589782
push dword [ebp - 0x38]
push dword [ebp - 0x14]
mov cl, byte [ebp + 0x14]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0058931b
add esp, 0x18
mov dword [ebp - 0x34], eax
push dword [ebp - 0x14]
call fcn.005a2510
pop ecx
cmp dword [ebp - 0x34], 0
jne 0x589782
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp - 0x14]
mov dword [eax], edx
push dword [ebp - 4]
call fcn.00594794
pop ecx
xor eax, eax
jmp 0x589797
push dword [ebp - 4]
call fcn.00594794
pop ecx
push dword [ebp - 0x14]
call fcn.0066c63c
pop ecx
mov eax, dword [ebp - 0x34]
mov esp, ebp
pop ebp
ret