Function at 0x588fdc
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.005a6384
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x589015
mov eax, dword [0xd1470c]
neg eax
jmp 0x58937b
push dword [ebp + 8]
push 0
call fcn.00594330
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x58903e
push dword [ebp - 0x18]
call fcn.005a63f4
pop ecx
mov eax, 0xfffffff4
jmp 0x58937b
cmp byte [ebp + 0x14], 1
jne 0x589059
mov dword [ebp - 0x34], 0xffffff86
push dword [ebp - 0x18]
call fcn.005a63f4
pop ecx
jmp 0x589366
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.00587bbf
add esp, 0x24
mov dword [ebp - 0x34], eax
push dword [ebp - 0x18]
call fcn.005a63f4
pop ecx
cmp dword [ebp - 0x34], 0
je 0x589099
mov dword [ebp - 0x34], 0xffffffec
jmp 0x589366
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 0x5890b5
mov ecx, dword [ebp - 8]
cmp word [ecx + 0xc], 0
je 0x5890c1
mov dword [ebp - 0x34], 0xffffffea
jmp 0x589366
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.0066c86c
add esp, 0xc
push 1
push 0
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.00596788
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.00588f34
add esp, 0x18
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x589366
push dword [ebp - 0x38]
call fcn.005a1e94
pop ecx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x589164
mov edx, dword [0xd1470c]
neg edx
mov dword [ebp - 0x34], edx
jmp 0x589366
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 0x589199
mov edx, dword [ebp - 0x38]
test edx, edx
jns 0x58918c
add edx, 0x1ff
sar edx, 9
inc edx
mov ecx, dword [ebp - 0x14]
mov word [ecx + 6], dx
jmp 0x5891a2
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 0x589208
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 0x589219
mov eax, dword [ebp - 0x10]
test byte [eax + 0xc], 2
je 0x5891fe
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.0066c7fc
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 0x589279
mov edx, dword [ebp - 0x10]
movzx ecx, word [edx + 8]
push ecx
push dword [ebp - 0x10]
push dword [ebp - 0x28]
call fcn.0066c820
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 0x58929a
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.00595478
add esp, 0xc
test eax, eax
je 0x5892e6
mov eax, dword [0xd1470c]
neg eax
mov dword [ebp - 0x34], eax
jmp 0x589366
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.005a2004
add esp, 8
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x589324
mov edx, dword [0xd1470c]
neg edx
mov dword [ebp - 0x34], edx
jmp 0x589366
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.00588eff
add esp, 0x18
mov dword [ebp - 0x34], eax
push dword [ebp - 0x14]
call fcn.005a20f4
pop ecx
cmp dword [ebp - 0x34], 0
jne 0x589366
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp - 0x14]
mov dword [eax], edx
push dword [ebp - 4]
call fcn.00594378
pop ecx
xor eax, eax
jmp 0x58937b
push dword [ebp - 4]
call fcn.00594378
pop ecx
push dword [ebp - 0x14]
call fcn.0066c220
pop ecx
mov eax, dword [ebp - 0x34]
mov esp, ebp
pop ebp
ret