Function at 0x40c350
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x84
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x94]
push ebx
mov ebx, dword [esp + 0x8c]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ecx
push edx
push ebx
call dword [0x483098]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x58]
add eax, 3
add ecx, 3
push edx
push 0x3c
and al, 0xfc
and ecx, 0xfffffffc
push 6
push ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
call dword [0x48304c]
push eax
call dword [0x483088]
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
lea ecx, [eax + eax]
lea eax, [edx + edx]
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x58]
push ecx
mov dword [esp + 0x60], eax
call dword [0x483084]
mov edi, eax
test edi, edi
mov dword [esp + 0x18], edi
jne 0x40c3ea
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x84
ret 0x14
push ebx
call dword [0x483064]
mov ebp, eax
test ebp, ebp
jne 0x40c40e
push edi
call dword [0x483100]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x84
ret 0x14
mov edx, dword [esp + 0x14]
imul edx, dword [esp + 0x10]
shl edx, 2
push edx
call fcn.004785c2
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x24], esi
jne 0x40c44b
push edi
call dword [0x483100]
push ebp
call dword [0x483068]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x84
ret 0x14
mov edx, dword [esp + 0x14]
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
push 0
push 0
mov dword [esp + 0x34], 0x28
lea ecx, [eax + eax]
lea eax, [esp + 0x24]
mov dword [esp + 0x38], ecx
push eax
neg edx
lea ecx, [esp + 0x38]
push 0
shl edx, 1
push ecx
push ebp
mov dword [esp + 0x4c], edx
mov word [esp + 0x50], 1
mov word [esp + 0x52], 0x20
mov dword [esp + 0x54], 0
call dword [0x483058]
test eax, eax
mov dword [esp + 0x28], eax
jne 0x40c4db
mov edx, dword [esp + 0x18]
push edx
call dword [0x483100]
push ebp
call dword [0x483068]
mov eax, dword [esp + 0x1c]
push eax
call fcn.004785eb
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret 0x14
mov edi, dword [0x483060]
push eax
push ebp
call edi
mov ecx, dword [esp + 0x18]
push ecx
push ebp
call edi
push ebx
call dword [0x4830d4]
push eax
push ebp
call dword [0x483028]
push ebx
call dword [0x4830f4]
push eax
push ebp
call dword [0x483078]
push ebx
call dword [0x4830f8]
push eax
push ebp
call dword [0x483080]
push ebx
call dword [0x4830a0]
push eax
push ebp
call dword [0x483074]
push 3
push ebp
call dword [0x483094]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xa0]
push 0xcc0020
push edx
mov edx, dword [esp + 0xa4]
push eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push edx
push ebx
neg eax
push eax
push ecx
push 0
push 0
push ebp
call dword [0x48306c]
mov edx, dword [esp + 0xa8]
mov eax, dword [esp + 0xa4]
push edx
push eax
push 0
push 0
push ebp
call dword [0x483070]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], 0
test edx, edx
jbe 0x40c66e
mov edi, dword [esp + 0x30]
xor ebx, ebx
test eax, eax
jbe 0x40c64f
jmp 0x40c5b4
mov edi, dword [esp + 0x30]
xor eax, eax
xor edx, edx
mov al, byte [ecx + edi*4 + 6]
mov dl, byte [ecx + edi*4 + 2]
add eax, edx
xor edx, edx
mov dl, byte [ecx + 6]
add ecx, 8
add eax, edx
xor edx, edx
mov dl, byte [ecx - 6]
add esi, 4
add eax, edx
cdq
and edx, 3
add eax, edx
xor edx, edx
sar eax, 2
mov byte [esi - 2], al
mov edi, dword [esp + 0x30]
xor eax, eax
mov al, byte [ecx + edi*4 - 3]
mov dl, byte [ecx + edi*4 - 7]
add eax, edx
xor edx, edx
mov dl, byte [ecx - 3]
add eax, edx
xor edx, edx
mov dl, byte [ecx - 7]
add eax, edx
cdq
and edx, 3
add eax, edx
xor edx, edx
sar eax, 2
mov byte [esi - 3], al
mov edi, dword [esp + 0x30]
xor eax, eax
mov al, byte [ecx + edi*4 - 4]
mov dl, byte [ecx + edi*4 - 8]
add eax, edx
xor edx, edx
mov dl, byte [ecx - 4]
add eax, edx
xor edx, edx
mov dl, byte [ecx - 8]
add eax, edx
cdq
and edx, 3
add eax, edx
sar eax, 2
mov byte [esi - 4], al
mov eax, dword [esp + 0x10]
inc ebx
cmp ebx, eax
jb 0x40c5b0
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x20]
lea ecx, [ecx + edi*4]
inc ebx
cmp ebx, edx
mov dword [esp + 0x20], ebx
jb 0x40c5a4
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x98]
mov ecx, edx
push 0
neg ecx
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x30]
push ecx
push esi
push edx
push 0
push 0
push 0
push edx
mov edx, dword [esp + 0xc0]
mov dword [esp + 0x50], eax
push eax
mov eax, dword [esp + 0xc0]
push edx
push eax
push ebx
call dword [0x48309c]
push ebp
call dword [0x483068]
mov ecx, dword [esp + 0x28]
mov edi, dword [0x483100]
push ecx
call edi
mov edx, dword [esp + 0x18]
push edx
call edi
push esi
call fcn.004785eb
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret 0x14