Function at 0x601840
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov eax, dword [ebx + 4]
push eax
call fcn.00581b80
mov ecx, dword [ebx]
add esp, 4
mov esi, ecx
mov edi, eax
dec esi
mov dword [ebp - 8], edi
neg esi
sbb esi, esi
and esi, 0xffffff9c
add esi, 0x64
add esi, edi
mov al, byte [esi]
cmp al, 0xa
mov byte [ebx + 0x10], al
je 0x601897
cmp al, 0xd
je 0x601897
cmp al, 5
je 0x601887
cmp al, 2
jne 0x601bab
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xc
jmp 0x6018a5
mov dword [ebp - 0x18], 1
mov dword [ebp - 4], 8
cmp ecx, 1
jne 0x6018ae
add dword [ebp - 4], 0x64
mov edx, dword [ebp + 8]
xor ecx, ecx
mov ch, byte [esi + 3]
push edx
mov cl, byte [esi + 4]
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x14], ecx
call fcn.005838e0
mov ecx, dword [ebx + 0x14]
xor edx, edx
mov dh, byte [esi + 5]
mov dword [ebp - 0x14], eax
mov dl, byte [esi + 6]
xor eax, eax
mov al, byte [esi + 7]
add esp, 4
add edx, eax
mov eax, dword [ebp - 4]
shl ecx, 1
sub edx, ecx
sub edx, eax
xor eax, eax
mov ah, byte [esi + 1]
mov al, byte [esi + 2]
test eax, eax
je 0x60192a
cmp eax, dword [ebp - 0x14]
jge 0x601bab
xor ecx, ecx
mov ch, byte [eax + edi + 2]
mov cl, byte [eax + edi + 3]
add eax, 4
add edx, ecx
xor ecx, ecx
mov ch, byte [eax + edi - 4]
mov cl, byte [eax + edi - 3]
cmp ecx, eax
jge 0x601924
test ecx, ecx
jg 0x601bab
test ecx, ecx
mov eax, ecx
jne 0x6018f6
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x18], edx
test eax, eax
je 0x601938
xor eax, eax
jmp 0x601944
add esi, 8
push esi
call fcn.005815b0
add esp, 4
mov dword [ebx + 0x20], eax
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x601bb8
mov esi, dword [ebp + 8]
push esi
call fcn.0057f2c0
push esi
call fcn.005899b0
mov ecx, dword [ebp - 0x14]
push esi
sub ecx, eax
mov dword [ebp - 0x1c], ecx
call fcn.0057f420
mov eax, dword [ebx + 0x14]
push 0
inc eax
lea edx, [eax + eax*2]
shl edx, 3
push edx
call fcn.00578f90
mov edi, eax
add esp, 0x14
test edi, edi
mov dword [ebx + 0x1c], edi
jne 0x601999
pop edi
pop esi
mov eax, 7
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x14]
xor esi, esi
inc eax
mov dword [ebp - 0x24], esi
lea ecx, [eax + eax*2]
xor eax, eax
shl ecx, 3
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
cmp dword [ebx + 0x14], esi
jle 0x601bb8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
add eax, ecx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebx + 0x1c]
xor edx, edx
mov dl, byte [eax + 1]
add esi, ecx
mov dh, byte [eax]
mov eax, dword [ebp - 4]
mov edi, edx
cmp edi, eax
jl 0x601bab
cmp edi, dword [ebp - 0x14]
jge 0x601bab
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x601a0d
mov eax, dword [ebp - 8]
lea ecx, [edi + eax]
push ecx
call fcn.005815b0
add esp, 4
mov dword [esi + 4], eax
add edi, 4
cmp byte [ebx + 0x10], 5
je 0x601b7b
mov edx, dword [ebp - 8]
mov al, byte [edi + edx]
lea ecx, [edi + edx]
cmp al, 0x80
jae 0x601a33
and eax, 0xff
mov ecx, 1
mov dword [ebp - 0xc], eax
jmp 0x601a4a
lea eax, [ebp - 0xc]
push eax
push ecx
call fcn.00595fd0
add esp, 8
and eax, 0xff
mov ecx, eax
mov eax, dword [ebp - 0xc]
and ecx, 0xff
add edi, ecx
mov cl, byte [ebx + 0x10]
cmp cl, 0xd
jne 0x601a77
mov edx, dword [ebp - 8]
lea ecx, [ebp - 0x34]
push ecx
lea eax, [edi + edx]
push eax
call fcn.00583c10
and eax, 0xff
add esp, 8
add edi, eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebx + 0x24]
jbe 0x601a7f
mov dword [ebx + 0x24], eax
mov dl, byte [ebx + 0x10]
lea ecx, [ebp - 0x10]
push ecx
push eax
mov eax, dword [ebp - 0x1c]
push edx
push eax
call fcn.00601bd0
mov eax, dword [ebp - 0x10]
add esp, 0x10
test eax, eax
jl 0x601bab
mov ecx, dword [ebp - 0xc]
mov dword [esi], eax
cmp ecx, eax
jbe 0x601b7b
mov edx, dword [ebp - 0x1c]
mov ebx, ecx
sub ebx, eax
lea eax, [ebx + edx - 5]
lea ebx, [edx - 4]
xor edx, edx
div ebx
mov edx, dword [ebp - 0x10]
add edx, edi
mov ebx, eax
mov eax, dword [ebp - 0x1c]
cmp edx, eax
jg 0x601ba8
lea edx, [ebx - 1]
add eax, 0xfffffffc
imul edx, eax
mov eax, dword [ebp - 0x10]
sub ecx, edx
sub ecx, eax
lea eax, [ebx*4]
push 0
push eax
mov dword [esi + 0x10], ecx
mov dword [esi + 8], ebx
call fcn.00578f90
add esp, 8
mov dword [esi + 0xc], eax
test eax, eax
je 0x60198d
mov ecx, dword [ebp - 0x10]
add ecx, edi
mov edi, dword [ebp - 8]
add ecx, edi
push ecx
call fcn.005815b0
mov edx, dword [esi + 0xc]
mov edi, 1
add esp, 4
cmp ebx, edi
mov dword [edx], eax
jle 0x601b78
mov eax, dword [esi + 0xc]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x20]
push 0
mov eax, dword [eax + edi*4 - 4]
push ecx
push eax
push edx
mov dword [ebp - 0x20], 0
call fcn.0057f460
add esp, 4
push eax
call fcn.0057fd70
add esp, 0x10
test eax, eax
jne 0x601bba
mov eax, dword [ebp - 0x20]
push eax
call fcn.00581b80
push eax
call fcn.005815b0
mov ecx, dword [esi + 0xc]
mov dword [ecx + edi*4], eax
mov edx, dword [ebp - 0x20]
push edx
call fcn.0057fd90
add esp, 0xc
inc edi
cmp edi, ebx
jl 0x601b24
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebx + 0x14]
inc ecx
add esi, 0x18
add eax, 2
cmp ecx, edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], eax
jl 0x6019cf
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0xc]
push ebx
mov byte [ebx + 0x10], 0
call fcn.006013e0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret