Function at 0x408969
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp + 8]
push eax
push 1
xor edi, edi
push edi
push 0xffffffffffffffff
push edi
push esi
call fcn.00406e31
cmp eax, edi
jne 0x408b96
lea eax, [ebp - 4]
push eax
push 1
push 1
push 0xffffffffffffffff
push edi
push esi
call fcn.00406e31
cmp eax, edi
jne 0x408b96
mov edi, dword [ebp + 8]
movzx ecx, byte [edi + 0xe]
xor eax, eax
mov ah, byte [edi + 0xc]
mov al, byte [edi + 0xd]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 0xf]
shl eax, 8
or eax, ecx
cmp eax, 0x5f0f3cf5
je 0x4089d3
mov eax, 0x1405
jmp 0x408b96
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov ah, byte [edi + 0x12]
push ebx
mov ebx, dword [ebp - 4]
mov al, byte [edi + 0x13]
mov word [ecx], ax
mov al, byte [edi + 0x11]
mov ecx, dword [ebp + 0x10]
and al, 8
sub al, 8
neg al
sbb eax, eax
inc eax
mov dword [ecx], eax
xor eax, eax
mov ah, byte [ebx + 0x22]
mov al, byte [ebx + 0x23]
mov word [esi + 0xc4], ax
xor eax, eax
mov ah, byte [edi + 0x32]
mov al, byte [edi + 0x33]
mov word [esi + 0xc], ax
lea eax, [ebp + 8]
push eax
push 0
push 0xe
push 0xffffffffffffffff
push 0
push esi
call fcn.00406e31
test eax, eax
jne 0x408b95
mov eax, dword [ebp + 8]
test eax, eax
je 0x408a5a
xor ecx, ecx
mov ch, byte [eax + 0x44]
push eax
push dword [esi]
mov cl, byte [eax + 0x45]
mov word [esi + 0xdc], cx
xor ecx, ecx
mov ch, byte [eax + 0x46]
mov cl, byte [eax + 0x47]
mov word [esi + 0xde], cx
call dword [esi + 8]
pop ecx
pop ecx
jmp 0x408a78
xor eax, eax
mov ah, byte [ebx + 4]
mov al, byte [ebx + 5]
mov word [esi + 0xdc], ax
xor eax, eax
mov ah, byte [ebx + 6]
mov al, byte [ebx + 7]
mov word [esi + 0xde], ax
xor eax, eax
mov ah, byte [ebx + 6]
push ebx
push dword [esi]
mov al, byte [ebx + 7]
mov word [esi + 0xe0], ax
call dword [esi + 8]
push edi
push dword [esi]
call dword [esi + 8]
add esp, 0x10
lea eax, [ebp + 8]
push eax
push 1
push 3
push 0xffffffffffffffff
push 0
push esi
call fcn.00406e31
test eax, eax
jne 0x408b95
mov eax, dword [ebp + 8]
xor edx, edx
mov dh, byte [eax]
movzx ecx, byte [eax + 2]
push eax
mov dl, byte [eax + 1]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 3]
shl edx, 8
or edx, ecx
mov ecx, dword [ebp + 0x14]
mov dword [ecx], edx
xor edx, edx
mov dh, byte [eax + 4]
mov dl, byte [eax + 5]
mov word [ecx + 4], dx
xor edx, edx
mov dh, byte [eax + 6]
mov dl, byte [eax + 7]
mov word [ecx + 6], dx
xor edx, edx
mov dh, byte [eax + 8]
mov dl, byte [eax + 9]
mov word [ecx + 8], dx
xor edx, edx
mov dh, byte [eax + 0xa]
mov dl, byte [eax + 0xb]
mov word [ecx + 0xa], dx
xor edx, edx
mov dh, byte [eax + 0xc]
mov dl, byte [eax + 0xd]
mov word [ecx + 0xc], dx
xor edx, edx
mov dh, byte [eax + 0xe]
mov dl, byte [eax + 0xf]
mov word [ecx + 0xe], dx
xor edx, edx
mov dh, byte [eax + 0x10]
mov dl, byte [eax + 0x11]
mov word [ecx + 0x10], dx
xor edx, edx
mov dh, byte [eax + 0x12]
mov dl, byte [eax + 0x13]
mov word [ecx + 0x12], dx
xor edx, edx
mov dh, byte [eax + 0x14]
mov dl, byte [eax + 0x15]
mov word [ecx + 0x14], dx
xor edx, edx
mov dh, byte [eax + 0x16]
mov dl, byte [eax + 0x17]
mov word [ecx + 0x16], dx
xor edx, edx
mov dh, byte [eax + 0x18]
mov dl, byte [eax + 0x19]
mov word [ecx + 0x18], dx
xor edx, edx
mov dh, byte [eax + 0x1a]
mov dl, byte [eax + 0x1b]
mov word [ecx + 0x1a], dx
xor edx, edx
mov dh, byte [eax + 0x1c]
mov dl, byte [eax + 0x1d]
mov word [ecx + 0x1c], dx
xor edx, edx
mov dh, byte [eax + 0x1e]
mov dl, byte [eax + 0x1f]
mov word [ecx + 0x1e], dx
push dword [esi]
call dword [esi + 8]
pop ecx
pop ecx
lea eax, [esi + 0xc8]
push eax
lea eax, [esi + 0xc6]
push eax
push esi
call fcn.0040709b
pop ebx
pop edi
pop esi
leave
ret 0x10