Function at 0x505ca0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1040
call fcn.004d5590
mov eax, dword [0x58d214]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
movsd xmm4, qword [0x569b20]
mov ecx, dword [ebp + 0x10]
movsd xmm0, qword [edx]
mov eax, dword [eax*4 + 0x569b50]
mov dword [ebp - 0x1038], eax
mov eax, dword [edx + 0x34]
mulsd xmm0, xmm4
mov dword [ebp - 0x1020], eax
mov eax, dword [edx + 0x38]
mov dword [ebp - 0x1024], eax
push ebx
mov ebx, dword [ecx]
cvttsd2si eax, xmm0
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1040], esi
mov dword [ebp - 0x1008], edx
mov dword [ebp - 0x101c], ebx
movsd xmm0, qword [edx + 8]
mulsd xmm0, xmm4
mov dword [ebp - 0x1028], eax
cvttsd2si eax, xmm0
mov dword [ebp - 0x102c], eax
mov eax, dword [ecx + 4]
test eax, eax
je 0x505f28
movsd xmm0, qword [0x545bf0]
push edi
nop dword [eax]
movsx edx, word [ebx + 2]
dec eax
movsx ecx, word [ebx]
mov dword [ebp - 0x103c], eax
mov eax, dword [esi + 0x14]
movd xmm2, edx
movd xmm3, ecx
imul eax, edx
mov edx, dword [ebp - 0x1008]
cvtdq2pd xmm3, xmm3
movsd xmm1, qword [edx]
lea eax, [eax + ecx*4]
add eax, dword [esi + 4]
addsd xmm3, xmm0
cvtdq2pd xmm2, xmm2
movzx ecx, word [ebx + 4]
mov dword [ebp - 0x100c], eax
movzx eax, byte [ebx + 6]
mov dword [ebp - 0x1018], ecx
mulsd xmm1, xmm3
addsd xmm2, xmm0
imul eax, dword [edx + 0x40]
movsd xmm0, qword [edx + 0x10]
mulsd xmm0, xmm2
sar eax, 8
mov dword [ebp - 0x1030], eax
addsd xmm1, xmm0
movsd xmm0, qword [edx + 8]
mulsd xmm0, xmm3
addsd xmm1, qword [edx + 0x20]
mulsd xmm1, xmm4
cvttsd2si esi, xmm1
movsd xmm1, qword [edx + 0x18]
mulsd xmm1, xmm2
addsd xmm1, xmm0
addsd xmm1, qword [edx + 0x28]
mulsd xmm1, xmm4
cvttsd2si edi, xmm1
test ecx, ecx
je 0x505f02
nop word [eax + eax]
mov eax, 0x400
mov dword [ebp - 0x1010], 0
cmp ecx, eax
mov dword [ebp - 0x1014], 0
lea ebx, [ebp - 0x1004]
cmovl eax, ecx
mov edx, ebx
mov dword [ebp - 0x1034], eax
lea ecx, [eax*4]
mov eax, ebx
add eax, ecx
shr ecx, 2
cmp edx, eax
cmova ecx, dword [ebp - 0x1010]
mov dword [ebp - 0x1010], ecx
test ecx, ecx
je 0x505eb0
nop dword [eax]
mov edx, esi
sar edx, 0x10
test edx, edx
jns 0x505e4d
xor edx, edx
jmp 0x505e59
mov eax, dword [ebp - 0x1020]
dec eax
cmp eax, edx
cmovl edx, eax
mov ecx, edi
sar ecx, 0x10
test ecx, ecx
jns 0x505e66
xor ecx, ecx
jmp 0x505e72
mov eax, dword [ebp - 0x1024]
dec eax
cmp eax, ecx
cmovl ecx, eax
mov eax, dword [ebp - 0x1008]
add esi, dword [ebp - 0x1028]
add edi, dword [ebp - 0x102c]
mov eax, dword [eax + 0x3c]
imul eax, ecx
mov ecx, dword [ebp - 0x1008]
add eax, dword [ecx + 0x30]
mov ecx, dword [ebp - 0x1014]
inc ecx
mov dword [ebp - 0x1014], ecx
mov eax, dword [eax + edx*4]
mov dword [ebx], eax
add ebx, 4
cmp ecx, dword [ebp - 0x1010]
jb 0x505e40
push dword [ebp - 0x1030]
mov ebx, dword [ebp - 0x1034]
lea eax, [ebp - 0x1004]
push eax
push ebx
push dword [ebp - 0x100c]
call dword [ebp - 0x1038]
mov ecx, dword [ebp - 0x1018]
lea eax, [ebx*4]
add dword [ebp - 0x100c], eax
add esp, 0x10
sub ecx, ebx
mov dword [ebp - 0x1018], ecx
jne 0x505df0
movsd xmm4, qword [0x569b20]
mov ebx, dword [ebp - 0x101c]
mov eax, dword [ebp - 0x103c]
add ebx, 8
movsd xmm0, qword [0x545bf0]
mov esi, dword [ebp - 0x1040]
mov dword [ebp - 0x101c], ebx
test eax, eax
jne 0x505d40
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004d48f1
mov esp, ebp
pop ebp
ret