Function at 0x6cecafb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
xor esi, esi
push ebx
sub esp, 0xac
mov edi, dword [esp + 0xe0]
mov ebx, dword [esp + 0xd0]
mov ecx, dword [esp + 0xd4]
mov edx, dword [esp + 0xd8]
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0xe4]
mov eax, dword [esp + 0xdc]
mov word [esp + 0x4e], si
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0xe8]
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0xec]
fnstcw word [esp + 0x4e]
movzx esi, ax
mov ebp, eax
mov dword [esp + 0x8c], eax
shr eax, 0x18
shr al, 7
shr ebp, 0x10
mov byte [esp + 0xc], al
movzx eax, al
mov dword [esp + 0x2c], eax
mov eax, ebp
and eax, 0x7fff
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], edx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edx
mov word [esp + 0x14], si
mov dword [esp + 0x5c], esi
mov dword [esp + 0x28], eax
je 0x6cecb0c0
cmp eax, 0x7fff
je 0x6cecb096
or esi, 0x10000
mov dword [esp + 0x5c], esi
lea ecx, [esp + 0x50]
lea eax, [esp + 0x5c]
shr edx, 0x1d
sub eax, 4
shl esi, 3
or edx, esi
mov dword [eax + 4], edx
cmp eax, ecx
je 0x6cecb1b0
mov esi, dword [eax]
mov edx, dword [eax - 4]
jmp 0x6cecb079
or ecx, ebx
or ecx, edx
or ecx, esi
jne 0x6cecb4b0
mov dword [esp + 0x24], 8
mov ebp, 2
mov dword [esp + 0x14], 0
jmp 0x6cecb1cf
mov eax, ecx
or eax, ebx
or eax, edx
or eax, esi
je 0x6cecb4d4
test esi, esi
je 0x6cecb9f0
bsr eax, esi
mov dword [esp + 0x20], eax
xor dword [esp + 0x20], 0x1f
mov eax, dword [esp + 0x20]
mov edx, eax
sub edx, 0xc
lea ebp, [eax + 0x13]
mov eax, edx
cmovns ebp, edx
sar eax, 0x1f
shr eax, 0x1b
add edx, eax
and edx, 0x1f
sar ebp, 5
sub edx, eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x14], edx
je 0x6cecb963
cmp ebp, 2
jg 0x6cecbcb6
lea esi, [esp + 0x50]
mov ebx, dword [esp + 0x14]
mov eax, 3
sub eax, ebp
mov dword [esp + 0x24], 0x20
lea eax, [esi + eax*4]
sub dword [esp + 0x24], ebx
mov ebx, esi
mov esi, edi
mov edi, ebx
mov edx, dword [eax - 4]
movzx ecx, byte [esp + 0x24]
mov ebx, dword [eax]
shr edx, cl
movzx ecx, byte [esp + 0x14]
shl ebx, cl
or edx, ebx
mov dword [eax + ebp*4], edx
sub eax, 4
cmp eax, edi
jne 0x6cecb13e
mov ebx, dword [esp + 0x50]
mov edi, esi
sub ebp, 1
movzx ecx, byte [esp + 0x14]
mov eax, dword [esp + 0x28]
shl ebx, cl
mov dword [esp + eax*4 + 0x50], ebx
test ebp, ebp
js 0x6cecb189
lea esi, [esp + 0x50]
mov dword [esi + ebp*4], 0
sub ebp, 1
jns 0x6cecb17d
mov eax, dword [esp + 0x20]
xor ebp, ebp
mov dword [esp + 0x28], 0xffffc011
mov dword [esp + 0x24], 0
sub dword [esp + 0x28], eax
mov dword [esp + 0x14], 2
jmp 0x6cecb1cf
shl dword [esp + 0x50], 3
xor ebp, ebp
sub dword [esp + 0x28], 0x3fff
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x1c]
mov ecx, edi
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x8c], edi
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], esi
mov dword [esp + 0x60], eax
movzx eax, di
mov dword [esp + 0x64], esi
mov esi, edi
shr edi, 0x18
shr esi, 0x10
mov dword [esp + 0x88], ebx
mov edx, esi
mov dword [esp + 0x68], ebx
mov ebx, edi
shr bl, 7
and edx, 0x7fff
movzx edi, bl
mov dword [esp + 0x6c], eax
mov byte [esp + 0x20], bl
mov dword [esp + 0x30], edi
je 0x6cecb270
cmp edx, 0x7fff
je 0x6cecb448
mov esi, dword [esp + 0x10]
or eax, 0x10000
mov dword [esp + 0x6c], eax
lea ebx, [esp + 0x60]
lea ecx, [esp + 0x6c]
shr esi, 0x1d
sub ecx, 4
shl eax, 3
or esi, eax
mov dword [ecx + 4], esi
cmp ecx, ebx
je 0x6cecb436
mov eax, dword [ecx]
mov esi, dword [ecx - 4]
jmp 0x6cecb24f
mov ecx, dword [esp + 0x18]
mov ebx, 1
or ecx, dword [esp + 0x1c]
or ecx, dword [esp + 0x10]
or ecx, eax
je 0x6cecb352
test eax, eax
je 0x6cecb9c0
bsr eax, eax
mov dword [esp + 0x18], eax
xor dword [esp + 0x18], 0x1f
mov eax, dword [esp + 0x18]
mov edx, eax
sub edx, 0xc
lea ebx, [eax + 0x13]
mov eax, edx
cmovns ebx, edx
sar eax, 0x1f
shr eax, 0x1b
add edx, eax
and edx, 0x1f
sar ebx, 5
sub edx, eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x10], edx
je 0x6cecb990
cmp ebx, 2
jg 0x6cecbcc8
mov eax, 3
mov edi, dword [esp + 0x10]
lea esi, [esp + 0x60]
sub eax, ebx
mov dword [esp + 0x1c], 0x20
lea eax, [esi + eax*4]
sub dword [esp + 0x1c], edi
mov edi, ebp
mov ebp, esi
mov edx, dword [eax - 4]
movzx ecx, byte [esp + 0x1c]
mov esi, dword [eax]
shr edx, cl
movzx ecx, byte [esp + 0x10]
shl esi, cl
or edx, esi
mov dword [eax + ebx*4], edx
sub eax, 4
cmp eax, ebp
jne 0x6cecb2f7
mov eax, dword [esp + 0x60]
mov ebp, edi
sub ebx, 1
movzx ecx, byte [esp + 0x10]
mov edi, dword [esp + 0x38]
shl eax, cl
mov dword [esp + edi*4 + 0x60], eax
test ebx, ebx
js 0x6cecb342
lea esi, [esp + 0x60]
mov dword [esi + ebx*4], 0
sub ebx, 1
jns 0x6cecb336
or dword [esp + 0x14], 2
mov edx, 0xffffc011
sub edx, dword [esp + 0x18]
xor ebx, ebx
movzx eax, byte [esp + 0x20]
xor al, byte [esp + 0xc]
movzx eax, al
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
or eax, ebx
jmp dword [eax*4 + 0x6ced5378]
shl dword [esp + 0x60], 3
sub edx, 0x3fff
xor ebx, ebx
jmp 0x6cecb352
mov esi, dword [esp + 0x18]
mov ebx, 2
or esi, dword [esp + 0x1c]
or esi, dword [esp + 0x10]
or esi, eax
je 0x6cecb352
mov edi, dword [esp + 0x14]
mov bl, 3
mov eax, edi
or eax, 1
test cx, cx
cmovs eax, edi
mov dword [esp + 0x14], eax
jmp 0x6cecb352
movsx eax, word [esp + 0x14]
mov ebp, 3
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x14], eax
not dword [esp + 0x14]
shr dword [esp + 0x14], 0x1f
jmp 0x6cecb1cf
mov dword [esp + 0x24], 4
mov ebp, 1
mov dword [esp + 0x14], 0
jmp 0x6cecb1cf
cmp ebp, 3
jg 0x6cecbcf0
mov edx, ebp
neg edx
lea eax, [esp + 0x5c]
lea ecx, [esp + ebp*4 + 0x4c]
shl edx, 2
mov ebx, dword [eax + edx]
sub eax, 4
mov dword [eax + 4], ebx
cmp eax, ecx
jne 0x6cecb97b
sub ebp, 1
jmp 0x6cecb175
cmp ebx, 3
jg 0x6cecbce0
mov edx, ebx
neg edx
lea eax, [esp + 0x6c]
lea ecx, [esp + ebx*4 + 0x5c]
shl edx, 2
mov esi, dword [eax + edx]
sub eax, 4
mov dword [eax + 4], esi
cmp eax, ecx
jne 0x6cecb9a8
sub ebx, 1
jmp 0x6cecb32e
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x6cecbaa2
mov eax, dword [esp + 0x18]
test eax, eax
je 0x6cecbca2
bsr eax, dword [esp + 0x18]
xor eax, 0x1f
add eax, 0x40
mov dword [esp + 0x18], eax
jmp 0x6cecb29d
test edx, edx
jne 0x6cecba90
test ecx, ecx
je 0x6cecbc90
bsr ecx, ecx
xor ecx, 0x1f
lea eax, [ecx + 0x40]
mov dword [esp + 0x20], eax
jmp 0x6cecb0e2
bsr edx, edx
xor edx, 0x1f
lea eax, [edx + 0x20]
mov dword [esp + 0x20], eax
jmp 0x6cecb0e2
bsr eax, dword [esp + 0x10]
xor eax, 0x1f
add eax, 0x20
mov dword [esp + 0x18], eax
jmp 0x6cecb29d
bsr eax, ebx
xor eax, 0x1f
add eax, 0x60
mov dword [esp + 0x20], eax
jmp 0x6cecb0e2
bsr eax, dword [esp + 0x1c]
xor eax, 0x1f
add eax, 0x60
mov dword [esp + 0x18], eax
jmp 0x6cecb29d
mov ebp, 2
mov dword [esp + 0x28], 3
jmp 0x6cecb166
mov eax, dword [esp + 0x1c]
mov ebx, 2
mov dword [esp + 0x38], 3
jmp 0x6cecb31f
mov ebx, 3
jmp 0x6cecb332
mov ebp, 3
jmp 0x6cecb179