Function at 0x6afa40
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
xor ebx, ebx
movzx eax, word [edi + 4]
movzx esi, byte [edi + 6]
mov ebp, eax
mov ecx, eax
push ebp
mov dword [esp + 0x30], ecx
call fcn.006abe90
add esi, 0xffffffef
mov dword [0x76d6d4], ebp
add esp, 4
cmp esi, 0x1b
ja case.0x6afa7f.18
movzx eax, byte [esi + 0x6aff90]
jmp dword [eax*4 + 0x6aff50]
mov eax, dword [esp + 0x30]
mov esi, dword [edi + 8]
mov ebx, dword [eax]
push ebx
test esi, esi
je 0x6afaa1
call fcn.006abcb0
mov dword [eax + 0x14], esi
jmp 0x6aff32
call fcn.006abb00
xor ebx, ebx
jmp 0x6aff32
mov esi, dword [esp + 0x30]
mov eax, dword [edi + 0xc]
mov ebx, dword [edi + 8]
push ebp
push dword [esi + 0x14]
mov dword [esp + 0x34], eax
lea eax, [edi + 0x10]
push dword [esi + 0xc]
push dword [esi + 0x10]
push ebx
push eax
push dword [esi]
call fcn.006a9980
mov edx, dword [esi + 4]
mov ecx, eax
test edx, edx
je 0x6afaea
cmp dword [esp + 0x2c], 0xc
jbe 0x6afaea
mov ecx, dword [ebx + edi + 0x1c]
mov dword [edx + 0xc], ecx
mov ecx, eax
mov eax, dword [esi + 8]
test eax, eax
je 0x6afaf3
mov dword [eax], ecx
xor ebx, ebx
test ebp, ebp
jmp 0x6aff2f
mov ecx, dword [esp + 0x30]
mov eax, dword [edi + 8]
mov edx, dword [ecx + 4]
cmp eax, edx
jbe 0x6afb19
cmp word [esp + 0x2c], bx
mov eax, edx
mov edx, 5
cmove ebp, edx
push eax
lea eax, [edi + 0xc]
push eax
push dword [ecx]
call fcn.006f3c10
add esp, 0xc
mov ebx, dword [edi + 8]
jmp 0x6aff32
mov ecx, dword [esp + 0x30]
mov ebx, dword [edi + 8]
mov edx, dword [ecx + 4]
lea esi, [ebx + 1]
and edx, 0x10000
je 0x6afb4c
lea esi, [ebx*2 + 2]
xor eax, eax
test edx, edx
setne al
cmp esi, dword [ecx + 8]
jbe 0x6afb6b
cmp word [esp + 0x2c], 0
mov eax, 5
cmove ebp, eax
jmp 0x6aff32
push eax
push ebx
lea eax, [edi + 0xc]
push eax
push dword [ecx]
call fcn.006b09a0
mov ebx, dword [edi + 8]
jmp 0x6aff32
mov ecx, dword [esp + 0x30]
lea ebx, [edi + 0xc]
mov eax, dword [edi + 8]
mov edx, dword [ecx + 8]
cmp eax, edx
jbe 0x6afba1
cmp word [esp + 0x2c], 0
mov eax, edx
mov edx, 5
cmove ebp, edx
push eax
push ebx
push dword [ecx]
call fcn.006f3c10
mov ebx, dword [edi + 8]
add esp, 0xc
jmp 0x6aff32
mov eax, dword [esp + 0x30]
mov esi, dword [edi + 8]
mov ebx, dword [eax]
push ebx
test esi, esi
je 0x6afaa1
call fcn.006abcb0
mov dword [eax + 0xc], esi
jmp 0x6aff32
mov eax, dword [esp + 0x30]
mov ebx, dword [eax + 4]
mov ecx, ebx
mov edx, dword [eax + 8]
and ecx, 0xf0
mov esi, dword [eax]
lea eax, [edi + 0xc]
mov dword [esp + 0x24], ecx
mov ecx, dword [edi + 8]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
jne 0x6afccb
mov edi, eax
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov ebx, 0x24
movups xmmword [esi + 0x10], xmm0
mov dword [esi + 0x20], 0
mov edx, dword [edi]
mov dword [esi], edx
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x14]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
movzx eax, word [edi + 0x18]
mov word [esi + 0x18], ax
movzx eax, word [edi + 0x1a]
mov word [esi + 0x1a], ax
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
cmp dword [0x76d6f8], 0
je 0x6afc65
or edx, 0x10000
mov dword [esi], edx
mov eax, dword [esp + 0x10]
cmp eax, 0x24
jbe 0x6afcc2
mov ecx, dword [edi + 0xc]
cmp ecx, ebx
jb 0x6afcc2
cmp dword [esp + 0x14], eax
jb 0x6afcdc
shr edx, 0x10
lea ebx, [esi + 0x24]
and edx, 1
add eax, 0xffffffdc
push edx
push eax
lea eax, [ecx + edi]
push eax
push ebx
call fcn.006b09a0
test dword [esp + 0x1c], 0x80000
mov ebx, dword [esp + 0x10]
mov eax, dword [esi]
je 0x6afcb3
or eax, 0x80000
mov dword [esi + 0xc], 0x24
mov dword [esi], eax
jmp 0x6afcdc
and eax, 0xfff7ffff
mov dword [esi], eax
lea eax, [esi + 0x24]
mov dword [esi + 0xc], eax
jmp 0x6afcdc
mov dword [esi + 0xc], 0
jmp 0x6afcdc
push ebx
push 0
push edx
push esi
push ecx
push eax
call fcn.006affb0
add esp, 0x18
mov ebx, eax
mov eax, dword [esp + 0x14]
cmp ebx, eax
jbe 0x6afcf2
cmp word [esp + 0x2c], 0
mov ecx, 5
cmove ebp, ecx
cmp dword [esp + 0x24], 0
jne 0x6aff32
cmp eax, 8
jb 0x6aff32
push dword [esi + 4]
call fcn.006abd60
mov dword [esi + 4], eax
jmp 0x6aff32
mov eax, dword [esp + 0x30]
mov ecx, dword [edi + 8]
mov ebx, dword [edi + 0xc]
add edi, 0x10
mov edx, dword [eax + 8]
cmp ecx, edx
ja 0x6afd32
cmp word [esp + 0x2c], 0
je 0x6afd3b
mov ecx, edx
mov ebx, edx
mov ebp, 5
cmp ecx, edx
cmova ecx, edx
push ecx
push edi
push dword [eax]
call fcn.006f3c10
add esp, 0xc
jmp 0x6aff32
mov eax, dword [esp + 0x30]
mov ecx, dword [edi + 8]
mov ebx, dword [edi + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [eax]
mov dword [esp + 0x24], eax
cmp ecx, edx
jbe 0x6afd77
cmp word [esp + 0x2c], 0
jne 0x6afd77
mov ecx, edx
mov ebp, 5
push ecx
lea eax, [edi + 0x10]
push eax
push dword [esp + 0x2c]
call fcn.006f3c10
add esp, 0xc
jmp 0x6aff32
mov eax, dword [esp + 0x30]
mov ecx, dword [edi + 8]
mov ebx, dword [edi + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [eax]
mov dword [esp + 0x24], eax
cmp ecx, edx
jbe 0x6afdb3
cmp word [esp + 0x2c], 0
jne 0x6afdb3
mov ecx, edx
mov ebp, 5
push ecx
lea eax, [edi + 0x10]
push eax
push dword [esp + 0x2c]
call fcn.006f3c10
add esp, 0xc
jmp 0x6aff32
mov eax, dword [esp + 0x30]
mov ecx, dword [edi + 8]
mov ebx, dword [edi + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [eax]
mov dword [esp + 0x24], eax
cmp ecx, edx
jbe 0x6afdef
cmp word [esp + 0x2c], 0
jne 0x6afdef
mov ecx, edx
mov ebp, 5
push ecx
lea eax, [edi + 0x10]
push eax
push dword [esp + 0x2c]
call fcn.006f3c10
add esp, 0xc
jmp 0x6aff32
mov eax, dword [esp + 0x30]
mov ecx, dword [edi + 8]
add edi, 0x10
mov edx, dword [eax + 4]
mov esi, dword [eax + 8]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov eax, edx
and eax, 0xf0
je 0x6afe6d
cmp eax, 0x10
je 0x6afe6d
cmp eax, 0x20
jne 0x6aff32
and edx, 0x10000
lea ebx, [ecx + ecx]
cmove ebx, ecx
cmp ebx, esi
jbe 0x6afe4a
lea ebp, [eax - 0x1b]
jmp 0x6aff32
test ecx, ecx
je 0x6aff32
xor eax, eax
test edx, edx
setne al
push eax
lea eax, [ecx - 1]
push eax
push edi
push dword [esp + 0x20]
call fcn.006b09a0
jmp 0x6aff32
push edx
push 0
push esi
push dword [esp + 0x20]
push ecx
push edi
call fcn.006affb0
mov ebx, eax
add esp, 0x18
cmp ebx, esi
jbe 0x6aff32
cmp word [esp + 0x2c], 0
mov eax, 5
cmove ebp, eax
jmp 0x6aff32
mov eax, dword [esp + 0x30]
mov ebx, dword [edi + 0xc]
mov ecx, dword [eax + 4]
mov esi, dword [eax + 8]
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x24], ecx
mov ecx, dword [edi + 8]
add edi, 0x10
and eax, 0xf0
je 0x6afed1
cmp eax, 0x30
jne 0x6aff32
push ecx
push edi
push edx
call fcn.006f3c10
add esp, 0xc
jmp 0x6aff32
push dword [esp + 0x24]
push 0
push esi
push edx
push ecx
push edi
call fcn.006affb0
mov ebx, eax
add esp, 0x18
cmp ebx, esi
jbe 0x6aff32
cmp word [esp + 0x2c], 0
mov eax, 5
cmove ebp, eax
jmp 0x6aff32
mov esi, dword [esp + 0x2c]
mov ecx, dword [edi + 8]
test si, si
jne 0x6aff21
mov eax, dword [esp + 0x30]
mov edx, dword [eax]
test edx, edx
je 0x6aff21
test ecx, ecx
je 0x6aff21
push ecx
lea eax, [edi + 0xc]
push eax
push edx
call fcn.006f3c10
add esp, 0xc
xor ebx, ebx
test si, si
jmp 0x6aff2f
xor ebx, ebx
cmp word [esp + 0x2c], bx
sete bl
test ebp, ebp
je 0x6aff45
push ebp
call fcn.006abe90
add esp, 4
mov dword [0x76d6d4], ebp
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x18
ret