Function at 0x40c510
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0
lea ecx, [esi + 0x188]
mov dword [esp + 0x20], ecx
call fcn.00409d10
mov ebx, dword [esp + 0x34]
lea eax, [ebx + 1]
mov dword [esp + 0x10], eax
cmp ebx, dword [esi + 0x120]
jge 0x40c8a2
mov ecx, dword [esi + 0x11c]
mov ecx, dword [ecx + ebx*4]
mov dword [esp + 0x14], ecx
mov ebp, dword [ecx + 0x1c]
test ebp, ebp
jle 0x40c79b
test byte [esi + 0xe4], 0x40
je 0x40c79b
mov edx, dword [ecx + 4]
mov ecx, dword [esi + 0x164]
xor eax, eax
push 0
mov ax, word [edx + 4]
lea eax, [eax + eax*8]
mov eax, dword [ecx + eax*4 + 0x10]
mov ecx, esi
push eax
call fcn.004113e0
mov ecx, dword [esi + 0xf0]
mov edi, dword [esi + 0xec]
sub ecx, eax
cmp edi, ecx
jg 0x40c59a
mov edi, ecx
push 1
push 0
push ebp
push ebx
mov ecx, esi
call fcn.00411530
cmp eax, edi
jl 0x40c797
push 1
push edi
push ebx
mov ecx, esi
call fcn.004114b0
lea ecx, [ebp - 1]
cmp ecx, eax
jge 0x40c5c7
mov dword [esp + 0x18], ecx
jmp 0x40c5cd
mov dword [esp + 0x18], eax
mov ecx, eax
test ecx, ecx
jle 0x40c5f9
jmp 0x40c5d7
mov ecx, dword [esp + 0x18]
push 1
push 0
push ecx
push ebx
mov ecx, esi
call fcn.00411530
cmp eax, edi
jl 0x40c5f5
mov eax, dword [esp + 0x18]
dec eax
test eax, eax
mov dword [esp + 0x18], eax
jg 0x40c5d3
mov ecx, dword [esp + 0x18]
lea eax, [ebp - 1]
xor edi, edi
test eax, eax
jle 0x40c665
xor edx, edx
cmp edi, ecx
jg 0x40c665
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
mov ax, word [edx + eax]
cmp ax, 0xa
je 0x40c62c
cmp ax, 0xd
je 0x40c62c
inc edi
lea eax, [ebp - 1]
add edx, 6
cmp edi, eax
jge 0x40c665
jmp 0x40c604
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, esi
call fcn.0040cd30
test eax, eax
je 0x40c8a2
mov eax, dword [esp + 0x14]
inc edi
sub ebp, edi
push 0
mov ecx, dword [eax + 4]
mov eax, dword [esi + 0x11c]
lea edx, [edi + edi*2]
push ebp
lea edx, [ecx + edx*2]
mov ecx, dword [eax + ebx*4 + 4]
push edx
push 0
jmp 0x40c7f7
lea edi, [ecx - 1]
mov dword [esp + 0x24], 0xffffffff
test edi, edi
jle 0x40c72e
lea ebx, [edi + edi*2]
lea ecx, [edi + 1]
shl ebx, 1
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 4]
mov ax, word [ebx + ecx]
mov word [esp + 0x28], ax
mov eax, dword [esp + 0x20]
cmp eax, ebp
jge 0x40c6a8
mov dx, word [ebx + ecx + 6]
mov word [esp + 0x18], dx
jmp 0x40c6b0
mov dword [esp + 0x18], 0
xor eax, eax
mov ax, word [ebx + ecx + 2]
mov ecx, dword [esi + 0x160]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [ecx + eax*4]
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
mov dword [esp + 0x2c], edx
jne 0x40c6d7
mov dword [esp + 0x24], edi
mov ecx, esi
call fcn.0040f780
cmp eax, 5
jle 0x40c6ef
push 0
mov ecx, esi
call fcn.00412940
push eax
jmp 0x40c6ff
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x48]
shr eax, 6
and eax, 1
push eax
push 0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
push eax
push ecx
call fcn.0040aef0
add esp, 0x10
test eax, eax
jne 0x40c734
mov edx, dword [esp + 0x20]
dec edi
dec edx
sub ebx, 6
test edi, edi
mov dword [esp + 0x20], edx
jg 0x40c684
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x24]
jmp 0x40c738
mov ebx, dword [esp + 0x34]
test edi, edi
jle 0x40c797
mov edx, dword [esp + 0x10]
mov ecx, esi
push edx
call fcn.0040cd30
test eax, eax
je 0x40c88f
mov eax, dword [esi + 0x11c]
inc edi
sub ebp, edi
mov ecx, dword [eax + ebx*4 + 4]
push ebp
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x18]
push edi
call fcn.0040b240
mov eax, dword [esp + 0x14]
lea edx, [edi + edi*2]
push 0
push ebp
mov ecx, dword [eax + 4]
lea edx, [ecx + edx*2]
mov ecx, dword [esp + 0x3c]
push edx
push 0
call fcn.0040b2c0
mov eax, dword [esp + 0x10]
inc ebx
mov dword [esp + 0x34], ebx
inc eax
jmp 0x40c531
mov ecx, dword [esp + 0x14]
lea eax, [ebp - 1]
xor edi, edi
test eax, eax
jle 0x40c816
mov edx, dword [ecx + 4]
mov ax, word [edx]
cmp ax, 0xa
je 0x40c7c3
cmp ax, 0xd
je 0x40c7c3
inc edi
lea eax, [ebp - 1]
add edx, 6
cmp edi, eax
jge 0x40c816
jmp 0x40c7a7
mov eax, dword [esp + 0x10]
mov ecx, esi
push eax
call fcn.0040cd30
test eax, eax
je 0x40c8a2
mov edx, dword [esp + 0x14]
inc edi
sub ebp, edi
push 0
mov eax, dword [edx + 4]
mov edx, dword [esi + 0x11c]
lea ecx, [edi + edi*2]
push ebp
lea ecx, [eax + ecx*2]
push ecx
mov ecx, dword [edx + ebx*4 + 4]
push 0
call fcn.0040b2c0
mov ecx, dword [esp + 0x14]
push ebp
push edi
call fcn.0040b240
mov eax, dword [esp + 0x10]
inc ebx
mov dword [esp + 0x34], ebx
inc eax
jmp 0x40c531
test ebp, ebp
je 0x40c84c
mov edx, dword [ecx + 4]
lea eax, [ebp + ebp*2]
mov ax, word [edx + eax*2 - 6]
cmp ax, 0xa
je 0x40c832
cmp ax, 0xd
jne 0x40c840
mov edx, dword [esp + 0x10]
mov edi, dword [esi + 0x120]
cmp edx, edi
jge 0x40c886
cmp ax, 0xa
je 0x40c8a2
cmp ax, 0xd
je 0x40c8a2
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 0x120]
cmp eax, edx
jge 0x40c8a2
mov edx, dword [esi + 0x11c]
push 0
mov eax, dword [edx + ebx*4 + 4]
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 4]
push edx
push eax
push ebp
call fcn.0040b2c0
mov eax, dword [esp + 0x10]
mov ecx, esi
push eax
push eax
call fcn.0040cc80
jmp 0x40c535
inc ebx
mov ecx, esi
push ebx
call fcn.0040cd30
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
call dword [eax + 0xc]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
call dword [edx + 0xc]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4