Function at 0x58ffab
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
xor eax, eax
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp + 0x28]
mov ecx, dword [edx + 0xc]
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 0x28]
mov edx, dword [eax + 0x14]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
jne 0x58ffe8
mov ecx, dword [ebp + 0x28]
mov eax, dword [ecx + 0xc]
mov edx, dword [ebp + 0x28]
mov dword [edx + 0x14], eax
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x28]
mov ecx, dword [edx]
mov eax, dword [ebp + 0x28]
mov dword [eax + 0x18], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 4]
jne 0x58fffc
mov ecx, dword [ebp + 0x28]
mov eax, dword [ecx + 4]
mov edx, dword [ebp + 0x28]
mov dword [edx + 0x1c], eax
cmp dword [ebp + 8], 0xffffffff
je 0x59051f
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x1c]
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x18]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebp + 0x28]
cmp dword [ecx + 0x10], 0
jne 0x59003d
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 0x28]
mov dword [edx + 0x10], eax
mov dword [ebp - 0x2c], 1
mov ecx, dword [ebp + 0x28]
cmp dword [ecx + 8], 0
je 0x590078
mov eax, dword [ebp + 0x28]
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp + 0x28]
xor eax, eax
mov dword [ecx + 8], eax
cmp dword [ebp + 8], 0
jne 0x590175
cmp dword [ebp - 0x2c], 0
je 0x590175
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0x20
ja 0x5900b0
jmp 0x590175
mov ecx, dword [ebp + 0x28]
mov eax, dword [ecx + 0x10]
movzx edx, word [eax + 4]
mov ecx, dword [ebp + 0x28]
add edx, dword [ecx + 0x10]
mov dword [ebp - 0x10], edx
cmp dword [ebp + 8], 0
jne 0x590175
mov eax, dword [ebp + 0x28]
mov edx, dword [eax + 0x10]
cmp dword [edx], 0x20
jae 0x590175
mov ecx, dword [ebp - 0x10]
cmp dword [ecx], 0x20
jbe 0x590175
cmp dword [ebp + 0xc], 0
jne 0x5900d4
cmp dword [ebp + 0x10], 0
jne 0x5900d4
cmp dword [ebp + 0x20], 0
jne 0x5900d4
cmp dword [ebp + 0x24], 0
jne 0x5900d4
cmp dword [ebp + 0x1c], 0
jne 0x5900d2
cmp dword [ebp + 0x18], 0
je 0x5900e6
mov dword [0xd1470c], 0x16
or eax, 0xffffffff
jmp 0x5905ca
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 0x28]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp + 0x28]
mov edx, dword [eax + 0x18]
mov ecx, dword [ebp + 0x28]
mov dword [ecx], edx
mov eax, dword [ebp + 0x28]
mov dword [eax + 8], 1
mov edx, dword [ebp + 0x28]
mov ecx, dword [edx]
movzx eax, word [ecx + 0x14]
mov edx, dword [ebp + 0x28]
add eax, dword [edx]
mov ecx, dword [ebp + 0x28]
mov dword [ecx + 4], eax
push dword [ebp + 0x28]
push 0
push 0
push 1
push 0
push 0
push 0x20
call fcn.0058fd79
add esp, 0x1c
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 0x28]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp + 0x28]
mov dword [ecx + 8], 1
cmp dword [ebp - 0x30], 0
jne 0x590152
xor eax, eax
jmp 0x5905ca
cmp dword [0xd1470c], 2
je 0x590163
mov eax, dword [ebp - 0x30]
jmp 0x5905ca
mov dword [0xd1470c], 5
or eax, 0xffffffff
jmp 0x5905ca
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x1c]
cmp ecx, dword [ebp - 0x10]
ja 0x5904e5
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x1c]
ja 0x5904e5
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x28]
mov dword [ecx + 0x10], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x1c]
je 0x59051f
mov edx, dword [ebp - 0x10]
cmp word [edx + 4], 0
je 0x5904e5
mov ecx, dword [ebp - 0x10]
add ecx, 6
cmp ecx, dword [ebp - 0x1c]
ja 0x5904e5
mov eax, dword [ebp - 0x10]
movzx edx, word [eax + 4]
add edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x1c]
ja 0x5904e5
mov ecx, dword [ebp - 0x10]
movzx eax, word [ecx + 4]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
cmp dword [ebp + 8], 0
je 0x590204
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx]
cmp ecx, dword [ebp + 8]
ja 0x59051f
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
cmp eax, dword [edx]
jne 0x5904da
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov al, byte [ecx + 6]
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x10]
xor ecx, ecx
mov cl, byte [edx + 7]
add ecx, dword [ebp - 0x10]
mov dword [ebp - 0x24], ecx
cmp dword [ebp + 8], 0
je 0x590328
mov eax, 0x816b98
cmp eax, dword [ebp + 0xc]
jne 0x59023d
cmp dword [ebp - 0x28], 0
jne 0x59051f
jmp 0x590283
cmp dword [ebp + 0xc], 0
je 0x590283
mov edx, dword [ebp - 0xc]
push dword [edx + 0xb4]
mov ecx, dword [ebp - 0xc]
push dword [ecx + 0xb0]
mov al, byte [ebp + 0x14]
push eax
push dword [ebp - 0x28]
push dword [ebp - 0x24]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.005a5c28
add esp, 0x1c
mov dword [ebp - 0x34], eax
test eax, eax
je 0x590283
cmp dword [ebp - 0x34], 0
jl 0x59051f
jmp 0x5904da
cmp dword [ebp + 0x1c], 0
jne 0x59028d
cmp dword [ebp + 0x18], 0
je 0x590328
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x18]
jb 0x590328
mov ecx, dword [ebp - 0x14]
add ecx, 6
cmp ecx, dword [ebp - 0x1c]
jae 0x590328
mov eax, dword [ebp - 0x14]
movzx edx, word [eax + 4]
add edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x1c]
ja 0x590328
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
cmp edx, dword [ebp + 0x1c]
jne 0x5902ce
cmp eax, dword [ebp + 0x18]
ja 0x590328
jmp 0x5902d0
jg 0x590328
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x10]
cmp edx, dword [ecx]
jne 0x590328
mov eax, dword [ebp - 0x14]
xor edx, edx
mov dl, byte [eax + 6]
cmp edx, dword [ebp - 0x28]
jne 0x590328
mov ecx, dword [ebp - 0xc]
push dword [ecx + 0xb4]
mov eax, dword [ebp - 0xc]
push dword [eax + 0xb0]
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x24]
mov edx, dword [ebp - 0x14]
xor ecx, ecx
mov cl, byte [edx + 6]
push ecx
mov eax, dword [ebp - 0x14]
xor edx, edx
mov dl, byte [eax + 7]
add edx, dword [ebp - 0x14]
push edx
call fcn.005a5bc0
add esp, 0x1c
test eax, eax
jne 0x5904da
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0x14]
and edx, 0xffff
mov ecx, dword [ebp - 8]
cmp edx, dword [ecx + 4]
jne 0x590364
cmp eax, dword [ecx]
jne 0x590364
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
shr eax, 0x10
xor edx, edx
and ax, 0xffff
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 8]
cmp ax, word [ecx + 0x10]
jne 0x5904e5
jmp 0x5903cd
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
and edx, 0xffff
mov ecx, dword [ebp - 4]
cmp edx, dword [ecx + 4]
jne 0x590398
cmp eax, dword [ecx]
jne 0x590398
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x28]
mov dword [edx + 0xc], eax
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0x28]
mov ecx, dword [edx + 0x18]
mov eax, dword [ebp + 0x28]
mov dword [eax], ecx
jmp 0x5903cd
mov edx, dword [ebp - 0x10]
push dword [edx + 0x14]
push dword [edx + 0x10]
push dword [ebp - 4]
call fcn.0059dd18
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5904e5
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 0x28]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 8]
mov edx, dword [ebp + 0x28]
mov dword [edx], eax
mov ecx, dword [ebp + 0x28]
mov eax, dword [ecx]
movzx edx, word [eax + 0x14]
mov ecx, dword [ebp + 0x28]
add edx, dword [ecx]
mov eax, dword [ebp + 0x28]
mov dword [eax + 4], edx
mov dword [ebp - 0x20], edx
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp + 0x28]
cmp ecx, dword [eax]
jb 0x5904e5
mov edx, dword [ebp + 0x28]
mov ecx, dword [edx]
mov eax, dword [ecx + 0x1c]
mov edx, dword [ebp + 0x28]
add eax, dword [edx]
cmp eax, dword [ebp - 0x20]
jb 0x5904e5
mov ecx, dword [ebp - 0x20]
cmp dword [ecx], 0xffffffff
je 0x5904da
mov eax, dword [ebp - 0x20]
cmp dword [eax + 4], 0
je 0x5904e5
mov edx, dword [ebp - 0x20]
mov cx, word [edx + 0xe]
mov eax, dword [ebp - 0x10]
cmp cx, word [eax + 0x18]
jne 0x5904cc
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx]
mov eax, dword [ebp - 0x10]
cmp ecx, dword [eax]
jne 0x5904e5
mov edx, dword [ebp - 0xc]
push dword [edx + 0xb4]
mov ecx, dword [ebp - 0xc]
push dword [ecx + 0xb0]
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
xor edx, edx
mov dl, byte [eax + 9]
push edx
mov ecx, dword [ebp - 0x20]
movzx eax, word [ecx + 0xa]
add eax, dword [ebp - 0x20]
push eax
call fcn.005a5bc0
add esp, 0x1c
test eax, eax
je 0x5904e5
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x28]
mov dword [ecx + 4], edx
cmp dword [ebp + 8], 0
je 0x5904c5
cmp dword [ebp + 0x20], 0
je 0x5904c5
mov eax, dword [ebp - 0x20]
cmp byte [eax + 8], 0
jne 0x5904cc
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx + 0x10]
cmp ecx, dword [ebp + 0x24]
jne 0x5904cc
push dword [ebp + 0x24]
push dword [ebp + 0x20]
mov eax, dword [ebp - 0x20]
movzx edx, word [eax + 0x14]
add edx, dword [ebp - 0x20]
push edx
call fcn.0066cb48
add esp, 0xc
test eax, eax
jne 0x5904cc
xor eax, eax
jmp 0x5905ca
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx + 4]
add dword [ebp - 0x20], ecx
jmp 0x5903e4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
jmp 0x590175
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 4]
je 0x59050d
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0x28]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp + 0x28]
mov ecx, dword [edx + 0x18]
mov eax, dword [ebp + 0x28]
mov dword [eax], ecx
mov edx, dword [ebp + 0x28]
mov ecx, dword [edx + 0x1c]
mov eax, dword [ebp + 0x28]
mov dword [eax + 4], ecx
mov dword [0xd1470c], 5
or eax, 0xffffffff
jmp 0x5905ca
cmp dword [ebp + 8], 0
je 0x59052b
cmp dword [ebp + 8], 0xffffffff
jne 0x590553
push dword [ebp + 0x28]
call fcn.005942e0
pop ecx
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
mov dl, byte [ebp + 0x14]
push edx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0xffffffffffffffff
call fcn.0058fd79
add esp, 0x1c
jmp 0x5905ca
mov ecx, dword [ebp + 0x28]
mov eax, dword [ecx + 0x18]
mov edx, dword [ebp + 0x28]
mov dword [edx], eax
mov ecx, dword [ebp + 0x28]
mov eax, dword [ecx]
movzx edx, word [eax + 0x14]
mov ecx, dword [ebp + 0x28]
add edx, dword [ecx]
mov eax, dword [ebp + 0x28]
mov dword [eax + 4], edx
mov edx, dword [ebp + 0x28]
mov dword [edx + 8], 1
mov ecx, dword [ebp + 0x28]
mov eax, dword [ecx + 0x14]
mov edx, dword [ebp + 0x28]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp + 0x28]
xor eax, eax
mov dword [ecx + 0x14], eax
mov edx, dword [ebp + 0x28]
xor ecx, ecx
mov dword [edx + 0x18], ecx
mov eax, dword [ebp + 0x28]
xor edx, edx
mov dword [eax + 0x1c], edx
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
mov cl, byte [ebp + 0x14]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0058fd79
add esp, 0x1c
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x5905a0
mov eax, dword [ebp - 0x38]
mov esp, ebp
pop ebp
ret