Function at 0x5a31e0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x704dd8]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x43]
cmp ecx, 1
jne 0x5a3297
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x42]
test eax, eax
je 0x5a3297
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
movzx eax, byte [edx + 3]
test eax, eax
je 0x5a3297
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x100], ecx
mov edx, dword [ebp - 0x100]
mov eax, dword [edx + 0x28]
cmp eax, dword [ebp + 0x14]
jne 0x5a3255
mov ecx, dword [ebp - 0x100]
mov edx, dword [ecx + 0x2c]
cmp edx, dword [ebp + 0x18]
jne 0x5a3255
mov eax, dword [ebp + 0x20]
mov dword [eax], 0
xor eax, eax
jmp 0x5a3818
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 0x41]
test edx, edx
je 0x5a3297
mov eax, dword [ebp + 8]
mov dword [ebp - 0x104], eax
mov ecx, dword [ebp - 0x104]
mov edx, dword [ecx + 0x2c]
cmp edx, dword [ebp + 0x18]
jg 0x5a3297
jl 0x5a3287
mov eax, dword [ebp - 0x104]
mov ecx, dword [eax + 0x28]
cmp ecx, dword [ebp + 0x14]
jae 0x5a3297
mov edx, dword [ebp + 0x20]
mov dword [edx], 0xffffffff
xor eax, eax
jmp 0x5a3818
mov eax, dword [ebp + 8]
push eax
call fcn.005a2e50
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x5a32b4
mov eax, dword [ebp - 4]
jmp 0x5a3818
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 0x43]
test edx, edx
jne 0x5a32cf
mov eax, dword [ebp + 0x20]
mov dword [eax], 0xffffffff
xor eax, eax
jmp 0x5a3818
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
movzx eax, byte [edx + 3]
test eax, eax
je 0x5a32df
jmp 0x5a331b
cmp dword [ebp + 0x10], 0
jne 0x5a331b
push 0xc8
lea ecx, [ebp - 0xd0]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
push edx
call fcn.005929b0
add esp, 0x14
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0x10], 0
jne 0x5a331b
mov eax, 7
jmp 0x5a3818
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0xdc], ecx
mov dword [ebp - 0xe0], 0xffffffff
mov dword [ebp - 0xe4], 0
mov edx, dword [ebp - 0xdc]
movzx eax, word [edx + 0x14]
sub eax, 1
mov dword [ebp - 0xd8], eax
mov ecx, dword [ebp - 0xdc]
movzx edx, byte [ecx + 3]
test edx, edx
jne 0x5a336e
cmp dword [ebp + 0x10], 0
jne 0x5a336e
mov dword [ebp - 4], 0xb
jmp 0x5a3803
cmp dword [ebp + 0x1c], 0
je 0x5a3382
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xd8]
mov dword [eax + 0x1c], ecx
jmp 0x5a3399
mov eax, dword [ebp - 0xd8]
add eax, dword [ebp - 0xe4]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 0xe4]
cmp eax, dword [ebp - 0xd8]
jg 0x5a36ec
xor ecx, ecx
mov edx, dword [ebp + 8]
mov word [edx + 0x3e], cx
mov eax, dword [ebp + 8]
mov byte [eax + 0x42], 1
mov ecx, dword [ebp - 0xdc]
movzx edx, byte [ecx + 3]
test edx, edx
je 0x5a3502
mov eax, dword [ebp - 0xdc]
movzx ecx, word [eax + 0xe]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
lea ecx, [ecx + eax*2]
mov edx, dword [ebp - 0xdc]
mov eax, dword [edx + 0x44]
movzx ecx, byte [eax + ecx]
shl ecx, 8
mov edx, dword [ebp - 0xdc]
movzx eax, word [edx + 0xe]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x1c]
lea eax, [eax + edx*2]
mov edx, dword [ebp - 0xdc]
mov edx, dword [edx + 0x44]
movzx eax, byte [edx + eax + 1]
or ecx, eax
mov edx, dword [ebp - 0xdc]
mov eax, dword [edx + 0x44]
add eax, ecx
mov ecx, dword [ebp - 0xdc]
movzx edx, byte [ecx + 9]
add eax, edx
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0xdc]
movzx ecx, byte [eax + 7]
test ecx, ecx
je 0x5a3497
mov edx, dword [ebp - 0xf4]
movzx eax, byte [edx]
cmp eax, 0x80
jge 0x5a3469
mov ecx, dword [ebp - 0xf4]
movzx edx, byte [ecx]
mov dword [ebp - 0xf8], edx
mov dword [ebp - 0x108], 1
jmp 0x5a3485
lea eax, [ebp - 0xf8]
push eax
mov ecx, dword [ebp - 0xf4]
push ecx
call fcn.00596170
add esp, 8
mov dword [ebp - 0x108], eax
mov edx, dword [ebp - 0xf4]
add edx, dword [ebp - 0x108]
mov dword [ebp - 0xf4], edx
lea eax, [ebp - 0xf0]
push eax
mov ecx, dword [ebp - 0xf4]
push ecx
call fcn.00595d80
add esp, 8
mov edx, dword [ebp - 0xf0]
cmp edx, dword [ebp + 0x14]
jne 0x5a34cf
mov eax, dword [ebp - 0xec]
cmp eax, dword [ebp + 0x18]
jne 0x5a34cf
mov dword [ebp - 0xe0], 0
jmp 0x5a34fd
mov ecx, dword [ebp - 0xec]
cmp ecx, dword [ebp + 0x18]
jg 0x5a34f3
jl 0x5a34e7
mov edx, dword [ebp - 0xf0]
cmp edx, dword [ebp + 0x14]
jae 0x5a34f3
mov dword [ebp - 0xe0], 0xffffffff
jmp 0x5a34fd
mov dword [ebp - 0xe0], 1
jmp 0x5a360b
push 0
lea eax, [ebp - 0xfc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.005a2c50
add esp, 0xc
mov dword [ebp - 0xe8], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x28]
mov dword [ebp - 0xf0], eax
mov ecx, dword [edx + 0x2c]
mov dword [ebp - 0xec], ecx
mov eax, dword [ebp - 0xfc]
cdq
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], edx
mov edx, dword [ebp - 0x10c]
cmp edx, dword [ebp - 0xec]
jl 0x5a3588
jg 0x5a3563
mov eax, dword [ebp - 0x110]
cmp eax, dword [ebp - 0xf0]
jb 0x5a3588
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0xe8]
push edx
mov eax, dword [ebp - 0xf0]
push eax
call fcn.00592bf0
add esp, 0xc
mov dword [ebp - 0xe0], eax
jmp 0x5a360b
mov ecx, dword [ebp - 0xf0]
push ecx
call fcn.00594c40
add esp, 4
mov dword [ebp - 0xe8], eax
cmp dword [ebp - 0xe8], 0
jne 0x5a35b2
mov dword [ebp - 4], 7
jmp 0x5a3803
mov edx, dword [ebp - 0xe8]
push edx
mov eax, dword [ebp - 0xf0]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.005a2640
add esp, 0x10
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0xe8]
push eax
mov ecx, dword [ebp - 0xf0]
push ecx
call fcn.00592bf0
add esp, 0xc
mov dword [ebp - 0xe0], eax
mov edx, dword [ebp - 0xe8]
push edx
call fcn.00594e00
add esp, 4
cmp dword [ebp - 4], 0
je 0x5a360b
jmp 0x5a3803
cmp dword [ebp - 0xe0], 0
jne 0x5a3682
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xf0]
mov dword [eax + 0x28], ecx
mov edx, dword [ebp - 0xec]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 0xdc]
movzx ecx, byte [eax + 6]
test ecx, ecx
je 0x5a3667
mov edx, dword [ebp - 0xdc]
movzx eax, byte [edx + 4]
test eax, eax
jne 0x5a3667
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
mov dword [ebp - 0xe4], edx
mov eax, dword [ebp - 0xe4]
sub eax, 1
mov dword [ebp - 0xd8], eax
jmp 0x5a36ec
cmp dword [ebp + 0x20], 0
je 0x5a3676
mov ecx, dword [ebp + 0x20]
mov dword [ecx], 0
mov dword [ebp - 4], 0
jmp 0x5a3803
cmp dword [ebp - 0xe0], 0
jge 0x5a369c
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
add eax, 1
mov dword [ebp - 0xe4], eax
jmp 0x5a36ab
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
sub edx, 1
mov dword [ebp - 0xd8], edx
mov eax, dword [ebp - 0xe4]
cmp eax, dword [ebp - 0xd8]
jle 0x5a36d0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xf0]
mov dword [ecx + 0x28], edx
mov eax, dword [ebp - 0xec]
mov dword [ecx + 0x2c], eax
jmp 0x5a36ec
mov eax, dword [ebp - 0xe4]
add eax, dword [ebp - 0xd8]
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1c], eax
jmp 0x5a33ab
mov edx, dword [ebp - 0xdc]
movzx eax, byte [edx + 4]
test eax, eax
je 0x5a3709
mov dword [ebp - 0xd4], 0
jmp 0x5a37a1
mov ecx, dword [ebp - 0xdc]
movzx edx, word [ecx + 0x14]
cmp dword [ebp - 0xe4], edx
jl 0x5a3743
mov eax, dword [ebp - 0xdc]
movzx ecx, byte [eax + 8]
mov edx, dword [ebp - 0xdc]
mov eax, dword [edx + 0x44]
lea ecx, [ecx + eax + 8]
push ecx
call fcn.00596350
add esp, 4
mov dword [ebp - 0xd4], eax
jmp 0x5a37a1
mov edx, dword [ebp - 0xdc]
movzx eax, word [edx + 0xe]
mov ecx, dword [ebp - 0xe4]
lea edx, [eax + ecx*2]
mov eax, dword [ebp - 0xdc]
mov ecx, dword [eax + 0x44]
movzx edx, byte [ecx + edx]
shl edx, 8
mov eax, dword [ebp - 0xdc]
movzx ecx, word [eax + 0xe]
mov eax, dword [ebp - 0xe4]
lea ecx, [ecx + eax*2]
mov eax, dword [ebp - 0xdc]
mov eax, dword [eax + 0x44]
movzx ecx, byte [eax + ecx + 1]
or edx, ecx
mov eax, dword [ebp - 0xdc]
add edx, dword [eax + 0x44]
push edx
call fcn.00596350
add esp, 4
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0xd4], 0
jne 0x5a37c4
cmp dword [ebp + 0x20], 0
je 0x5a37bb
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp - 0xe0]
mov dword [ecx], edx
mov dword [ebp - 4], 0
jmp 0x5a3803
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xe4]
mov dword [eax + 0x1c], ecx
xor edx, edx
mov eax, dword [ebp + 8]
mov word [eax + 0x3e], dx
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x42], 0
mov edx, dword [ebp - 0xd4]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.005a2fa0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x5a37fe
jmp 0x5a3803
jmp 0x5a331b
cmp dword [ebp + 0xc], 0
je 0x5a3815
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00592b70
add esp, 4
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004e8c89
mov esp, ebp
pop ebp
ret