Function at 0x666196c0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x4c
mov ebp, dword [eax + 8]
movzx eax, byte [edx + 0x20]
mov edx, dword [edx]
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x28], ecx
and eax, 1
mov ecx, dword [edx]
mov byte [esp + 0x2c], al
xor eax, 1
movzx eax, al
mov dword [esp + 0x34], eax
add eax, ecx
add eax, dword [esp + 0x68]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x1c], eax
test edi, edi
je 0x66619a30
mov eax, dword [esp + 0x60]
sub eax, edi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x66619a20
add eax, 1
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x38]
mov ecx, dword [esp + 0x14]
sub eax, 1
cmp dword [esp + 0x64], 1
mov dword [ebx + 0x38], eax
mov dword [esi + 0x18], eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 5
mov dword [esp + 4], eax
mov eax, dword [esp + 0x64]
mov dword [esp], eax
mov eax, ebx
call fcn.666177a0
cmp byte [esp + 0x2c], 0
je 0x66619a50
test edi, edi
jne 0x66619776
mov eax, dword [esp + 0x68]
test eax, eax
jg 0x666198b0
mov eax, dword [esp + 0x1c]
test eax, eax
jg 0x666198e4
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x20], 0
add eax, edi
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x666199b8
mov dword [esp + 4], 0
mov eax, dword [ebp + 0x6c]
mov edx, 0x31
mov ecx, dword [esp + 0x18]
mov edi, dword [esi + 8]
add eax, 4
mov dword [esp], eax
mov eax, ebp
call fcn.6659fdb0
mov dword [esp], 0
mov ecx, edi
mov eax, ebp
mov dword [esp + 4], 0
mov edx, 0x21
call fcn.6659fdb0
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x1c]
mov ecx, edi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov edx, 0x26
mov dword [esp], 0
mov dword [esp + 4], eax
mov eax, ebp
call fcn.665a0980
mov dword [esp + 4], 0
mov ecx, edi
mov edx, 0x7d
mov dword [esp], 0
mov dword [esp + 0x18], eax
mov eax, ebp
call fcn.6659fdb0
mov edi, dword [esp + 0x20]
test edi, edi
je 0x666199b8
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
movzx edx, byte [esi + 0x20]
mov ecx, dword [esi + 8]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
and edx, 1
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
sub edx, 0x7b
movzx edx, dl
mov dword [esp], eax
mov eax, ebp
call fcn.665a0980
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x666198a7
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x66619ca8
mov edx, dword [esp + 0x18]
test edx, edx
jns 0x66619892
mov ebx, dword [ebp + 0x6c]
sub ebx, 1
mov dword [esp + 0x18], ebx
mov ecx, dword [ebp]
mov edx, 0x666b004c
cmp byte [ecx + 0x53], 0
je 0x66619c90
mov dword [edx + 8], eax
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [esp + 0x68]
mov edx, dword [esp + 0x14]
add edx, dword [esp + 0x30]
add edx, dword [esp + 0x34]
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x60]
mov dword [esp], edx
mov edx, 0x4c
mov dword [esp + 4], edi
call fcn.6659fdb0
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x66619782
mov ecx, dword [ebx + 8]
mov eax, dword [esi + 0x24]
mov edi, dword [esi + 4]
mov dword [esp + 0x38], ecx
mov ecx, dword [ebx + 0x2c]
add ecx, 1
mov dword [esp + 0x20], ecx
mov dword [ebx + 0x2c], ecx
test eax, eax
je 0x66619921
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 0x1c]
movzx ecx, byte [eax + 4]
mov dword [esp], 0
mov dword [esp + 4], ecx
mov ecx, dword [eax]
mov eax, ebx
call fcn.666177a0
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
lea ecx, [eax + edi]
mov eax, dword [esp + 0x24]
mov dword [esp + 4], edx
mov edx, 0x5c
sub eax, edi
mov dword [esp], eax
mov eax, dword [esp + 0x38]
call fcn.6659fdb0
mov eax, dword [ebx + 0x2c]
lea edi, [eax + 1]
mov dword [esp + 0x38], edi
mov edi, dword [esi + 4]
add eax, edi
cmp byte [esp + 0x2c], 0
mov dword [esp + 0x3c], edi
mov dword [ebx + 0x2c], eax
jne 0x66619a80
mov ecx, dword [esp + 0x14]
mov edi, dword [ebp + 0x6c]
add ecx, dword [esp + 0x30]
cmp edi, dword [ebp + 0x70]
jge 0x66619d00
mov edx, dword [ebp + 0x68]
lea eax, [edi + 1]
mov dword [ebp + 0x6c], eax
lea eax, [edi + edi*4]
lea eax, [edx + eax*4]
mov dword [eax + 4], ecx
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax], 0x14
mov eax, dword [esp + 0x3c]
jmp 0x66619ac0
mov edx, dword [ebx + 0x2c]
mov eax, dword [esi + 0x24]
mov ecx, dword [ebx + 8]
mov edi, dword [esi + 4]
add edx, 1
mov dword [esp + 0x30], ecx
mov dword [esp + 0x20], edx
mov dword [ebx + 0x2c], edx
test eax, eax
je 0x666199f5
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 0x1c]
movzx ecx, byte [eax + 4]
mov dword [esp], 0
mov dword [esp + 4], ecx
mov ecx, dword [eax]
mov eax, ebx
call fcn.666177a0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov edx, 0x5c
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
add ecx, edi
sub eax, edi
mov dword [esp], eax
mov eax, dword [esp + 0x30]
call fcn.6659fdb0
jmp 0x6661983b
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 8]
mov dword [esp + 0x18], eax
jmp 0x6661972c
mov eax, dword [ebx + 0x2c]
lea ecx, [eax + 1]
add eax, dword [esp + 0x24]
mov dword [esp + 0x14], ecx
mov dword [ebx + 0x2c], eax
jmp 0x66619716
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x30]
mov edx, 0x79
mov dword [esp + 4], 0
mov dword [esp], eax
mov ecx, dword [esi + 8]
mov eax, ebp
call fcn.6659fdb0
jmp 0x66619766
mov ecx, dword [esi + 8]
mov edi, dword [ebp + 0x6c]
cmp edi, dword [ebp + 0x70]
jge 0x66619cd8
mov edx, dword [ebp + 0x68]
lea eax, [edi + 1]
mov dword [ebp + 0x6c], eax
lea eax, [edi + edi*4]
lea eax, [edx + eax*4]
mov dword [eax + 4], ecx
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax], 0x72
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov edx, 0x57
mov ecx, dword [esp + 0x38]
mov dword [esp], eax
mov eax, ebp
call fcn.6659fdb0
mov eax, dword [esi + 0x14]
test eax, eax
jns 0x66619ae8
mov eax, dword [ebp + 0x6c]
sub eax, 1
mov edx, dword [ebp]
mov dword [esp + 0x2c], 0x666b004c
cmp byte [edx + 0x53], 0
jne 0x66619b06
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0x68]
lea eax, [eax + edx*4]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx]
cmp byte [eax + 0x53], 0
jne 0x666198a7
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x3c]
add eax, dword [esp + 0x34]
add eax, dword [esp + 0x68]
mov dword [ecx + 8], eax
mov ecx, dword [ecx + 0x10]
movzx edx, word [ecx + 6]
mov eax, dword [ecx + 0x10]
mov dword [esp + 4], 0
mov dword [esp + 0x34], ecx
mov dword [esp + 8], edx
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov ecx, dword [esp + 0x34]
mov edx, 0xffffffff
mov eax, ebp
mov dword [esp], 0xfffffff7
call fcn.6659aa70
mov ecx, dword [esp + 0x34]
movzx edx, word [ecx + 6]
movzx eax, word [ecx + 8]
mov ecx, dword [esp + 0x1c]
sub eax, edx
mov edx, dword [esi]
sub eax, 1
mov dword [esp], eax
mov eax, ebx
call fcn.665b58d0
mov ecx, dword [esp + 0x2c]
mov edx, 0x10
mov dword [ecx + 0x10], eax
mov eax, dword [ebp + 0x6c]
mov dword [esp], 0
lea ecx, [eax + 1]
mov dword [esp + 0x2c], eax
mov eax, ebp
mov dword [esp + 4], ecx
call fcn.6659fdb0
mov eax, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x2c]
mov edx, 0xc
sub eax, 1
add ecx, 1
mov dword [ebx + 0x38], eax
mov dword [esi + 0x10], eax
mov dword [ebx + 0x2c], ecx
mov dword [esi + 0xc], ecx
mov dword [esp], eax
mov eax, ebp
mov dword [esp + 4], 0
call fcn.6659fdb0
mov ecx, dword [esi + 8]
mov edx, 0x8d
mov eax, ebp
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.6659fdb0
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x66619cb0
mov eax, dword [ebp + 0x6c]
mov ecx, dword [ebp]
test edi, edi
lea edx, [eax - 1]
cmovs edi, edx
cmp byte [ecx + 0x53], 0
mov edx, 0x666b004c
jne 0x66619c26
mov edx, dword [ebp + 0x68]
lea ecx, [edi + edi*4]
lea edx, [edx + ecx*4]
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
mov dword [edx + 8], eax
mov edx, dword [esi + 4]
mov eax, dword [ebx + 8]
mov dword [esp], edi
mov dword [esp + 4], edx
mov edx, 0x4c
call fcn.6659fdb0
mov edi, dword [esp + 0x2c]
mov eax, dword [ebp + 0x6c]
mov ecx, dword [ebp]
test edi, edi
lea edx, [eax - 1]
cmovns edx, edi
cmp byte [ecx + 0x53], 0
mov edi, edx
mov edx, 0x666b004c
jne 0x66619c70
mov edx, dword [ebp + 0x68]
lea ecx, [edi + edi*4]
lea edx, [edx + ecx*4]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x6661982f
jmp 0x666197a4
mov ebx, dword [esp + 0x18]
mov edx, dword [ebp + 0x68]
lea ecx, [ebx + ebx*4]
lea edx, [edx + ecx*4]
jmp 0x666198a4
mov eax, dword [ebp + 0x6c]
jmp 0x66619880
mov eax, dword [esi + 0x18]
mov ecx, dword [esp + 0x18]
mov edx, 0x14
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, ebp
call fcn.6659fdb0
jmp 0x66619c04
mov dword [esp + 4], 0
mov edx, 0x72
mov eax, ebp
mov dword [esp], 0
call fcn.6659fd40
mov edi, eax
mov eax, dword [esi + 4]
jmp 0x66619ac0
mov dword [esp + 4], 0
mov edx, 0x14
mov eax, ebp
mov dword [esp], 0
call fcn.6659fd40
mov edi, eax
mov eax, dword [esi + 4]
jmp 0x66619ac0