Function at 0x1007d980
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
mov esi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1ec]
mov eax, dword [eax]
test byte [eax + 0x3c], 1
push edi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x14], eax
jne 0x1007d9dd
mov ebx, dword [ebp + 0xc]
mov ecx, dword [esi + 0x20]
lea ebx, [ebx + ebx*4]
shl ebx, 4
cmp dword [ebp + 0x10], 0
mov edx, dword [ebx + ecx + 0x38]
lea eax, [ebx + ecx + 0x1c]
mov dword [esp + 0x1c], edx
mov edx, dword [eax]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], edx
je 0x1007d9e6
cmp dword [ebp + 0x14], 0
je 0x1007d9f1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x14], 0
je 0x1007d9f1
cmp dword [ecx], 1
jg 0x1007d9dd
mov eax, dword [edx + 0x3c]
mov edi, dword [edx + 0x20]
test eax, eax
je 0x1007da01
cmp dword [esi + 0x3c], 0
jne 0x1007d9dd
cmp dword [edx + 0x40], 0
jne 0x1007d9dd
movzx edx, word [esi + 6]
mov dword [esp + 0x2c], edx
test dl, 0x40
je 0x1007da18
test eax, eax
jne 0x1007d9dd
cmp dword [edi], 0
je 0x1007d9dd
mov edx, dword [esp + 0x10]
movzx edx, word [edx + 6]
mov dword [esp + 0x30], edx
test dl, 1
jne 0x1007d9dd
test eax, eax
je 0x1007da3d
cmp dword [ecx], 1
jg 0x1007d9dd
cmp dword [ebp + 0x10], 0
jne 0x1007d9dd
mov edx, dword [esp + 0x2c]
and edx, 1
mov dword [esp + 0x24], edx
je 0x1007da50
cmp dword [ebp + 0x14], 0
jne 0x1007d9dd
cmp dword [esi + 0x30], 0
mov edi, dword [esp + 0x10]
je 0x1007da64
cmp dword [edi + 0x30], 0
jne 0x1007d9dd
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x1007da75
cmp dword [edi + 0x30], 0
jne 0x1007d9dd
test eax, eax
je 0x1007da93
cmp dword [esi + 0x24], 0
jne 0x1007d9dd
test eax, eax
je 0x1007da93
cmp word [esp + 0x24], 0
jne 0x1007d9dd
test dword [esp + 0x30], 0x1800
jne 0x1007d9dd
test dword [esp + 0x2c], 0x800
je 0x1007dab5
cmp dword [edi + 0x34], 0
jne 0x1007d9dd
test byte [ebx + ecx + 0x2c], 0x20
lea eax, [ebx + ecx + 0x2c]
mov dword [esp + 0x38], eax
jne 0x1007d9dd
cmp dword [edi + 0x34], 0
je 0x1007db5b
cmp dword [edi + 0x30], 0
jne 0x1007d9dd
test edx, edx
jne 0x1007d9dd
cmp word [esp + 0x24], dx
jne 0x1007d9dd
cmp dword [ecx], 1
jne 0x1007d9dd
mov eax, edi
test byte [eax + 6], 5
jne 0x1007d9dd
mov ecx, dword [eax + 0x34]
test ecx, ecx
je 0x1007db15
cmp byte [eax + 4], 0x74
jne 0x1007d9dd
mov edx, dword [eax + 0x20]
cmp dword [edx], 1
jl 0x1007d9dd
mov edx, dword [edi]
mov eax, dword [eax]
mov edx, dword [edx]
cmp edx, dword [eax]
jne 0x1007d9dd
mov eax, ecx
test eax, eax
jne 0x1007dafa
mov eax, dword [esi + 0x30]
test eax, eax
je 0x1007db5b
cmp dword [eax], ecx
jle 0x1007db5b
mov eax, dword [eax + 4]
add eax, 0x14
cmp word [eax], 0
je 0x1007d9dd
mov edx, dword [esi + 0x30]
inc ecx
add eax, 0x18
cmp ecx, dword [edx]
jl 0x1007db46
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + eax + 0x10]
push 0
lea edi, [ebx + eax + 0x10]
mov eax, dword [ebp + 8]
push 0
push 0
push 0x15
mov dword [esp + 0x40], edi
mov dword [eax + 0x1ec], ecx
call fcn.1005fc10
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x20]
mov dword [eax + 0x1ec], edx
mov eax, dword [ecx + 0x34]
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
je 0x1007dc3a
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x40]
mov ecx, dword [esp + 0x14]
mov edi, dword [esi + 0x30]
mov ebx, dword [esi + 0x3c]
mov dword [esp + 0x2c], eax
xor eax, eax
push eax
push esi
push ecx
mov dword [esp + 0x40], edx
mov dword [esi + 0x30], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
call fcn.10057750
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov dword [esi + 0x40], edx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x30], edi
mov dword [esi + 0x20], ecx
mov byte [esi + 4], 0x74
test eax, eax
jne 0x1007dbfd
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x34], edx
jmp 0x1007dc11
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x34], ecx
test ecx, ecx
je 0x1007dc0b
mov dword [ecx + 0x38], eax
mov dword [eax + 0x38], esi
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x41], 0
jne 0x1007dfcb
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x34]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1007dba4
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
mov eax, dword [ebx + eax + 0xc]
call fcn.10025e40
mov eax, dword [edi]
mov ecx, dword [esp + 0x14]
call fcn.10025e40
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx + ecx + 0x14]
mov ecx, dword [esp + 0x14]
call fcn.10025e40
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
xor ecx, ecx
mov dword [ebx + eax + 0xc], ecx
mov dword [ebx + eax + 0x14], ecx
lea ebx, [ebx + eax + 0x18]
mov eax, dword [ebx]
mov dword [edi], ecx
mov dword [edx], ecx
cmp eax, ecx
je 0x1007dcd5
movzx ecx, word [eax + 0x28]
cmp ecx, 1
jne 0x1007dcca
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x198]
test ecx, ecx
jne 0x1007dcad
mov ecx, edx
mov edx, dword [ecx + 0x20c]
mov dword [eax + 0x48], edx
mov dword [ecx + 0x20c], eax
mov dword [ebx], 0
mov ebx, esi
mov dword [esp + 0x2c], ebx
jmp 0x1007dce4
dec ecx
mov word [eax + 0x28], cx
mov dword [ebx], 0
mov ebx, esi
mov dword [esp + 0x2c], ebx
jmp 0x1007dce4
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x20]
mov esi, dword [eax]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x20]
mov byte [esp + 0xf], 0
mov dword [esp + 0x18], eax
test eax, eax
je 0x1007dd11
mov ecx, dword [esp + 0x38]
mov dl, byte [ecx]
mov byte [esp + 0xf], dl
jmp 0x1007dd30
push 0
xor ecx, ecx
xor eax, eax
mov edx, edi
call fcn.100652c0
add esp, 4
mov dword [ebx + 0x20], eax
mov dword [esp + 0x18], eax
test eax, eax
je 0x1007dfbb
cmp esi, 1
jle 0x1007dd58
mov ecx, dword [ebp + 0xc]
inc ecx
push ecx
lea edx, [esi - 1]
push edx
push edi
call fcn.100651b0
add esp, 0xc
mov dword [ebx + 0x20], eax
cmp byte [edi + 0x41], 0
mov dword [esp + 0x18], eax
jne 0x1007dfbb
test esi, esi
jle 0x1007ddc0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
add eax, 8
mov dword [esp + 0x24], eax
lea eax, [ecx + edx + 8]
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], esi
jmp 0x1007dd80
mov ecx, dword [esp + 0x20]
mov edi, dword [ecx + 0x38]
mov esi, dword [esp + 0x14]
call fcn.10065010
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov esi, eax
mov ecx, 0x14
rep movsd dword es:[edi], dword [esi]
mov esi, 0x50
push esi
push 0
push eax
call sub.MSVCR100.dll_memset
add dword [esp + 0x2c], esi
add dword [esp + 0x30], esi
add esp, 0xc
dec dword [esp + 0x30]
jne 0x1007dd80
mov eax, dword [esp + 0x18]
mov cl, byte [esp + 0xf]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov byte [edx + eax + 0x2c], cl
mov ecx, dword [ebx]
xor eax, eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x18], eax
cmp dword [ecx], eax
jle 0x1007de43
mov dword [esp + 0x24], eax
lea esp, [esp]
mov edx, dword [ecx + 4]
cmp dword [eax + edx + 4], 0
jne 0x1007de2b
mov ebx, dword [eax + edx + 8]
push esi
call fcn.100262b0
add esp, 4
mov esi, eax
call fcn.10028b40
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x10]
mov dword [edx + ecx + 4], esi
mov esi, dword [esp + 0x14]
mov ecx, eax
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
inc edx
add eax, 0x18
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], eax
cmp edx, dword [ecx]
jl 0x1007ddf0
mov eax, dword [edi]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebx]
push eax
push ecx
push edx
push esi
call fcn.1007d6c0
add esp, 0x10
cmp dword [ebp + 0x10], 0
je 0x1007de87
mov eax, dword [edi]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebx + 0x28]
push eax
push ecx
push edx
push esi
call fcn.1007d6c0
mov eax, dword [edi]
mov ecx, dword [esp + 0x2c]
mov edx, dword [ebx + 0x2c]
push eax
push ecx
push edx
push esi
call fcn.1007d5b0
add esp, 0x20
mov dword [ebx + 0x2c], eax
mov eax, dword [edi + 0x30]
xor ecx, ecx
mov dword [esp + 0x34], eax
cmp eax, ecx
je 0x1007deca
mov dword [esp + 0x18], ecx
cmp dword [eax], ecx
jle 0x1007debe
lea esp, [esp]
mov eax, dword [eax + 4]
xor edx, edx
mov word [eax + ecx + 0x14], dx
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
inc edx
add ecx, 0x18
mov dword [esp + 0x18], edx
cmp edx, dword [eax]
jl 0x1007dea0
mov dword [ebx + 0x30], eax
mov dword [edi + 0x30], 0
jmp 0x1007dee3
mov eax, dword [ebx + 0x30]
cmp eax, ecx
je 0x1007dee3
mov ecx, dword [edi]
mov edx, dword [esp + 0x1c]
push ecx
push edx
push eax
push esi
call fcn.1007d6c0
add esp, 0x10
mov eax, dword [edi + 0x24]
test eax, eax
je 0x1007defe
push 0
push 0
push eax
push esi
call fcn.10056e40
add esp, 0x10
mov dword [esp + 0x24], eax
jmp 0x1007df06
mov dword [esp + 0x24], 0
cmp dword [ebp + 0x14], 0
mov eax, dword [ebx + 0x24]
je 0x1007df5f
mov ecx, dword [esp + 0x24]
mov dword [ebx + 0x2c], eax
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x24], ecx
mov edx, dword [edi]
mov ecx, dword [ebx + 0x2c]
push edx
push eax
push ecx
push esi
call fcn.1007d5b0
push 0
mov dword [ebx + 0x2c], eax
mov eax, dword [edi + 0x2c]
push 0
push eax
push esi
call fcn.10056e40
mov edx, dword [ebx + 0x2c]
push eax
push edx
mov eax, esi
call fcn.10056960
mov dword [ebx + 0x2c], eax
mov eax, dword [edi + 0x28]
push 0
push eax
push esi
call fcn.100571c0
add esp, 0x34
mov dword [ebx + 0x28], eax
jmp 0x1007df84
mov ecx, dword [edi]
mov edx, dword [esp + 0x1c]
push ecx
push edx
push eax
push esi
call fcn.1007d5b0
mov ecx, dword [esp + 0x34]
push ecx
mov dword [ebx + 0x24], eax
push eax
mov eax, esi
call fcn.10056960
add esp, 0x18
mov dword [ebx + 0x24], eax
mov dx, word [edi + 6]
and dx, 1
or word [ebx + 6], dx
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x1007dfa1
mov dword [ebx + 0x3c], eax
mov dword [edi + 0x3c], 0
mov ebx, dword [ebx + 0x34]
mov eax, dword [edi + 0x34]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x10], eax
test ebx, ebx
jne 0x1007dce0
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
push 1
push ecx
push edi
call fcn.10077530
add esp, 0xc
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret