Function at 0x40754c
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x417004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x1c]
push esi
push edi
mov esi, eax
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
test byte [ebp - 5], 0x20
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], ecx
je 0x407580
push 6
pop eax
jmp 0x407748
test byte [ebp - 5], 1
je 0x4075db
mov byte [eax + 0xb], 0
and dword [ebx + 0x1c], 0
xor edi, edi
inc edi
jmp 0x407599
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
push ecx
push eax
mov edx, edi
lea ecx, [ebp - 0x10]
call fcn.00407297
pop ecx
pop ecx
mov esi, ebx
call fcn.0040737a
test eax, eax
jne 0x4075b8
inc edi
cmp edi, 0x64
jb 0x407593
cmp edi, 0x64
jne 0x4075c1
push 7
jmp 0x40757a
cmp eax, 4
jne 0x407748
mov eax, dword [ebp - 0x14]
mov cl, byte [ebp - 5]
mov byte [eax + 0xb], cl
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x1c], eax
mov ecx, eax
test byte [ebp - 5], 2
je 0x4075ff
xor eax, eax
cmp word [ecx], ax
je 0x4075f0
inc eax
cmp word [ecx + eax*2], 0
jne 0x4075e8
push 0xd
add eax, 0x19
xor edx, edx
pop ecx
div ecx
mov dword [ebp - 0x14], eax
jmp 0x407606
mov dword [ebp - 0x14], 1
push dword [ebp - 0x14]
mov eax, ebx
call fcn.004070cc
mov edx, eax
pop ecx
test edx, edx
jne 0x407746
dec dword [ebp - 0x14]
je 0x407708
movzx eax, word [ebx + 6]
sub eax, dword [ebp - 0x14]
mov edi, ebx
call fcn.00406edc
mov edx, eax
test edx, edx
jne 0x407746
mov ecx, dword [ebx + 0x18]
call fcn.00407363
mov byte [ebp - 0x1d], al
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx]
call fcn.004069f3
mov edx, eax
test edx, edx
jne 0x407746
mov cl, byte [ebp - 0x14]
mov edx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x14]
movzx edi, cl
dec edi
mov byte [ebp - 0x18], cl
imul edi, edi, 0xd
mov dword [ebp - 0x24], edx
mov dl, byte [ebp - 0x1d]
xor ecx, ecx
and dword [ebp - 0x1c], ecx
mov byte [eax + 0xd], dl
mov word [eax + 0xb], 0xf
mov word [eax + 0x1a], 0
mov edx, 0xffff
cmp cx, dx
je 0x40769a
mov ecx, dword [ebp - 0x24]
movzx ecx, word [ecx + edi*2]
inc edi
mov esi, dword [ebp - 0x1c]
lea esi, [esi + 0x413be0]
movzx edx, byte [esi]
mov byte [edx + eax], cl
movzx esi, byte [esi]
mov edx, ecx
shr edx, 8
mov byte [esi + eax + 1], dl
test cx, cx
jne 0x4076bf
mov ecx, 0xffff
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 0xd
jb 0x407688
mov edx, 0xffff
cmp cx, dx
je 0x4076dc
mov ecx, dword [ebp - 0x24]
cmp word [ecx + edi*2], 0
jne 0x4076e4
mov cl, byte [ebp - 0x18]
or cl, 0x40
jmp 0x4076e7
mov cl, byte [ebp - 0x18]
mov byte [eax], cl
mov eax, dword [ebx]
push 0
mov edi, ebx
mov byte [eax + 4], 1
call fcn.00406f8a
mov edx, eax
pop ecx
test edx, edx
jne 0x407746
dec dword [ebp - 0x14]
jne 0x407647
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx]
call fcn.004069f3
mov edx, eax
test edx, edx
jne 0x407746
mov edi, dword [ebx + 0x14]
push 8
pop ecx
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x14]
mov esi, dword [ebx + 0x18]
push 0xb
pop edi
mov cl, byte [esi]
mov byte [eax], cl
inc eax
inc esi
dec edi
jne 0x407729
mov eax, dword [ebx + 0x18]
mov al, byte [eax + 0xb]
mov ecx, dword [ebx + 0x14]
and al, 0x18
mov byte [ecx + 0xc], al
mov eax, dword [ebx]
mov byte [eax + 4], 1
mov eax, edx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040ad48
leave
ret