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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x9c
mov esi, dword [esp + 0xd0]
mov ebx, dword [esp + 0xc0]
mov ecx, dword [esp + 0xc4]
mov edx, dword [esp + 0xc8]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0xd4]
mov eax, dword [esp + 0xcc]
mov edi, dword [esp + 0xdc]
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0xd8]
mov dword [esp + 0xc], esi
xor esi, esi
mov word [esp + 0x4e], si
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 + 8], al
movzx eax, al
mov dword [esp + 0x24], 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 + 0x18], si
mov dword [esp + 0x5c], esi
mov dword [esp + 0x1c], eax
je 0x6cec99f0
cmp eax, 0x7fff
je 0x6cec99c6
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 0x6cec9ae0
mov esi, dword [eax]
mov edx, dword [eax - 4]
jmp 0x6cec99a9
or ecx, ebx
or ecx, edx
or ecx, esi
jne 0x6cec9cd0
mov ebp, 8
mov dword [esp + 0x20], 2
mov dword [esp + 0x34], 0
jmp 0x6cec9aff
mov eax, ecx
or eax, ebx
or eax, edx
or eax, esi
je 0x6cec9cf4
test esi, esi
je 0x6ceca400
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 + 0x18], edx
je 0x6ceca3d0
cmp ebp, 2
jg 0x6ceca77a
lea esi, [esp + 0x50]
mov edx, dword [esp + 0x18]
mov eax, 3
sub eax, ebp
mov dword [esp + 0x1c], 0x20
lea eax, [esi + eax*4]
sub dword [esp + 0x1c], edx
mov edx, esi
mov esi, edi
mov edi, edx
mov edx, dword [eax - 4]
movzx ecx, byte [esp + 0x1c]
mov ebx, dword [eax]
shr edx, cl
movzx ecx, byte [esp + 0x18]
shl ebx, cl
or edx, ebx
mov dword [eax + ebp*4], edx
sub eax, 4
cmp eax, edi
jne 0x6cec9a6e
mov ebx, dword [esp + 0x50]
mov edi, esi
sub ebp, 1
movzx ecx, byte [esp + 0x18]
mov eax, dword [esp + 0x28]
shl ebx, cl
mov dword [esp + eax*4 + 0x50], ebx
test ebp, ebp
js 0x6cec9abc
lea esi, [esp + 0x50]
lea esi, [esi]
mov dword [esi + ebp*4], 0
sub ebp, 1
jns 0x6cec9ab0
mov eax, dword [esp + 0x20]
xor ebp, ebp
mov dword [esp + 0x1c], 0xffffc011
mov dword [esp + 0x20], 0
sub dword [esp + 0x1c], eax
mov dword [esp + 0x34], 2
jmp 0x6cec9aff
shl dword [esp + 0x50], 3
xor ebp, ebp
sub dword [esp + 0x1c], 0x3fff
mov dword [esp + 0x20], 0
mov dword [esp + 0x34], 0
mov eax, dword [esp + 0x14]
mov edx, edi
mov ecx, dword [esp + 0x10]
shr edx, 0x10
mov esi, dword [esp + 0xc]
mov dword [esp + 0x8c], edi
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
mov dword [esp + 0x60], eax
movzx eax, di
mov dword [esp + 0x64], ecx
mov ecx, edi
shr edi, 0x18
mov ebx, edi
shr bl, 7
and edx, 0x7fff
mov byte [esp + 0x18], bl
movzx ebx, bl
mov dword [esp + 0x88], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], eax
mov dword [esp + 0x28], ebx
je 0x6cec9b96
cmp edx, 0x7fff
je 0x6cec9ca2
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 0x6cec9c93
mov eax, dword [ecx]
mov esi, dword [ecx - 4]
jmp 0x6cec9b79
mov ecx, dword [esp + 0x10]
mov ebx, 1
or ecx, dword [esp + 0x14]
or ecx, dword [esp + 0xc]
or ecx, eax
je 0x6cec9c78
test eax, eax
je 0x6ceca3a0
bsr eax, eax
mov dword [esp + 0x10], eax
xor dword [esp + 0x10], 0x1f
mov eax, dword [esp + 0x10]
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 + 0x2c], ebx
mov dword [esp + 0xc], edx
je 0x6ceca373
cmp ebx, 2
jg 0x6ceca78c
mov edx, dword [esp + 0xc]
mov eax, 3
mov edi, ebp
mov dword [esp + 0x14], 0x20
lea esi, [esp + 0x60]
sub eax, ebx
sub dword [esp + 0x14], edx
mov ebp, esi
lea eax, [esi + eax*4]
mov edx, dword [eax - 4]
movzx ecx, byte [esp + 0x14]
mov esi, dword [eax]
shr edx, cl
movzx ecx, byte [esp + 0xc]
shl esi, cl
or edx, esi
mov dword [eax + ebx*4], edx
sub eax, 4
cmp eax, ebp
jne 0x6cec9c1d
mov eax, dword [esp + 0x60]
mov ebp, edi
sub ebx, 1
movzx ecx, byte [esp + 0xc]
mov edx, dword [esp + 0x2c]
shl eax, cl
mov dword [esp + edx*4 + 0x60], eax
test ebx, ebx
js 0x6cec9c68
lea esi, [esp + 0x60]
mov dword [esi + ebx*4], 0
sub ebx, 1
jns 0x6cec9c5c
or dword [esp + 0x34], 2
mov edx, 0xffffc011
sub edx, dword [esp + 0x10]
xor ebx, ebx
movzx eax, byte [esp + 0x18]
xor al, byte [esp + 8]
movzx eax, al
mov dword [esp + 0x38], eax
mov eax, ebp
or eax, ebx
jmp dword [eax*4 + 0x6ced5338]
shl dword [esp + 0x60], 3
sub edx, 0x3fff
xor ebx, ebx
jmp 0x6cec9c78
mov esi, dword [esp + 0x10]
mov ebx, 2
or esi, dword [esp + 0x14]
or esi, dword [esp + 0xc]
or esi, eax
je 0x6cec9c78
mov edi, dword [esp + 0x34]
mov bl, 3
mov eax, edi
or eax, 1
test cx, cx
cmovs eax, edi
mov dword [esp + 0x34], eax
jmp 0x6cec9c78
movsx eax, word [esp + 0x18]
mov ebp, 0xc
mov dword [esp + 0x20], 3
mov dword [esp + 0x34], eax
not dword [esp + 0x34]
shr dword [esp + 0x34], 0x1f
jmp 0x6cec9aff
mov ebp, 4
mov dword [esp + 0x20], 1
mov dword [esp + 0x34], 0
jmp 0x6cec9aff
cmp ebx, 3
jg 0x6ceca770
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 0x6ceca38b
sub ebx, 1
jmp 0x6cec9c54
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x6ceca4c2
mov eax, dword [esp + 0x10]
test eax, eax
je 0x6ceca732
bsr eax, dword [esp + 0x10]
xor eax, 0x1f
add eax, 0x40
mov dword [esp + 0x10], eax
jmp 0x6cec9bc3
cmp ebp, 3
jg 0x6ceca7a2
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 0x6ceca3e8
sub ebp, 1
jmp 0x6cec9aa5
test edx, edx
jne 0x6ceca4b0
test ecx, ecx
je 0x6ceca720
bsr ecx, ecx
xor ecx, 0x1f
lea eax, [ecx + 0x40]
mov dword [esp + 0x20], eax
jmp 0x6cec9a12
bsr edx, edx
xor edx, 0x1f
lea eax, [edx + 0x20]
mov dword [esp + 0x20], eax
jmp 0x6cec9a12
bsr eax, dword [esp + 0xc]
xor eax, 0x1f
add eax, 0x20
mov dword [esp + 0x10], eax
jmp 0x6cec9bc3
bsr eax, ebx
xor eax, 0x1f
add eax, 0x60
mov dword [esp + 0x20], eax
jmp 0x6cec9a12
bsr eax, dword [esp + 0x14]
xor eax, 0x1f
add eax, 0x60
mov dword [esp + 0x10], eax
jmp 0x6cec9bc3
mov ebx, 3
jmp 0x6cec9c58
mov ebp, 2
mov dword [esp + 0x28], 3
jmp 0x6cec9a96
mov eax, dword [esp + 0x14]
mov ebx, 2
mov dword [esp + 0x2c], 3
jmp 0x6cec9c45
mov ebp, 3
jmp 0x6cec9aa9