Function at 0x402f7a
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00402c76
mov ebx, eax
call fcn.00402c95
and dword [ebp - 0x1c], 0
cmp dword [ebx + 0x150], 0
mov esi, eax
mov eax, dword [ebx + 0x13c]
lea edi, [eax + ebx - 0x1200]
mov dword [ebp - 0xc], edi
je 0x402fd2
mov eax, dword [ebx + 0x148]
add eax, 0x30
push eax
call fcn.00402f51
push eax
push edi
mov dword [ebp - 0x18], eax
call fcn.004038e0
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov dword [ebp - 0xc], eax
jmp 0x402ff6
lea edi, [esi + 0x20]
push edi
lea eax, [ebx + 0x20]
push 0x100
push eax
call fcn.004038e5
push edi
push dword [ebx + 0x124]
push dword [ebp - 0xc]
call fcn.0040395c
add esp, 0x18
lea eax, [ebp - 0x1c]
push eax
push 4
push 0x1000
add bh, bh
jbe 0x403020
call dword [esi + 8]
push dword [esi + 0x1c]
call fcn.00403a50
mov edi, eax
mov eax, dword [ebx + 0x130]
mov dword [edi + 0x7c], eax
mov eax, dword [ebx + 0x12c]
mov dword [edi + 0x78], eax
movzx eax, word [edi + 0x14]
lea eax, [eax + edi + 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
pop ecx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1c]
push eax
push 4
push 0x1000
push dword [esi + 0x1c]
call dword [esi + 8]
mov ecx, dword [ebp - 0xc]
xor eax, eax
cmp dword [ecx + 0xc], eax
je 0x40305e
add dword [ebp - 4], 0x28
mov ecx, dword [ebp - 4]
inc eax
cmp dword [ecx + 0xc], 0
jne 0x403050
mov ecx, eax
imul ecx, ecx, 0xffffffd8
add dword [ebp - 4], ecx
and dword [ebp - 0x18], 0
mov edx, dword [ebp - 8]
dec eax
mov dword [ebp - 0x10], eax
movzx eax, word [edi + 6]
mov ecx, eax
imul ecx, ecx, 0x28
dec eax
test eax, eax
lea ecx, [ecx + edx - 0x28]
mov dword [ebp - 0x14], ecx
jle 0x4030b6
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x28
mov dword [ebp - 0x20], eax
jmp 0x403097
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
push 0x28
push ecx
add eax, ecx
push eax
call fcn.00403a5a
sub dword [ebp - 0x14], 0x28
movzx eax, word [edi + 6]
add esp, 0xc
inc dword [ebp - 0x18]
dec eax
cmp dword [ebp - 0x18], eax
jl 0x403091
mov eax, dword [ebp - 0x10]
inc eax
je 0x4030dc
mov dword [ebp - 0x18], eax
push 0x28
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00403a5a
add dword [ebp - 8], 0x28
add dword [ebp - 4], 0x28
add esp, 0xc
dec dword [ebp - 0x18]
jne 0x4030bf
mov ecx, dword [ebp - 0x10]
mov eax, ecx
imul eax, eax, 0x28
push 0xffffffffffffffd8
pop edx
sub edx, eax
mov eax, dword [ebp - 8]
add eax, edx
mov edx, dword [ebp - 4]
add edx, 0x28
inc ecx
mov dword [ebp - 0x18], edx
je 0x403143
add eax, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], ecx
jmp 0x403108
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [esi + 0x1c]
add ecx, dword [eax]
push 0x40
push dword [eax - 4]
push ecx
call dword [esi + 8]
mov eax, dword [ebp - 8]
push dword [eax + 4]
mov ecx, dword [esi + 0x1c]
add ecx, dword [eax]
push dword [ebp - 0x18]
push ecx
call fcn.00403a5a
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
add dword [ebp - 0x18], eax
add dword [ebp - 8], 0x28
add esp, 0xc
dec dword [ebp - 0x14]
jne 0x403105
cmp dword [ebx + 0x150], 0
je 0x403155
push dword [ebp - 0xc]
call fcn.00402f66
pop ecx
mov ax, word [ebp - 0x10]
add word [edi + 6], ax
pop edi
pop esi
pop ebx
leave
ret