Function at 0x401b70
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
test ebx, ebx
je 0x401dd8
push esi
push edi
mov edi, dword [0x4040d8]
xor esi, esi
mov eax, ebx
call fcn.00401fb0
test eax, eax
jne 0x401ba5
push 0x64
call edi
inc esi
cmp esi, 0x1e
jl 0x401b90
mov eax, ebx
call fcn.00401fb0
test eax, eax
je 0x401dd3
push ebx
push 0
push 0x1f0fff
call dword [0x4040f4]
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
je 0x401dd3
push str.kernel32.dll
mov dword [ebp - 8], 0
call dword [0x4040c0]
mov ebx, dword [0x4040bc]
test eax, eax
je 0x401c06
push str.IsWow64Process
push eax
call ebx
mov edi, eax
test edi, edi
je 0x401c06
lea eax, [ebp - 8]
push eax
call dword [0x4040d4]
push eax
call edi
cmp dword [ebp - 8], 0
je 0x401c3f
push str.kernel32.dll
mov dword [ebp - 8], 0
call dword [0x4040c0]
test eax, eax
je 0x401c35
push str.IsWow64Process
push eax
call ebx
test eax, eax
je 0x401c35
lea ecx, [ebp - 8]
push ecx
push esi
call eax
cmp dword [ebp - 8], 0
je 0x401db0
mov ebx, dword [0x40643c]
lea ebx, [ebx + 0x406400]
xor edx, edx
push 0x40
mov dword [ebx + 0x58], 0x52a00
mov word [0x406400], dx
mov eax, dword [ebx + 0x50]
push 0x3000
add eax, 0x52a00
push eax
push edx
push esi
mov dword [ebx], edx
call dword [0x404104]
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
je 0x401db0
mov ecx, dword [ebx + 0x54]
lea eax, [ebp - 0x14]
push eax
push ecx
push 0x406400
push edi
push esi
call dword [0x40411c]
movzx edx, word [ebx + 0x14]
xor ecx, ecx
lea eax, [edx + ebx + 0x18]
mov dword [ebp - 8], 0
cmp cx, word [ebx + 6]
jae 0x401d1f
lea esi, [eax + 8]
mov edx, dword [esi]
push 4
push 0x3000
push edx
push 0
call dword [0x4040e0]
mov edi, eax
test edi, edi
je 0x401d07
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
push eax
add ecx, 0x406400
push ecx
push edi
call fcn.00403b0e
mov eax, dword [esi]
mov ecx, dword [esi + 4]
add ecx, dword [ebp - 0xc]
add esp, 0xc
lea edx, [ebp - 0x14]
push edx
mov edx, dword [ebp - 0x10]
push eax
push edi
push ecx
push edx
call dword [0x40411c]
push 0x8000
push 0
push edi
call dword [0x4040ec]
mov eax, dword [ebp - 8]
movzx ecx, word [ebx + 6]
inc eax
add esi, 0x28
mov dword [ebp - 8], eax
cmp eax, ecx
jl 0x401cb1
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
mov eax, dword [ebx + 0x50]
lea edx, [ebp - 0x14]
push edx
push 0x52a00
push 0x406400
add eax, edi
push eax
push esi
call dword [0x40411c]
mov ebx, dword [ebx + 0x28]
push 0
push 0
push esi
add ebx, edi
call dword [0x4040dc]
push 0
push 0
push 0
push ebx
push 0
push 0
push esi
call dword [0x4040f0]
mov edi, eax
test edi, edi
je 0x401d8e
lea ecx, [ebp - 0x10]
push ecx
push edi
mov dword [ebp - 0x10], 0
call dword [0x404100]
test eax, eax
je 0x401d85
test byte [ebp - 0x10], 2
jne 0x401d85
push edi
call dword [0x404118]
mov dword [ebp - 4], 1
jmp 0x401db0
push 0
push 0
push 0
push ebx
push 0
push 0
push 0
push 0
push 0
push esi
call dword [0x404198]
xor edx, edx
test eax, eax
setns dl
mov dword [ebp - 4], edx
lea eax, [ebp - 0x10]
push eax
push esi
mov dword [ebp - 0x10], 0
call dword [0x404100]
test eax, eax
je 0x401dd3
test byte [ebp - 0x10], 2
jne 0x401dd3
push esi
call dword [0x404118]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret