Function at 0x480d70
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x40c
mov eax, dword [0x4cc00c]
xor eax, esp
mov dword [esp + 0x408], eax
push ebx
push ebp
mov ebp, ecx
mov ecx, 0x100
push esi
mov esi, dword [esp + 0x41c]
push edi
movzx eax, word [ebp]
mov edi, eax
mov dword [esp + 0x14], ebp
mov ebx, edi
sub ebx, dword [esi + 0x654]
cmp ax, cx
je 0x480e16
mov eax, dword [ebp + 8]
xor edx, edx
movzx ecx, word [ebp + 2]
movzx eax, word [eax]
sub eax, edi
cmp ebx, eax
setl dl
imul eax, edi, 0xb
cmp ecx, eax
sbb eax, eax
and eax, 2
add edx, eax
movzx eax, byte [esi + ebx + 0x76b]
shl eax, 4
add edx, eax
xor eax, eax
cmp dword [esi + 0x654], ebx
setle al
dec eax
and eax, 4
add edx, eax
movzx eax, byte [esi + 0xa6e]
add edx, eax
movzx eax, word [esi + edx*4]
mov cl, byte [esi + edx*4 + 2]
lea edi, [esi + edx*4]
mov edx, eax
mov dword [esp + 0x10], edi
shr edx, cl
sub eax, edx
mov word [edi], ax
xor eax, eax
test edx, edx
sete al
add eax, edx
jmp 0x480e25
lea eax, [esi + 0x640]
mov dword [esp + 0x10], eax
mov eax, 1
mov dword [esi + 0x4a84], eax
lea edi, [esp + 0x18]
mov eax, dword [ebp + 4]
mov dl, byte [esi + 0xa6c]
sub eax, 6
xor ebp, ebp
lea ecx, [ecx]
movzx ecx, byte [eax + 6]
add eax, 6
cmp byte [ecx + esi + 0x66c], dl
je 0x480e40
movzx ecx, byte [eax + 1]
add ebp, ecx
lea ecx, [esp + 0x418]
cmp edi, ecx
jae 0x480fb1
mov dword [edi], eax
add edi, 4
sub ebx, 1
jne 0x480e40
add dword [esi + 0x4a84], ebp
xor edx, edx
mov eax, dword [esi + 0x4a78]
div dword [esi + 0x4a84]
xor edx, edx
mov ecx, eax
mov eax, dword [esi + 0x4a74]
sub eax, dword [esi + 0x4a70]
div ecx
mov dword [esi + 0x4a78], ecx
mov ebx, eax
mov eax, dword [esi + 0x4a84]
cmp ebx, eax
jge 0x480fb1
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x18]
cmp ebx, ebp
jge 0x480f51
movzx edx, byte [edi + 1]
cmp edx, ebx
jg 0x480ee1
add ecx, 4
lea eax, [esp + 0x418]
cmp ecx, eax
jae 0x480fb1
mov edi, dword [ecx]
movzx eax, byte [edi + 1]
add edx, eax
cmp edx, ebx
jle 0x480ec3
mov dword [esi + 0x4a80], edx
movzx eax, byte [edi + 1]
sub edx, eax
mov dword [esi + 0x4a7c], edx
mov edx, dword [esp + 0x10]
mov cl, byte [edx + 2]
cmp cl, 7
jae 0x480f1a
add byte [edx + 3], 0xff
jne 0x480f1a
mov ax, word [edx]
add ax, ax
mov word [edx], ax
mov al, 3
shl al, cl
inc cl
mov byte [edx + 3], al
mov byte [edx + 2], cl
mov ebx, dword [esp + 0x14]
mov dword [esi + 0x650], edi
add byte [edi + 1], 4
add word [ebx + 2], 4
cmp byte [edi + 1], 0x7c
jbe 0x480f3b
push esi
mov ecx, ebx
call fcn.00480fd0
mov eax, dword [esi + 0x668]
inc byte [esi + 0xa6c]
mov dword [esi + 0x664], eax
mov al, 1
jmp 0x480fb3
mov ebx, dword [esp + 0x14]
lea edx, [esp + 0x18]
mov dword [esi + 0x4a7c], ebp
mov dword [esi + 0x4a80], eax
movzx edi, word [ebx]
sub edi, dword [esi + 0x654]
sub edx, 4
add edx, 4
lea eax, [esp + 0x418]
cmp edx, eax
jae 0x480fb1
mov eax, dword [edx]
movzx ecx, byte [eax]
mov al, byte [esi + 0xa6c]
mov byte [ecx + esi + 0x66c], al
sub edi, 1
jne 0x480f71
mov ecx, dword [esp + 0x10]
mov ax, word [esi + 0x4a84]
add word [ecx], ax
movzx eax, word [ebx]
mov dword [esi + 0x654], eax
mov al, 1
jmp 0x480fb3
xor al, al
mov ecx, dword [esp + 0x418]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00441dc6
add esp, 0x40c
ret 4