Function at 0x404117
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x55c
push ebx
push esi
mov esi, eax
cmp byte [esi + 7], 0
push edi
jne 0x404438
mov al, 0xff
cmp byte [esi + 1], al
jne 0x404438
cmp byte [esi + 2], al
jne 0x404438
cmp byte [esi + 3], al
jne 0x404438
cmp byte [esi + 4], al
jne 0x404438
cmp byte [esi + 5], al
jne 0x404438
cmp byte [esi + 6], al
jne 0x404438
lea eax, [ebp - 0x558]
push eax
call fcn.00403ced
mov bx, word [esi + 0x23]
or dword [ebp - 0x74], 0xffffffff
lea eax, [ebp - 0x558]
push eax
call fcn.00403d03
push 8
lea edi, [esi + 0x26]
pop ebx
movzx eax, byte [edi]
mov cl, byte [edi + 1]
push eax
lea eax, [ebp - 0x558]
push eax
call fcn.00403f19
inc edi
inc edi
dec ebx
jne 0x40418d
and dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
lea edi, [eax + 3]
imul edi, edi, 0x12
add edi, esi
test eax, eax
jne 0x4041fd
test byte [esi + 0x18], 2
je 0x4041fd
mov al, byte [esi + 0x3d]
movzx cx, byte [esi + 0x3b]
and al, 0xf0
movzx ax, al
shl ax, 4
add ax, cx
movzx cx, byte [esi + 0x38]
mov di, 0x3c
push eax
mov al, byte [esi + 0x3a]
and al, 0xf0
movzx ax, al
shl ax, 4
add ax, cx
lea ecx, [ebp - 0x558]
push eax
call fcn.00403e83
jmp 0x404318
movzx eax, word [edi]
test ax, ax
jne 0x404289
mov al, byte [edi + 3]
cmp al, 0xff
jne 0x404218
lea eax, [ebp - 0x149]
jmp 0x404222
cmp al, 0xfc
jne 0x404230
lea eax, [ebp - 0x158]
add edi, 5
push edi
call fcn.004040f0
jmp 0x404318
cmp al, 0xfa
jne 0x404264
xor ebx, ebx
movzx eax, byte [edi + ebx*2 + 5]
mov cl, byte [edi + ebx*2 + 6]
push eax
lea eax, [ebp - 0x558]
push eax
call fcn.00403f19
test byte [esi + 0x18], 2
je 0x404259
test ebx, ebx
jne 0x404259
mov dword [ebp - 0x74], eax
inc ebx
cmp ebx, 6
jl 0x404236
jmp 0x404318
cmp al, 0xfd
jne 0x404318
mov al, byte [edi + 8]
mov byte [ebp - 0xd], al
mov al, byte [edi + 7]
mov byte [ebp - 0xe], al
mov al, byte [edi + 6]
mov byte [ebp - 0xf], al
mov al, byte [edi + 5]
mov byte [ebp - 0x10], al
jmp 0x404318
movzx bx, byte [edi + 2]
movzx eax, ax
imul eax, eax, 0xa
mov dword [ebp - 0x40], eax
mov al, byte [edi + 4]
movzx dx, al
mov ecx, 0xfff0
and dx, cx
shl dx, 4
or dx, bx
mov word [ebp - 0x3c], dx
xor edx, edx
movzx bx, byte [edi + 5]
and al, 0xf
mov dh, al
mov al, byte [edi + 7]
mov dl, byte [edi + 3]
mov word [ebp - 0x3a], dx
movzx dx, al
and dx, cx
shl dx, 4
or dx, bx
mov word [ebp - 0x38], dx
xor edx, edx
and al, 0xf
mov dh, al
mov al, byte [edi + 0xe]
mov dl, byte [edi + 6]
mov word [ebp - 0x36], dx
movzx dx, al
and dx, cx
movzx cx, byte [edi + 0xc]
shl dx, 4
or dx, cx
and al, 0xf
xor ecx, ecx
mov ch, al
mov al, byte [edi + 0xf]
mov byte [ebp - 0x28], al
mov al, byte [edi + 0x10]
mov word [ebp - 0x34], dx
mov byte [ebp - 0x27], al
mov cl, byte [edi + 0xd]
mov word [ebp - 0x32], cx
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
jl 0x4041a8
push dword [ebp + 0xc]
mov ebx, 0xff
lea edi, [ebp - 0x358]
call fcn.00404a37
pop ecx
push dword [ebp + 0x10]
lea edi, [ebp - 0x258]
call fcn.00404a37
mov ax, word [esi + 8]
mov word [ebp - 0x64], ax
mov ax, word [esi + 0xa]
mov word [ebp - 0x62], ax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x60], eax
mov al, byte [esi + 0x10]
mov byte [ebp - 0x5c], al
movzx eax, byte [esi + 0x11]
add eax, 0x7c6
mov dword [ebp - 0x58], eax
mov al, byte [esi + 0x12]
mov byte [ebp - 0x54], al
mov al, byte [esi + 0x13]
mov byte [ebp - 0x53], al
mov al, byte [esi + 0x15]
mov byte [ebp - 0x52], al
mov al, byte [esi + 0x16]
mov byte [ebp - 0x51], al
movzx eax, byte [esi + 0x17]
mov dword [ebp + 0xc], eax
movzx eax, byte [esi + 0x14]
fild dword [ebp + 0xc]
shr eax, 7
mov dword [ebp - 0x24], eax
fdiv qword [0x40dfa8]
movzx eax, byte [esi + 0x18]
pop ecx
mov ecx, eax
shr ecx, 7
mov dword [ebp - 0x20], ecx
mov ecx, eax
shr ecx, 6
and ecx, 1
mov dword [ebp - 0x1c], ecx
mov ecx, eax
and eax, 1
shr ecx, 5
and ecx, 1
cmp dword [ebp - 0x78], 0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x68], eax
fadd qword [0x40df78]
fstp qword [ebp - 0x48]
jle 0x404400
push 0x403fac
push 6
push dword [ebp - 0x78]
lea eax, [ebp - 0x13a]
push eax
call sub.msvcrt.dll_qsort
add esp, 0x10
lea esi, [ebp - 0x558]
call fcn.00404099
call fcn.00403feb
push dword [ebp + 0x18]
mov edi, esi
call fcn.00404a37
pop ecx
push dword [ebp + 0x1c]
lea edi, [ebp - 0x458]
call fcn.00404a37
pop ecx
mov eax, esi
push eax
mov eax, dword [ebp + 8]
add eax, 4
call fcn.00404810
pop edi
pop esi
pop ebx
leave
ret 0x18