Function at 0x1004070e
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x208]
mov eax, dword [eax]
test byte [eax + 0xc], 1
push esi
push edi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], eax
je 0x10040737
xor eax, eax
jmp 0x10040be4
mov edi, dword [ebp + 0xc]
mov edx, dword [ebx + 8]
imul edi, edi, 0x38
mov dword [ebp - 0x24], edi
lea edi, [edi + edx + 8]
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x10]
xor ecx, ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x10], ecx
je 0x10040767
cmp dword [ebp + 0x14], ecx
je 0x10040772
jmp 0x10040730
cmp dword [ebp + 0x14], ecx
je 0x10040772
cmp word [edx], 1
jg 0x10040730
mov ecx, dword [eax + 8]
xor esi, esi
cmp dword [eax + 0x28], esi
je 0x10040781
cmp dword [ebx + 0x28], esi
jne 0x10040730
cmp dword [eax + 0x2c], esi
jne 0x10040730
cmp dword [ebx + 0x24], esi
je 0x10040793
cmp dword [eax + 0x28], 0
jne 0x10040730
xor esi, esi
cmp word [ecx], si
je 0x10040730
test byte [eax + 6], 1
jne 0x10040730
cmp dword [eax + 0x28], esi
je 0x100407ae
cmp word [edx], 1
jg 0x10040730
cmp dword [ebp + 0x10], esi
jne 0x10040730
mov cx, word [ebx + 6]
and cx, 1
je 0x100407c1
cmp dword [ebp + 0x14], esi
jne 0x10040730
cmp dword [ebx + 0x18], esi
je 0x100407cf
cmp dword [eax + 0x18], esi
jne 0x10040730
cmp dword [ebp + 0x10], esi
je 0x100407dd
cmp dword [eax + 0x18], esi
jne 0x10040730
cmp dword [eax + 0x28], esi
je 0x100407eb
cmp dword [ebx + 0xc], esi
jne 0x10040730
test byte [edi + 0x15], 0x20
jne 0x10040730
cmp dword [eax + 0x1c], esi
je 0x10040880
cmp dword [eax + 0x18], esi
jne 0x10040730
cmp dword [ebp + 0x10], esi
jne 0x10040730
cmp cx, si
jne 0x10040730
cmp word [edx], 1
jne 0x10040730
test byte [eax + 6], 5
jne 0x10040730
mov ecx, dword [eax + 0x1c]
cmp ecx, esi
je 0x1004083e
cmp byte [eax + 4], 0x71
jne 0x10040730
mov eax, dword [eax + 8]
cmp eax, esi
je 0x10040730
cmp word [eax], 1
jne 0x10040730
mov eax, ecx
cmp eax, esi
jne 0x10040823
mov eax, dword [ebx + 0x18]
cmp eax, esi
je 0x10040880
xor ecx, ecx
cmp dword [eax], esi
jle 0x10040880
mov eax, dword [eax + 0xc]
add eax, 0xe
cmp word [eax], si
je 0x10040730
mov edx, dword [ebx + 0x18]
inc ecx
add eax, 0x14
cmp ecx, dword [edx]
jl 0x1004086c
mov eax, dword [edi + 4]
mov esi, dword [ebp + 8]
mov dword [esi + 0x208], eax
xor eax, eax
push eax
push eax
push eax
push 0x15
call fcn.100325f9
mov eax, dword [ebp - 0x20]
mov ecx, esi
mov dword [ecx + 0x208], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x1c]
add esp, 0x10
xor esi, esi
test eax, eax
mov dword [ebp - 0xc], eax
je 0x10040925
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x28]
push esi
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x1c]
push ebx
push dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov dword [ebx + 0x18], esi
mov dword [ebx + 8], esi
mov dword [ebx + 0x1c], esi
mov dword [ebx + 0x28], esi
call fcn.1002e410
mov ecx, dword [ebp - 0x20]
mov dword [ebx + 0x28], ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebx + 0x18], ecx
mov ecx, dword [ebp - 0x10]
add esp, 0xc
mov dword [ebx + 8], ecx
mov byte [ebx + 4], 0x71
mov dword [ebx + 0x24], esi
cmp eax, esi
jne 0x10040902
mov eax, dword [ebp - 0x1c]
jmp 0x1004090b
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x24], esi
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 8]
cmp byte [eax + 0x1e], 0
jne 0x10040be1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x1c]
cmp eax, esi
jmp 0x100408b0
push dword [edi]
mov eax, dword [edi + 0x10]
push dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0xc], eax
call fcn.10011850
push dword [edi + 4]
push dword [ebp - 8]
call fcn.10011850
push dword [edi + 8]
push dword [ebp - 8]
call fcn.10011850
mov eax, dword [edi + 0xc]
add esp, 0x18
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov dword [edi + 0x10], esi
cmp eax, esi
je 0x10040994
movzx ecx, word [eax + 0x1c]
cmp ecx, 1
jne 0x1004098c
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x1a8]
cmp ecx, esi
jne 0x1004097b
mov ecx, edx
mov edx, dword [ecx + 0x224]
mov dword [eax + 0x44], edx
mov dword [ecx + 0x224], eax
jmp 0x10040991
dec ecx
mov word [eax + 0x1c], cx
mov dword [edi + 0xc], esi
mov dword [ebp - 0x18], ebx
jmp 0x1004099c
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
mov esi, dword [eax + 8]
movsx edi, word [esi]
mov eax, dword [ebx + 8]
mov byte [ebp + 0xb], 0
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x10], eax
test eax, eax
je 0x100409c1
mov ecx, dword [ebp - 0x28]
mov cl, byte [ecx + 0x15]
mov byte [ebp + 0xb], cl
jmp 0x100409e2
mov edi, dword [ebp - 8]
push 0
push 0
xor eax, eax
call fcn.100352f7
pop ecx
pop ecx
mov dword [ebx + 8], eax
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10040bd4
mov edi, dword [ebp - 0x20]
cmp edi, 1
jle 0x10040a0e
mov ecx, dword [ebp + 0xc]
inc ecx
push ecx
lea ecx, [edi - 1]
push ecx
push dword [ebp - 8]
call fcn.10035232
mov dword [ebx + 8], eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
add esp, 0xc
cmp byte [eax + 0x1e], 0
jne 0x10040bd4
test edi, edi
jle 0x10040a5b
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
add esi, 8
lea eax, [eax + ecx + 8]
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edi
mov edi, dword [ebp - 0x1c]
push dword [ebp - 8]
mov esi, dword [edi + 0x20]
call fcn.100351b9
mov esi, dword [ebp - 4]
pop ecx
push 0xe
pop ecx
push 0x38
push 0
push dword [ebp - 4]
rep movsd dword es:[edi], dword [esi]
call fcn.10066c10
add dword [ebp - 0x1c], 0x38
add dword [ebp - 4], 0x38
add esp, 0xc
dec dword [ebp - 0x20]
jne 0x10040a28
mov dl, byte [ebp + 0xb]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov byte [eax + ecx + 0x1d], dl
mov esi, dword [ebx]
xor edi, edi
mov dword [ebp + 8], edi
cmp dword [esi], edi
jle 0x10040aa3
mov eax, dword [esi + 0xc]
cmp dword [eax + edi + 4], 0
jne 0x10040a96
mov eax, dword [eax + edi + 8]
test eax, eax
je 0x10040a96
mov edx, dword [ebp - 8]
push eax
call fcn.10011b2b
pop ecx
mov ecx, dword [esi + 0xc]
mov dword [ecx + edi + 4], eax
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
add edi, 0x14
cmp eax, dword [esi]
jl 0x10040a73
mov edi, dword [ebp - 0xc]
push dword [edi]
mov esi, dword [ebx]
push dword [ebp - 0x14]
push dword [ebp - 8]
call fcn.1004059a
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x10040ae7
push dword [edi]
mov esi, dword [ebx + 0x10]
push dword [ebp - 0x14]
push dword [ebp - 8]
call fcn.1004059a
add esp, 0xc
push dword [edi]
push dword [ebp - 0x14]
push dword [ebx + 0x14]
push dword [ebp - 8]
call fcn.10040491
add esp, 0x10
mov dword [ebx + 0x14], eax
mov eax, dword [edi + 0x18]
test eax, eax
je 0x10040af7
mov dword [ebx + 0x18], eax
and dword [edi + 0x18], 0
jmp 0x10040b0e
mov esi, dword [ebx + 0x18]
test esi, esi
je 0x10040b0e
push dword [edi]
push dword [ebp - 0x14]
push dword [ebp - 8]
call fcn.1004059a
add esp, 0xc
mov eax, dword [edi + 0xc]
mov esi, dword [ebp - 8]
test eax, eax
je 0x10040b29
push 0
push eax
push esi
call fcn.1002e15a
add esp, 0xc
mov dword [ebp + 8], eax
jmp 0x10040b2d
and dword [ebp + 8], 0
cmp dword [ebp + 0x14], 0
je 0x10040b85
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0xc], eax
push dword [edi]
push dword [ebp - 0x14]
push dword [ebx + 0x14]
push esi
call fcn.10040491
push 0
mov dword [ebx + 0x14], eax
push dword [edi + 0x14]
push esi
call fcn.1002e15a
add esp, 0x1c
push dword [ebx + 0x14]
push esi
call fcn.1002db97
mov dword [ebx + 0x14], eax
mov ebx, dword [edi + 0x10]
push 0
push esi
call fcn.1002e177
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0xc]
add esp, 0x10
mov dword [ecx + 0x10], eax
mov ebx, ecx
jmp 0x10040ba6
push dword [edi]
push dword [ebp - 0x14]
push dword [ebx + 0xc]
push esi
call fcn.10040491
push eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebp + 8]
push esi
call fcn.1002db97
add esp, 0x18
mov dword [ebx + 0xc], eax
mov ax, word [edi + 6]
and ax, 1
or word [ebx + 6], ax
mov eax, dword [edi + 0x28]
test eax, eax
je 0x10040bc0
mov dword [ebx + 0x28], eax
and dword [edi + 0x28], 0
mov ebx, dword [ebx + 0x1c]
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x10040999
push dword [ebp - 0x2c]
push dword [ebp - 8]
call fcn.1003dff0
pop ecx
pop ecx
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret