Function at 0x6ebec0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x3c]
cmp ecx, dword [esi + 0x3c]
push edi
je 0x6ebede
or eax, 0xffffffff
mov dword [esi + 0x1c], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x3c], ecx
mov eax, dword [esp + 0x3c]
mov edi, dword [esi + 0xc]
mov ecx, dword [edi + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov al, byte [edi + 6]
test al, al
mov dword [esp + 0x18], ecx
jbe 0x6ec2e1
mov edx, dword [esp + 0x38]
push edx
call fcn.006e4680
mov edx, dword [edi + 8]
add esp, 4
test edx, edx
mov dword [esp + 0x2c], eax
jne 0x6ebf2f
test eax, eax
jge 0x6ebf1e
xor ebp, ebp
jmp 0x6ebf87
movzx ecx, word [edi + 4]
cmp eax, ecx
jl 0x6ebf2b
lea ebp, [ecx - 1]
jmp 0x6ebf87
mov ebp, eax
jmp 0x6ebf87
movzx ecx, word [edx]
cmp eax, ecx
jge 0x6ebf3a
xor ebp, ebp
jmp 0x6ebf87
mov ecx, dword [esi + 0x1c]
cmp ecx, 1
jge 0x6ebf46
xor ecx, ecx
jmp 0x6ebf47
dec ecx
movzx ebx, word [edx + ecx*2]
cmp ebx, eax
lea edx, [edx + ecx*2]
jg 0x6ebf71
movzx ebx, word [edi + 4]
add ebx, 0xfffffffe
cmp ecx, ebx
jge 0x6ebf84
add edx, 2
movzx ebp, word [edx]
cmp ebp, eax
jg 0x6ebf84
inc ecx
add edx, 2
cmp ecx, ebx
jl 0x6ebf60
jmp 0x6ebf84
test ecx, ecx
jle 0x6ebf84
movzx ebx, word [edx]
cmp ebx, eax
jle 0x6ebf84
dec ecx
sub edx, 2
test ecx, ecx
jg 0x6ebf75
lea ebp, [ecx + 1]
movzx edx, byte [edi + 0x10]
mov ecx, 0x1f
sub ecx, edx
mov ebx, bind
shr ebx, cl
mov ecx, edx
mov eax, ebp
sar eax, cl
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x24], eax
mov eax, ebx
and eax, ebp
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x1c]
mov edx, eax
sar edx, cl
lea ecx, [ebp + 1]
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x28], edx
cmp dword [esi + 0x28], ebp
jne 0x6ebfe2
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x24]
mov ebx, dword [esp + 0x20]
mov dword [esi + 0x30], edx
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], eax
jmp 0x6ec11a
cmp eax, ecx
jne 0x6ec031
mov cl, byte [edi + 6]
xor eax, eax
test cl, cl
mov dword [esp + 0x14], eax
jbe 0x6ec02b
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x30]
add ecx, eax
mov ebp, dword [ecx]
add edx, eax
mov dword [edx], ebp
mov ebp, dword [ecx + 4]
mov dword [edx + 4], ebp
mov ebp, dword [ecx + 8]
mov dword [edx + 8], ebp
mov ecx, dword [ecx + 0xc]
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0x14]
movzx edx, byte [edi + 6]
inc ecx
add eax, 0x10
cmp ecx, edx
mov dword [esp + 0x14], ecx
jl 0x6ebff3
mov ebp, dword [esp + 0x3c]
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x28], eax
mov ecx, dword [esi + 0x18]
mov edx, dword [esp + 0x24]
imul ecx, edx
add ecx, dword [esi + 0x14]
cmp ebp, eax
mov dword [esp + 0x10], ecx
jge 0x6ec054
cmp byte [0x811e32], 0
mov byte [esp + 0x3c], 1
je 0x6ec059
mov byte [esp + 0x3c], 0
cmp eax, 0xffffffff
je 0x6ec078
cmp edx, dword [esp + 0x28]
jne 0x6ec074
mov cl, byte [esp + 0x3c]
test cl, cl
jne 0x6ec074
mov ecx, dword [esp + 0x10]
and eax, ebx
jmp 0x6ec0e6
mov ecx, dword [esp + 0x10]
mov al, byte [edi + 6]
xor ebx, ebx
test al, al
jbe 0x6ec0e4
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x14], ecx
lea esp, [esp]
mov eax, dword [esp + 0x18]
movzx eax, byte [ebx + eax]
mov ecx, eax
and ecx, 0x1f
mov edx, 1
shl edx, cl
mov ecx, dword [esp + 0x40]
sar eax, 5
test dword [ecx + eax*4], edx
je 0x6ec0c1
mov edx, dword [esi + 0x24]
add edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
push edx
call fcn.006eb490
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x14]
add eax, 0x10
mov dword [esp + 0x3c], eax
movzx eax, byte [edi + 6]
inc ebx
add edx, 6
cmp ebx, eax
mov dword [esp + 0x14], edx
jl 0x6ec090
mov ecx, dword [esp + 0x10]
xor eax, eax
mov ebx, dword [esp + 0x20]
cmp eax, ebx
jge 0x6ec104
mov edx, dword [esp + 0x40]
push edx
mov edx, dword [esi + 0x24]
push edx
push ebx
push eax
push edi
push ecx
mov ecx, esi
call fcn.006eb950
jmp 0x6ec11a
jle 0x6ec11a
mov edx, dword [esp + 0x40]
push edx
mov edx, dword [esi + 0x24]
push edx
push ebx
push eax
push edi
push ecx
mov ecx, esi
call fcn.006eba30
mov dword [esi + 0x1c], ebp
mov ecx, dword [edi + 8]
xor edx, edx
cmp ecx, edx
jne 0x6ec143
fild dword [esp + 0x2c]
fld dword [esp + 0x38]
fcomp st(1)
fnstsw ax
test ah, 0x44
jnp 0x6ec274
fld dword [esp + 0x38]
fsub st(1)
jmp 0x6ec1a5
cmp ebp, edx
jne 0x6ec171
fld dword [esp + 0x38]
fcomp dword [0x7d7d3c]
fnstsw ax
test ah, 0x44
jnp 0x6ec276
movzx eax, word [ecx]
mov dword [esp + 0x3c], eax
fild dword [esp + 0x3c]
fdivr dword [esp + 0x38]
fstp dword [esp + 0x38]
jmp 0x6ec1ab
movzx eax, word [ecx + ebp*2 - 2]
mov dword [esp + 0x3c], eax
fild dword [esp + 0x3c]
fld dword [esp + 0x38]
fcomp st(1)
fnstsw ax
test ah, 0x44
jnp 0x6ec274
movzx ecx, word [ecx + ebp*2]
fld dword [esp + 0x38]
fsub st(1)
mov dword [esp + 0x38], ecx
fild dword [esp + 0x38]
fsub st(2)
fdivp st(1)
fstp dword [esp + 0x38]
fstp st(0)
movzx eax, word [edi + 4]
dec eax
cmp ebp, eax
jge 0x6ec276
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
push ecx
push ebx
push edx
push eax
push edi
mov ecx, esi
call fcn.006ebb20
mov cl, byte [edi + 6]
xor eax, eax
test cl, cl
mov dword [esp + 0x3c], eax
jbe 0x6ec2e1
xor ebx, ebx
mov ecx, dword [esp + 0x18]
movzx eax, byte [eax + ecx]
mov ebp, dword [esp + 0x40]
mov ecx, eax
and ecx, 0x1f
mov edx, 1
shl edx, cl
mov ecx, eax
sar ecx, 5
test dword [ebp + ecx*4], edx
je 0x6ec25a
mov edx, dword [esp + 0x1c]
lea ecx, [eax + eax*2]
mov eax, dword [esi + 0x24]
shl ecx, 4
add ecx, edx
mov edx, dword [esi + 0x30]
fld dword [edx + ebx]
add edx, ebx
fsub dword [eax + ebx]
add eax, ebx
fmul dword [esp + 0x38]
fadd dword [eax]
fstp dword [ecx]
fld dword [edx + 4]
fsub dword [eax + 4]
fmul dword [esp + 0x38]
fadd dword [eax + 4]
fstp dword [ecx + 4]
fld dword [edx + 8]
fsub dword [eax + 8]
fmul dword [esp + 0x38]
fadd dword [eax + 8]
fstp dword [ecx + 8]
fld dword [edx + 0xc]
fsub dword [eax + 0xc]
fmul dword [esp + 0x38]
fadd dword [eax + 0xc]
fstp dword [ecx + 0xc]
mov eax, dword [esp + 0x3c]
movzx edx, byte [edi + 6]
inc eax
add ebx, 0x10
cmp eax, edx
mov dword [esp + 0x3c], eax
jl 0x6ec1e3
jmp 0x6ec2e1
fstp st(0)
mov al, byte [edi + 6]
test al, al
jbe 0x6ec2e1
mov dword [esp + 0x38], edx
mov eax, dword [esp + 0x18]
movzx eax, byte [edx + eax]
mov ebp, dword [esp + 0x40]
mov ecx, eax
and ecx, 0x1f
mov ebx, 1
shl ebx, cl
mov ecx, eax
sar ecx, 5
test dword [ebp + ecx*4], ebx
je 0x6ec2cd
mov ecx, dword [esi + 0x24]
add ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
lea eax, [eax + eax*2]
shl eax, 4
add eax, ebx
mov ebx, dword [ecx]
mov dword [eax], ebx
mov ebx, dword [ecx + 4]
mov dword [eax + 4], ebx
mov ebx, dword [ecx + 8]
mov dword [eax + 8], ebx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov ebx, dword [esp + 0x38]
movzx eax, byte [edi + 6]
inc edx
add ebx, 0x10
cmp edx, eax
mov dword [esp + 0x38], ebx
jl 0x6ec281
mov al, byte [edi + 7]
test al, al
jbe 0x6ec343
xor ebx, ebx
test al, al
jbe 0x6ec343
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x38], ebx
mov ecx, dword [esi + 0x34]
movzx eax, byte [ecx + ebx]
mov ecx, eax
and ecx, 0x1f
mov edx, 1
shl edx, cl
mov ecx, eax
sar ecx, 5
test dword [ebp + ecx*4], edx
je 0x6ec32f
mov ecx, dword [esi + 0x38]
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x1c]
shl edx, 4
add edx, eax
mov eax, dword [esp + 0x38]
push edx
add ecx, eax
call fcn.006eb490
mov edx, dword [esp + 0x38]
movzx eax, byte [edi + 7]
inc ebx
add edx, 6
cmp ebx, eax
mov dword [esp + 0x38], edx
jl 0x6ec2f6
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x24
ret 0xc