Function at 0x4851c0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [edi + 0x18]
mov ebp, dword [esi + 4]
test ebp, ebp
mov ebx, dword [esi]
mov dword [esp + 0x10], esi
jne 0x4851ea
push edi
call dword [esi + 0xc]
add esp, 4
test al, al
je 0x48540e
mov ebx, dword [esi]
mov ebp, dword [esi + 4]
xor eax, eax
mov ah, byte [ebx]
dec ebp
inc ebx
test ebp, ebp
mov dword [esp + 0xc], eax
jne 0x485210
push edi
call dword [esi + 0xc]
add esp, 4
test al, al
je 0x48540e
mov ebx, dword [esi]
mov ebp, dword [esi + 4]
mov eax, dword [esp + 0xc]
movzx ecx, byte [ebx]
add eax, ecx
dec ebp
sub eax, 2
inc ebx
test eax, eax
mov dword [esp + 0xc], eax
jle 0x4853ed
test ebp, ebp
jne 0x48523e
push edi
call dword [esi + 0xc]
add esp, 4
test al, al
je 0x48540e
mov ebx, dword [esi]
mov ebp, dword [esi + 4]
movzx esi, byte [ebx]
mov edx, dword [edi]
mov dword [edx + 0x14], 0x51
mov ecx, dword [edi]
mov eax, esi
sar eax, 4
and esi, 0xf
mov dword [ecx + 0x18], esi
mov edx, dword [edi]
mov dword [esp + 0x1c], eax
mov dword [edx + 0x1c], eax
mov eax, dword [edi]
push 1
dec ebp
push edi
inc ebx
call dword [eax + 4]
add esp, 8
cmp esi, 4
jl 0x485288
mov ecx, dword [edi]
mov dword [ecx + 0x14], 0x1f
mov edx, dword [edi]
mov dword [edx + 0x18], esi
mov eax, dword [edi]
push edi
call dword [eax]
add esp, 4
mov eax, dword [edi + esi*4 + 0x90]
test eax, eax
jne 0x4852a3
push edi
call fcn.004841d0
add esp, 4
mov dword [edi + esi*4 + 0x90], eax
mov ecx, dword [edi + esi*4 + 0x90]
mov esi, 0x4cffa8
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x48530c
test ebp, ebp
mov esi, dword [esp + 0x10]
jne 0x4852db
push edi
call dword [esi + 0xc]
add esp, 4
test al, al
je 0x48540e
mov ebx, dword [esi]
mov ebp, dword [esi + 4]
xor edx, edx
mov dh, byte [ebx]
dec ebp
inc ebx
test ebp, ebp
mov dword [esp + 0x14], edx
jne 0x4852fd
push edi
call dword [esi + 0xc]
add esp, 4
test al, al
je 0x48540e
mov ebx, dword [esi]
mov ebp, dword [esi + 4]
movzx eax, byte [ebx]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
add ecx, eax
jmp 0x48532c
test ebp, ebp
jne 0x485329
mov ebp, dword [esp + 0x10]
push edi
call dword [ebp + 0xc]
add esp, 4
test al, al
je 0x48540e
mov ebx, dword [ebp]
mov ebp, dword [ebp + 4]
movzx ecx, byte [ebx]
mov edx, dword [esi]
mov eax, dword [esp + 0x20]
dec ebp
add esi, 4
inc ebx
cmp esi, 0x4d00a8
mov dword [esp + 0x14], ecx
mov word [eax + edx*2], cx
mov dword [esp + 0x18], esi
jl 0x4852b7
mov edx, dword [edi]
cmp dword [edx + 0x68], 2
jl 0x4853bf
lea esi, [eax + 4]
mov dword [esp + 0x18], 8
mov eax, dword [edi]
movzx ecx, word [esi - 4]
add eax, 0x18
mov dword [eax], ecx
movzx edx, word [esi - 2]
mov dword [eax + 4], edx
movzx ecx, word [esi]
mov dword [eax + 8], ecx
movzx edx, word [esi + 2]
mov dword [eax + 0xc], edx
movzx ecx, word [esi + 4]
mov dword [eax + 0x10], ecx
movzx edx, word [esi + 6]
mov dword [eax + 0x14], edx
movzx ecx, word [esi + 8]
mov dword [eax + 0x18], ecx
movzx edx, word [esi + 0xa]
mov dword [eax + 0x1c], edx
mov eax, dword [edi]
mov dword [eax + 0x14], 0x5d
mov ecx, dword [edi]
push 2
push edi
call dword [ecx + 4]
mov eax, dword [esp + 0x20]
add esp, 8
add esi, 0x10
dec eax
mov dword [esp + 0x18], eax
jne 0x485362
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x1c]
sub ecx, 0x41
test eax, eax
mov dword [esp + 0xc], ecx
je 0x4853db
mov eax, ecx
sub eax, 0x40
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
test eax, eax
mov esi, dword [esp + 0x10]
jg 0x485226
test eax, eax
je 0x485400
mov edx, dword [edi]
mov dword [edx + 0x14], 0xb
mov eax, dword [edi]
push edi
call dword [eax]
add esp, 4
mov dword [esi], ebx
mov dword [esi + 4], ebp
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x18
ret