Function at 0x405550
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, ecx
push 0
lea ecx, [edi + 0x20c]
mov dword [esp + 0x20], ecx
call fcn.00404290
mov ebx, dword [esp + 0x2c]
lea eax, [ebx + 1]
mov dword [esp + 0x10], eax
cmp ebx, dword [edi + 0x8c]
jge 0x40589a
mov ecx, dword [edi + 0x88]
mov ecx, dword [ecx + ebx*4]
mov dword [esp + 0x14], ecx
mov ebp, dword [ecx + 0x1c]
test ebp, ebp
jle 0x4057a6
test byte [edi + 0x68], 0x40
je 0x4057a6
mov edx, dword [ecx + 4]
mov ecx, dword [edi + 0x1f0]
xor eax, eax
push 0
mov ax, word [edx + 4]
lea eax, [eax + eax*4]
mov eax, dword [ecx + eax*4 + 8]
mov ecx, edi
push eax
call fcn.00408290
mov ecx, dword [edi + 0x74]
mov esi, dword [edi + 0x70]
sub ecx, eax
cmp esi, ecx
jg 0x4055d1
mov esi, ecx
push 1
push 0
push ebp
push ebx
mov ecx, edi
call fcn.00408370
cmp eax, esi
jl 0x4057a2
push 1
push esi
push ebx
mov ecx, edi
call fcn.004082f0
lea ecx, [ebp - 1]
cmp ecx, eax
jge 0x4055fe
mov dword [esp + 0x18], ecx
jmp 0x405604
mov dword [esp + 0x18], eax
mov ecx, eax
test ecx, ecx
jle 0x405630
jmp 0x40560e
mov ecx, dword [esp + 0x18]
push 1
push 0
push ecx
push ebx
mov ecx, edi
call fcn.00408370
cmp eax, esi
jl 0x40562c
mov eax, dword [esp + 0x18]
dec eax
test eax, eax
mov dword [esp + 0x18], eax
jg 0x40560a
mov ecx, dword [esp + 0x18]
lea eax, [ebp - 1]
xor esi, esi
test eax, eax
jle 0x40569c
xor edx, edx
cmp esi, ecx
jg 0x40569c
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
mov ax, word [edx + eax]
cmp ax, 0xa
je 0x405663
cmp ax, 0xd
je 0x405663
inc esi
lea eax, [ebp - 1]
add edx, 6
cmp esi, eax
jge 0x40569c
jmp 0x40563b
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, edi
call fcn.00405c90
test eax, eax
je 0x40589a
mov eax, dword [esp + 0x14]
inc esi
sub ebp, esi
push 0
mov ecx, dword [eax + 4]
mov eax, dword [edi + 0x88]
lea edx, [esi + esi*2]
push ebp
lea edx, [ecx + edx*2]
mov ecx, dword [eax + ebx*4 + 4]
push edx
push 0
jmp 0x405802
lea esi, [ecx - 1]
mov dword [esp + 0x20], 0xffffffff
test esi, esi
jle 0x405739
lea ebx, [esi + esi*2]
lea ecx, [esi + 1]
shl ebx, 1
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 4]
mov ax, word [ebx + ecx]
mov word [esp + 0x24], ax
mov eax, dword [esp + 0x18]
cmp eax, ebp
jge 0x4056da
mov dx, word [ebx + ecx + 6]
jmp 0x4056dc
xor edx, edx
xor eax, eax
mov ax, word [ebx + ecx + 2]
lea ecx, [eax + eax*4]
shl ecx, 4
sub ecx, eax
mov eax, dword [edi + 0x1ec]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x20]
cmp ecx, 0xffffffff
jne 0x405701
mov dword [esp + 0x20], esi
mov eax, dword [eax + 0xa4]
mov ecx, dword [esp + 0x24]
shr eax, 6
and eax, 1
push eax
push edx
push ecx
call fcn.00402fd0
add esp, 0xc
test eax, eax
jne 0x40573f
mov ecx, dword [esp + 0x18]
dec esi
dec ecx
sub ebx, 6
test esi, esi
mov dword [esp + 0x18], ecx
jg 0x4056bb
test eax, eax
jne 0x40573f
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x20]
jmp 0x405743
mov ebx, dword [esp + 0x2c]
test esi, esi
jle 0x4057a2
mov edx, dword [esp + 0x10]
mov ecx, edi
push edx
call fcn.00405c90
test eax, eax
je 0x40589a
mov eax, dword [edi + 0x88]
inc esi
sub ebp, esi
mov ecx, dword [eax + ebx*4 + 4]
push ebp
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x18]
push esi
call fcn.00403130
mov eax, dword [esp + 0x14]
lea edx, [esi + esi*2]
push 0
push ebp
mov ecx, dword [eax + 4]
lea edx, [ecx + edx*2]
mov ecx, dword [esp + 0x34]
push edx
push 0
call fcn.004031b0
mov eax, dword [esp + 0x10]
inc ebx
mov dword [esp + 0x2c], ebx
inc eax
jmp 0x405571
mov ecx, dword [esp + 0x14]
lea eax, [ebp - 1]
xor esi, esi
test eax, eax
jle 0x405821
mov edx, dword [ecx + 4]
mov ax, word [edx]
cmp ax, 0xa
je 0x4057ce
cmp ax, 0xd
je 0x4057ce
inc esi
lea eax, [ebp - 1]
add edx, 6
cmp esi, eax
jge 0x405821
jmp 0x4057b2
mov eax, dword [esp + 0x10]
mov ecx, edi
push eax
call fcn.00405c90
test eax, eax
je 0x40589a
mov edx, dword [esp + 0x14]
inc esi
sub ebp, esi
push 0
mov eax, dword [edx + 4]
mov edx, dword [edi + 0x88]
lea ecx, [esi + esi*2]
push ebp
lea ecx, [eax + ecx*2]
push ecx
mov ecx, dword [edx + ebx*4 + 4]
push 0
call fcn.004031b0
mov ecx, dword [esp + 0x14]
push ebp
push esi
call fcn.00403130
mov eax, dword [esp + 0x10]
inc ebx
mov dword [esp + 0x2c], ebx
inc eax
jmp 0x405571
test ebp, ebp
je 0x405857
mov edx, dword [ecx + 4]
lea eax, [ebp + ebp*2]
mov ax, word [edx + eax*2 - 6]
cmp ax, 0xa
je 0x40583d
cmp ax, 0xd
jne 0x40584b
mov edx, dword [esp + 0x10]
mov esi, dword [edi + 0x8c]
cmp edx, esi
jge 0x405891
cmp ax, 0xa
je 0x40589a
cmp ax, 0xd
je 0x40589a
mov eax, dword [esp + 0x10]
mov edx, dword [edi + 0x8c]
cmp eax, edx
jge 0x40589a
mov edx, dword [edi + 0x88]
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.004031b0
mov eax, dword [esp + 0x10]
mov ecx, edi
push eax
push eax
call fcn.00405bf0
jmp 0x405575
inc ebx
mov ecx, edi
push ebx
call fcn.00405c90
mov ecx, dword [esp + 0x1c]
call fcn.00403680
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4