Function at 0x4f86d0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
movzx eax, word [ebx + 6]
movsx ecx, ax
movzx eax, word [ebx + 0xc]
cwde
sar eax, 2
imul eax, eax
sar ecx, 2
imul ecx, ecx
add ecx, eax
movzx eax, word [ebx + 0x12]
cwde
sar eax, 2
imul eax, eax
add ecx, eax
movzx eax, word [ebx + 0x18]
cwde
sar eax, 2
imul eax, eax
add ecx, eax
movzx eax, word [ebx + 0x1e]
cwde
sar eax, 2
imul eax, eax
add ecx, eax
movzx eax, word [ebx + 0x24]
cwde
sar eax, 2
imul eax, eax
add ecx, eax
movzx eax, word [ebx + 0x2a]
cwde
sar eax, 2
imul eax, eax
add ecx, eax
movzx eax, word [ebx + 0x30]
cwde
sar eax, 2
imul eax, eax
add ecx, eax
movzx eax, word [ebx + 0x36]
cwde
sar eax, 2
imul eax, eax
add ecx, eax
movzx eax, word [ebx + 0x3c]
cwde
sar eax, 2
imul eax, eax
add ecx, eax
movzx eax, word [ebx + 0x42]
cwde
sar eax, 2
imul eax, eax
add ecx, eax
movzx eax, word [ebx + 0x48]
cwde
sar eax, 2
imul eax, eax
add ecx, eax
movsx eax, word [ebx]
sar eax, 2
imul eax, eax
mov dword [ebp - 8], ecx
lea edx, [eax + ecx]
movzx eax, word [ebx + 2]
movsx ecx, ax
lea edi, [edx + edx]
movzx eax, word [ebx + 8]
cwde
sar eax, 2
sar ecx, 2
imul eax, eax
imul ecx, ecx
mov dword [ebp - 4], edi
add ecx, eax
movzx eax, word [ebx + 0xe]
cwde
sar eax, 2
imul eax, eax
add ecx, eax
movzx eax, word [ebx + 0x14]
cwde
sar eax, 2
imul eax, eax
add ecx, eax
movzx eax, word [ebx + 0x1a]
cwde
sar eax, 2
imul eax, eax
add ecx, eax
movzx eax, word [ebx + 0x20]
cwde
sar eax, 2
imul eax, eax
add ecx, eax
movzx eax, word [ebx + 0x26]
cwde
sar eax, 2
imul eax, eax
add ecx, eax
movzx eax, word [ebx + 0x2c]
cwde
sar eax, 2
imul eax, eax
add ecx, eax
movzx eax, word [ebx + 0x32]
cwde
sar eax, 2
imul eax, eax
add ecx, eax
movzx eax, word [ebx + 0x38]
cwde
sar eax, 2
imul eax, eax
add ecx, eax
movzx eax, word [ebx + 0x3e]
cwde
sar eax, 2
imul eax, eax
add ecx, eax
movzx eax, word [ebx + 0x44]
cwde
sar eax, 2
imul eax, eax
add ecx, eax
movzx eax, word [ebx + 0x4a]
cwde
sar eax, 2
imul eax, eax
lea ebx, [eax + ecx]
lea esi, [ebx + ebx]
cmp esi, edi
cmovle ebx, edx
mov edx, dword [ebp + 8]
movzx eax, word [edx + 4]
lea edi, [ebx + ebx]
movsx ecx, ax
movzx eax, word [edx + 0xa]
cwde
sar eax, 2
imul eax, eax
sar ecx, 2
imul ecx, ecx
add ecx, eax
movzx eax, word [edx + 0x10]
cwde
sar eax, 2
imul eax, eax
add ecx, eax
movzx eax, word [edx + 0x16]
cwde
sar eax, 2
imul eax, eax
add ecx, eax
movzx eax, word [edx + 0x1c]
cwde
sar eax, 2
imul eax, eax
add ecx, eax
movzx eax, word [edx + 0x22]
cwde
sar eax, 2
imul eax, eax
add ecx, eax
movzx eax, word [edx + 0x28]
cwde
sar eax, 2
imul eax, eax
add ecx, eax
movzx eax, word [edx + 0x2e]
cwde
sar eax, 2
imul eax, eax
add ecx, eax
movzx eax, word [edx + 0x34]
cwde
sar eax, 2
imul eax, eax
add ecx, eax
movzx eax, word [edx + 0x3a]
cwde
sar eax, 2
imul eax, eax
add ecx, eax
movzx eax, word [edx + 0x40]
cwde
sar eax, 2
imul eax, eax
add ecx, eax
movzx eax, word [edx + 0x46]
cwde
sar eax, 2
imul eax, eax
add ecx, eax
movzx eax, word [edx + 0x4c]
cwde
sar eax, 2
imul eax, eax
lea edx, [eax + ecx]
xor eax, eax
cmp esi, dword [ebp - 4]
lea ecx, [edx + edx]
mov esi, 2
setg al
cmp ecx, edi
movzx eax, ax
cmovg eax, esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
movzx eax, word [esi + 0x4e]
cwde
sar eax, 2
cmp ecx, edi
mov edi, dword [ebp - 4]
mov ecx, 3
cmovle edx, ebx
mov ebx, dword [ebp + 0xc]
imul eax, eax
add edx, edx
add eax, dword [ebp - 8]
add eax, eax
cmp eax, edx
cmovg edi, ecx
xor eax, eax
movzx ecx, di
lea edx, [esi + ecx*2]
nop dword [eax]
mov cx, word [edx]
lea edx, [edx + 6]
mov word [ebx + eax*2], cx
inc eax
cmp eax, 0xc
jle 0x4f8940
mov eax, dword [ebp + 0x10]
mov word [eax], di
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret