Function at 0x40bbd0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x38
push ebx
push ebp
mov edx, dword [esp + 0x44]
push esi
push edi
mov edi, dword [esp + 0x50]
xor ecx, ecx
mov ebx, dword [0xd413b8]
mov esi, dword [edi + 8]
mov eax, dword [edi]
mov cx, word [edx + 6]
sub esi, eax
xor eax, eax
mov dword [esp + 0x10], 0
mov ax, word [edx + 4]
mov dword [esp + 0x14], esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], ebx
cdq
sub eax, edx
mov dword [esp + 0x34], ecx
sar eax, 1
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x5c]
and eax, 0xff
and eax, 0x800000ff
jns 0x40bc3b
dec eax
or eax, 0xffffff00
inc eax
mov ebp, dword [esp + 0x60]
mov byte [esp + 0x5c], al
mov eax, dword [esp + 0x54]
mov ecx, dword [ebp]
cmp eax, ecx
jge 0x40bc5a
sub ecx, eax
sub esi, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
mov ecx, dword [ebp + 8]
add esi, eax
cmp esi, ecx
jle 0x40bc69
sub ecx, eax
mov dword [esp + 0x14], ecx
mov esi, dword [edi + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [esp + 0x58]
mov edi, dword [ebp + 0xc]
sub edx, esi
xor eax, eax
mov dword [esp + 0x2c], edx
lea ebp, [edx + ecx]
cmp ebp, edi
jle 0x40bc8d
sub edi, ecx
mov edx, edi
mov dword [esp + 0x2c], edx
mov edi, dword [esp + 0x60]
mov edi, dword [edi + 4]
cmp ecx, edi
jge 0x40bc9c
sub edi, ecx
mov eax, edi
add ecx, eax
mov ebp, dword [esp + 0x10]
imul ecx, dword [0x557ce4]
mov edi, dword [esp + 0x54]
add ecx, ebp
add ecx, edi
mov edi, dword [0xc32ffc]
lea edi, [edi + ecx*2]
mov ecx, dword [esp + 0x5c]
and ecx, 0xff
shl ecx, 2
mov ebp, dword [ecx + 0x56e888]
mov ecx, dword [ecx + 0x56ec88]
mov dword [esp + 0x5c], ecx
lea ecx, [esi + eax]
add esi, edx
mov dword [esp + 0x58], ebp
cmp ecx, esi
mov dword [esp + 0x28], ecx
jge 0x40be63
mov edx, dword [esp + 0x5c]
mov eax, edx
neg eax
mov dword [esp + 0x44], eax
mov eax, ebp
neg eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x1c]
sub eax, ecx
mov ecx, eax
imul ecx, edx
imul eax, ebp
mov dword [esp + 0x54], ecx
mov dword [esp + 0x60], eax
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x60]
mov ecx, dword [edx]
mov dword [esp + 0x3c], edi
lea edx, [ecx + eax]
add ecx, esi
mov esi, dword [esp + 0x18]
add ecx, eax
mov eax, edx
sub eax, esi
mov esi, eax
imul eax, dword [esp + 0x58]
imul esi, dword [esp + 0x5c]
sub esi, ebp
mov ebp, dword [esp + 0x54]
add eax, ebp
cmp edx, ecx
mov ebp, eax
mov dword [esp + 0x20], ebp
jge 0x40be1c
sub ecx, edx
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x18]
mov eax, esi
sar eax, 0x10
add eax, ecx
js 0x40bdf6
cmp eax, dword [esp + 0x30]
jge 0x40bdf6
mov ecx, dword [esp + 0x1c]
sar ebp, 0x10
sub ecx, ebp
js 0x40bdf6
cmp ecx, dword [esp + 0x34]
jge 0x40bdf6
push ecx
push eax
mov eax, dword [esp + 0x54]
push eax
call fcn.004d4c80
add esp, 0xc
test ax, ax
je 0x40bdf6
mov cx, word [edi]
and eax, 0xffff
and ecx, 0xffff
mov ebp, eax
mov edx, ecx
shr edx, 5
and edx, 0x3e0
shr ebp, 0xa
add edx, ebp
mov ebp, eax
shr ebp, 5
mov dx, word [ebx + edx*2]
mov ebx, ecx
and ebp, 0x1f
and ebx, 0x3e0
add ebp, ebx
mov ebx, dword [esp + 0x38]
shl dx, 5
or dx, word [ebx + ebp*2]
and ecx, 0x1f
shl ecx, 5
and eax, 0x1f
add ecx, eax
shl edx, 5
or dx, word [ebx + ecx*2]
mov word [edi], dx
mov ebp, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x24]
add esi, ebp
mov ebp, dword [esp + 0x20]
add edi, 2
add ebp, edx
dec eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], eax
jne 0x40bd63
mov eax, dword [esp + 0x3c]
mov ecx, dword [0x557ce4]
mov edx, dword [esp + 0x40]
mov ebp, dword [esp + 0x54]
lea edi, [eax + ecx*2]
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
add ecx, edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x44]
add ebp, ecx
mov ecx, dword [edx + 4]
inc eax
add ecx, esi
cmp eax, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x54], ebp
jl 0x40bd16
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret