Function at 0x4808c0
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
push ebp
push edi
mov edi, dword [esp + 0x10]
test edi, edi
mov ebp, ecx
mov dword [esp + 8], ebp
jne 0x4808d9
pop edi
xor eax, eax
pop ebp
pop ecx
ret 8
mov eax, dword [edi]
mov dword [ebp + 4], eax
mov cx, word [edi + 4]
mov word [ebp + 8], cx
mov dx, word [edi + 6]
mov word [ebp + 0xa], dx
movzx eax, word [edi + 8]
movzx ecx, ax
mov eax, dword [ebp + 0xc]
push ebx
lea ebx, [ebp + 0xc]
sub eax, 0x10
push esi
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov esi, ecx
shr esi, 1
sub eax, esi
or edx, eax
mov dword [esp + 0x18], ecx
jge 0x480926
mov ecx, esi
mov eax, ebx
call fcn.00402a10
mov ecx, dword [esp + 0x18]
mov edx, dword [ebx]
push ecx
lea ecx, [edi + 0xa]
push ecx
push edx
call fcn.004b03b0
mov eax, esi
add esp, 0xc
cmp eax, 0xffffffff
jne 0x480955
mov eax, dword [ebx]
test eax, eax
je 0x48095d
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x480946
sub eax, edx
sar eax, 1
test eax, eax
jl 0x480b27
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x480b27
mov esi, dword [esp + 0x18]
mov dword [ecx - 0xc], eax
mov ecx, dword [ebx]
mov word [ecx + eax*2], 0
movzx eax, word [esi + edi + 0xa]
add esi, 0xa
movzx ecx, ax
mov eax, dword [ebp + 0x10]
add ebp, 0x10
sub eax, 0x10
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov ebx, ecx
shr ebx, 1
sub eax, ebx
add esi, 2
or edx, eax
mov dword [esp + 0x18], ecx
jge 0x4809b4
mov ecx, ebx
mov eax, ebp
call fcn.00402a10
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp]
push ecx
lea ecx, [esi + edi]
push ecx
push edx
call fcn.004b03b0
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x4809e3
mov ebx, dword [ebp]
test ebx, ebx
je 0x4809eb
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4809d4
sub ebx, ecx
sar ebx, 1
test ebx, ebx
jl 0x480b27
mov eax, dword [ebp]
cmp ebx, dword [eax - 8]
jg 0x480b27
add esi, dword [esp + 0x18]
mov dword [eax - 0xc], ebx
mov eax, dword [ebp]
mov ebp, dword [esp + 0x10]
mov word [eax + ebx*2], 0
movzx eax, word [esi + edi]
movzx ecx, ax
mov eax, dword [ebp + 0x14]
add ebp, 0x14
sub eax, 0x10
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov ebx, ecx
shr ebx, 1
sub eax, ebx
add esi, 2
or edx, eax
mov dword [esp + 0x18], ecx
jge 0x480a44
mov ecx, ebx
mov eax, ebp
call fcn.00402a10
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp]
push ecx
lea ecx, [esi + edi]
push ecx
push edx
call fcn.004b03b0
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x480a73
mov ebx, dword [ebp]
test ebx, ebx
je 0x480a7b
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x480a64
sub ebx, ecx
sar ebx, 1
test ebx, ebx
jl 0x480b27
mov eax, dword [ebp]
cmp ebx, dword [eax - 8]
jg 0x480b27
add esi, dword [esp + 0x18]
mov dword [eax - 0xc], ebx
mov eax, dword [ebp]
mov ebp, dword [esp + 0x10]
mov word [eax + ebx*2], 0
movzx eax, word [esi + edi]
movzx ecx, ax
mov eax, dword [ebp + 0x18]
add ebp, 0x18
sub eax, 0x10
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov ebx, ecx
shr ebx, 1
sub eax, ebx
add esi, 2
or edx, eax
mov dword [esp + 0x18], ecx
jge 0x480ad4
mov ecx, ebx
mov eax, ebp
call fcn.00402a10
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [ebp]
add esi, edi
push esi
push ecx
call fcn.004b03b0
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x480b02
mov ebx, dword [ebp]
test ebx, ebx
je 0x480b06
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x480af3
sub ebx, ecx
sar ebx, 1
test ebx, ebx
jl 0x480b27
mov eax, dword [ebp]
cmp ebx, dword [eax - 8]
jg 0x480b27
mov dword [eax - 0xc], ebx
mov edx, dword [ebp]
pop esi
mov word [edx + ebx*2], 0
pop ebx
pop edi
mov eax, 1
pop ebp
pop ecx
ret 8
push 0x80070057
call fcn.00402940
int3