Function at 0x470220
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
push edi
mov eax, dword [ebx]
movzx esi, byte [ebx + 0x18]
mov edi, dword [ecx + 8]
not esi
and esi, 1
mov eax, dword [eax]
inc dword [ecx + 0x48]
mov ebp, dword [ecx + 0x48]
mov ecx, dword [ebx + 4]
lea edx, [eax + esi]
mov dword [esp + 0x10], ecx
add edx, dword [esp + 0x34]
cmp dword [esp + 0x38], 0
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ebp
je 0x470274
mov ebp, dword [esp + 0x30]
sub ebp, eax
sub ebp, esi
jmp 0x47027e
mov eax, dword [esp + 0x14]
inc ebp
add eax, edx
mov dword [ecx + 0x48], eax
push 1
push ebp
push dword [ebx]
push ecx
call fcn.00482010
add esp, 0x10
test esi, esi
je 0x4702a5
mov eax, dword [esp + 0x28]
add eax, ebp
push eax
push dword [ebx + 8]
push 0x4a
push edi
call fcn.004a3dc0
add esp, 0x10
cmp dword [esp + 0x38], 0
jne 0x4702c9
mov eax, dword [esp + 0x28]
push dword [esp + 0x34]
add eax, ebp
add eax, esi
push eax
push dword [esp + 0x38]
push dword [esp + 0x30]
call fcn.00482a80
add esp, 0x10
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x38], ecx
cmp dword [eax + 0x54], ecx
jg 0x4702eb
push 1
push edi
call fcn.004650f0
add esp, 8
test eax, eax
jne 0x470324
mov ecx, dword [esp + 0x38]
mov eax, dword [edi + 4]
lea ecx, [ecx + ecx*4]
mov edx, dword [esp + 0x10]
inc dword [edi + 0x20]
mov word [eax + ecx*4], 0x31
lea ecx, [eax + ecx*4]
lea eax, [edx + ebp]
mov byte [ecx + 3], 0
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x18]
sub eax, edx
mov dword [ecx + 0x10], 0
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x14]
mov dword [ecx + 0xc], eax
jmp 0x470328
mov edx, dword [esp + 0x10]
test edx, edx
jle 0x4704d5
mov edx, dword [esp + 0x24]
mov ecx, dword [edx + 0x48]
lea eax, [ecx + 1]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 4]
add eax, ecx
mov dword [edx + 0x48], eax
mov eax, dword [esp + 0x28]
mov ecx, eax
sub ecx, dword [ebx + 4]
add ecx, esi
mov dword [esp + 0x1c], ecx
test esi, esi
je 0x470360
add eax, ebp
push eax
push 0x2e
jmp 0x470365
push dword [ebx + 8]
push 0x3b
push edi
call fcn.004a3d50
add esp, 0xc
mov dword [esp + 0x28], eax
push dword [ebx + 4]
push ebp
push dword [esp + 0x20]
push 0x2a
push edi
call fcn.004a3e30
mov ecx, dword [ebx + 0x14]
add esp, 0x14
test ecx, ecx
jns 0x470390
mov ecx, dword [edi + 0x20]
dec ecx
mov eax, dword [edi]
cmp byte [eax + 0x41], 0
je 0x47039f
mov ecx, 0x4e50bc
jmp 0x4703a8
mov eax, dword [edi + 4]
lea ecx, [ecx + ecx*4]
lea ecx, [eax + ecx*4]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x38], ecx
mov eax, dword [esi]
cmp byte [eax + 0x41], 0
jne 0x47054f
mov eax, dword [esp + 0x1c]
add eax, dword [esp + 0x34]
mov dword [ecx + 8], eax
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0x34], ecx
movzx eax, word [ecx + 6]
push eax
push 0
push dword [ecx + 0x10]
call sub.MSVCRT.dll_memset
mov edx, dword [edi + 4]
add esp, 0xc
mov ecx, dword [edi]
test edx, edx
je 0x470419
cmp byte [ecx + 0x41], 0
jne 0x470419
mov eax, dword [edi + 0x20]
dec eax
lea eax, [eax + eax*4]
push dword [edx + eax*4 + 0x10]
lea esi, [edx + eax*4]
movsx eax, byte [esi + 1]
push eax
push ecx
call fcn.00452320
mov eax, dword [esp + 0x40]
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xfa
mov esi, dword [esp + 0x30]
jmp 0x470429
push dword [esp + 0x34]
push 0xfffffffffffffffa
push ecx
call fcn.00452320
mov eax, dword [esp + 0x40]
movzx eax, word [eax + 8]
add esp, 0xc
dec eax
push eax
push dword [esp + 0x14]
push dword [ebx]
push esi
call fcn.00466570
mov ecx, dword [esp + 0x48]
mov dword [ecx + 0x10], eax
mov eax, dword [edi + 0x20]
mov dword [esp + 0x34], eax
inc eax
push eax
push 0
push eax
push 0x2b
push edi
call fcn.004a3e30
push edi
call fcn.004ab090
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x48]
inc eax
mov dword [esi + 0x48], eax
push dword [ebx + 0x10]
mov dword [ebx + 0xc], eax
push eax
push 0xf
push edi
call fcn.004a3dc0
push dword [ebx + 8]
push 0x78
push edi
call fcn.004a3d50
mov edx, dword [edi + 0x20]
add esp, 0x44
mov eax, dword [esp + 0x28]
cmp edx, eax
jbe 0x47049b
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov dword [eax + ecx*4 + 8], edx
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
dec ecx
mov dword [eax + 0x58], ecx
push dword [ebx + 4]
push dword [esp + 0x1c]
push ebp
push esi
call fcn.00482a80
mov edx, dword [edi + 0x20]
add esp, 0x10
mov eax, dword [esp + 0x24]
cmp edx, eax
jbe 0x4704cb
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov dword [eax + ecx*4 + 8], edx
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
dec ecx
mov dword [eax + 0x58], ecx
mov al, byte [ebx + 0x18]
push dword [esp + 0x14]
not al
push dword [ebx + 8]
movzx eax, al
and eax, 1
or eax, 0x6e
push eax
push edi
call fcn.004a3dc0
mov ecx, dword [esp + 0x3c]
add esp, 0x10
mov eax, dword [ecx + 8]
test eax, eax
je 0x47054f
mov ecx, dword [ecx + 0xc]
test ecx, ecx
je 0x470509
lea eax, [ecx + 1]
push 0xffffffffffffffff
push 0
push eax
push 0x8c
push edi
call fcn.004a3e30
push dword [ebx + 8]
mov esi, eax
push 0x6a
push edi
call fcn.004a3d50
push dword [ebx + 8]
push 0x62
push edi
call fcn.004a3d50
mov edx, dword [edi + 0x20]
add esp, 0x2c
cmp edx, esi
jbe 0x470545
mov eax, dword [edi + 4]
lea ecx, [esi + esi*4]
mov dword [eax + ecx*4 + 8], edx
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
dec ecx
mov dword [eax + 0x58], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret