Function at 0x470f70
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov ecx, dword [ebx]
mov ecx, dword [ecx]
push esi
mov esi, eax
movzx eax, byte [ebx + 0x1c]
inc dword [esi + 0x4c]
mov edx, dword [ebx + 4]
not eax
and eax, 1
mov dword [esp + 8], ecx
add ecx, eax
add ecx, dword [ebp + 0x14]
cmp dword [ebp + 0x18], 0
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + 0x4c]
push edi
mov edi, dword [esi + 8]
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], edx
je 0x470fc4
mov ecx, dword [ebp + 0xc]
sub ecx, dword [esp + 0xc]
sub ecx, eax
mov dword [esp + 8], ecx
jmp 0x470fd4
mov edx, dword [esp + 0x1c]
lea eax, [ecx + 1]
add ecx, edx
mov dword [esp + 8], eax
mov dword [esi + 0x4c], ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x470fe1
inc eax
jmp 0x470fe4
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x18], eax
mov eax, edi
call fcn.00440ff0
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 8]
push 5
push ecx
mov dword [ebx + 0x18], eax
mov eax, dword [ebx]
push edx
push eax
push esi
call fcn.00457640
add esp, 0x14
cmp dword [esp + 0x10], 0
je 0x47102c
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov eax, dword [ebx + 8]
push 0
add ecx, edx
push ecx
push eax
push 0x49
push edi
call fcn.00440c90
add esp, 0x14
cmp dword [ebp + 0x18], 0
jne 0x471066
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ecx, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0xc]
add edx, eax
add edx, dword [esp + 0x14]
push edx
mov edx, dword [esi + 8]
push ecx
push 0x1d
push edx
call fcn.00440c90
mov eax, dword [ebp + 0xc]
add esp, 0x14
push eax
mov eax, dword [ebp + 0x14]
call fcn.00456230
add esp, 4
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 8]
push ecx
mov ecx, dword [esp + 0x18]
sub eax, ecx
push eax
add edx, ecx
push edx
push 0x31
push edi
call fcn.00440c90
add esp, 0x14
cmp dword [esp + 0x14], 0
jle 0x4712c1
mov eax, dword [esi + 0x4c]
mov edx, dword [ebx + 4]
add edx, eax
lea ecx, [eax + 1]
mov dword [esi + 0x4c], edx
mov edx, dword [esp + 0xc]
mov eax, edx
sub eax, dword [ebx + 4]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x10]
add eax, ecx
push 0
mov dword [esp + 0x10], eax
push 0
test ecx, ecx
je 0x4710cb
mov eax, dword [esp + 0x10]
add eax, edx
push eax
push 0x2e
jmp 0x4710d1
mov eax, dword [ebx + 8]
push eax
push 0x3b
push edi
call fcn.00440c90
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x1c]
add esp, 0x14
push ecx
push edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
push eax
push 0x2a
push edi
call fcn.00440c90
mov eax, dword [ebx + 0x14]
add esp, 0x14
test eax, eax
jge 0x471102
mov eax, dword [edi + 0x20]
dec eax
mov ecx, dword [edi]
cmp byte [ecx + 0x45], 0
je 0x471115
mov eax, 0x550118
mov dword [esp + 0x10], eax
jmp 0x471124
lea edx, [eax + eax*4]
mov eax, dword [edi + 4]
lea ecx, [eax + edx*4]
mov dword [esp + 0x10], ecx
mov eax, ecx
mov edx, dword [esi]
cmp byte [edx + 0x45], 0
jne 0x47135e
mov ecx, dword [esp + 0xc]
mov edx, dword [ebp + 0x14]
add ecx, edx
mov dword [eax + 8], ecx
mov eax, dword [eax + 0x10]
movzx ecx, word [eax + 6]
mov edx, dword [eax + 0x10]
push ecx
push 0
push edx
mov dword [esp + 0x18], eax
call fcn.004e57c0
mov edx, dword [edi]
add esp, 0xc
cmp byte [edx + 0x45], 0
je 0x47116e
mov ecx, dword [esp + 0xc]
mov eax, 0xfffffffa
call fcn.00441340
jmp 0x4711a4
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 4]
dec eax
lea eax, [eax + eax*4]
cmp byte [ecx + eax*4 + 1], 0
lea eax, [ecx + eax*4]
je 0x471199
mov edx, dword [esp + 0xc]
push edx
push eax
mov eax, 0xfffffffa
mov ecx, edi
call fcn.00441530
add esp, 8
jmp 0x4711a4
mov ecx, dword [esp + 0xc]
mov dword [eax + 0x10], ecx
mov byte [eax + 1], 0xfa
mov edx, dword [esp + 0xc]
movzx ecx, word [edx + 8]
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [ebx]
dec ecx
push esi
call fcn.00471e50
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0x10], eax
mov eax, dword [edi + 0x20]
mov dword [esp + 0x1c], eax
inc eax
push eax
push 0
push eax
push 0x2b
push edi
call fcn.00440c90
add esp, 0x1c
mov eax, edi
call fcn.00440ff0
mov dword [ebx + 0x10], eax
inc dword [esi + 0x4c]
mov edx, dword [ebx + 0x10]
mov eax, dword [esi + 0x4c]
push 0
push edx
push eax
push 0xe
push edi
mov dword [ebx + 0xc], eax
call fcn.00440c90
mov eax, dword [ebx + 8]
add esp, 0x14
push 0
push 0
push eax
push 0x78
push edi
call fcn.00440c90
mov eax, dword [esp + 0x2c]
add esp, 0x14
test eax, eax
je 0x47122a
mov ecx, dword [ebx + 0x18]
push 0
push ecx
push eax
push 0x2e
push edi
call fcn.00440c90
add esp, 0x14
mov edx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
dec edx
mov dword [eax + 0x60], edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [edi + 0x20]
test eax, eax
jge 0x471242
mov eax, ecx
dec eax
mov edx, dword [edi]
cmp byte [edx + 0x45], 0
je 0x471251
mov eax, 0x550118
jmp 0x47125a
mov edx, dword [edi + 4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 8], ecx
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esi + 8]
push eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
push eax
push ecx
push 0x1d
push edx
call fcn.00440c90
mov eax, dword [esp + 0x1c]
add esp, 0x14
push eax
mov eax, dword [esp + 0x20]
call fcn.00456230
mov ecx, dword [edi + 0x20]
mov edx, dword [edi + 0x18]
mov eax, dword [esp + 0x18]
dec ecx
add esp, 4
mov dword [edx + 0x60], ecx
mov ecx, dword [edi + 0x20]
test eax, eax
jge 0x4712a6
mov eax, ecx
dec eax
mov edx, dword [edi]
cmp byte [edx + 0x45], 0
je 0x4712b5
mov eax, 0x550118
jmp 0x4712be
mov edx, dword [edi + 4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 8], ecx
mov al, byte [ebx + 0x1c]
mov ecx, dword [esp + 0x24]
mov edx, dword [ebx + 8]
and al, 1
movzx eax, al
push 0
neg eax
push ecx
sbb eax, eax
push edx
add eax, 0x6e
push eax
push edi
call fcn.00440c90
mov eax, dword [esp + 0x2c]
add esp, 0x14
test eax, eax
je 0x47135e
push 1
push 0
push eax
push 0x8c
push edi
call fcn.00440c90
add esp, 0x14
push 0
mov esi, eax
mov eax, dword [ebx + 8]
push 0
push eax
push 0x69
push edi
call fcn.00440c90
mov ecx, dword [ebx + 8]
add esp, 0x14
push 0
push 0
push ecx
push 0x5f
push edi
call fcn.00440c90
mov edx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
dec edx
add esp, 0x14
mov dword [eax + 0x60], edx
mov ecx, dword [edi + 0x20]
test esi, esi
jge 0x47133c
mov esi, ecx
dec esi
mov edx, dword [edi]
cmp byte [edx + 0x45], 0
je 0x471352
mov eax, 0x550118
mov dword [eax + 8], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 4]
lea eax, [esi + esi*4]
lea eax, [edx + eax*4]
mov dword [eax + 8], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret