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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x9c
mov edi, dword [esp + 0xd0]
mov esi, dword [esp + 0xd4]
mov ebx, dword [esp + 0xc0]
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0xd8]
mov dword [esp + 0x10], esi
xor esi, esi
mov edx, dword [esp + 0xc8]
mov eax, dword [esp + 0xcc]
mov word [esp + 0x4e], si
mov dword [esp + 0xc], edi
mov edi, dword [esp + 0xdc]
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 0x6e9499d0
cmp eax, 0x7fff
je 0x6e9499a6
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 0x6e949ac0
mov esi, dword [eax]
mov edx, dword [eax - 4]
jmp 0x6e949989
or ecx, ebx
or ecx, edx
or ecx, esi
jne 0x6e949cc0
mov ebp, 8
mov dword [esp + 0x20], 2
mov dword [esp + 0x34], 0
jmp 0x6e949adf
mov eax, ecx
or eax, ebx
or eax, edx
or eax, esi
je 0x6e949ce4
test esi, esi
je 0x6e94a3e0
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 0x6e94a3b0
cmp ebp, 2
jg 0x6e94a75a
lea esi, [esp + 0x50]
mov ecx, dword [esp + 0x18]
mov eax, 3
sub eax, ebp
mov dword [esp + 0x1c], 0x20
lea eax, [esi + eax*4]
sub dword [esp + 0x1c], ecx
mov ecx, esi
mov esi, edi
mov edi, ecx
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 0x6e949a4e
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 0x6e949a9c
lea esi, [esp + 0x50]
lea esi, [esi]
mov dword [esi + ebp*4], 0
sub ebp, 1
jns 0x6e949a90
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 0x6e949adf
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 esi, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x8c], edi
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], ecx
mov dword [esp + 0x60], eax
movzx eax, di
mov dword [esp + 0x64], esi
mov esi, edi
mov dword [esp + 0x68], ecx
mov ecx, edi
shr edi, 0x18
shr esi, 0x10
mov ebx, edi
shr bl, 7
mov edx, esi
and edx, 0x7fff
movzx esi, bl
mov dword [esp + 0x6c], eax
mov byte [esp + 0x18], bl
mov dword [esp + 0x28], esi
je 0x6e949b80
cmp edx, 0x7fff
je 0x6e949c90
mov esi, dword [esp + 0xc]
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 0x6e949c80
mov eax, dword [ecx]
mov esi, dword [ecx - 4]
jmp 0x6e949b5f
mov ecx, dword [esp + 0x10]
mov ebx, 1
or ecx, dword [esp + 0x14]
or ecx, dword [esp + 0xc]
or ecx, eax
je 0x6e949c62
test eax, eax
je 0x6e94a380
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 0x6e94a353
cmp ebx, 2
jg 0x6e94a76c
mov eax, 3
mov edi, dword [esp + 0xc]
lea esi, [esp + 0x60]
sub eax, ebx
mov dword [esp + 0x14], 0x20
lea eax, [esi + eax*4]
sub dword [esp + 0x14], edi
mov edi, ebp
mov ebp, esi
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 0x6e949c07
mov eax, dword [esp + 0x60]
mov ebp, edi
sub ebx, 1
movzx ecx, byte [esp + 0xc]
mov edi, dword [esp + 0x2c]
shl eax, cl
mov dword [esp + edi*4 + 0x60], eax
test ebx, ebx
js 0x6e949c52
lea esi, [esp + 0x60]
mov dword [esi + ebx*4], 0
sub ebx, 1
jns 0x6e949c46
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 + 0x6e957378]
shl dword [esp + 0x60], 3
sub edx, 0x3fff
xor ebx, ebx
jmp 0x6e949c62
mov esi, dword [esp + 0x10]
mov ebx, 2
or esi, dword [esp + 0x14]
or esi, dword [esp + 0xc]
or esi, eax
je 0x6e949c62
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 0x6e949c62
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 0x6e949adf
mov ebp, 4
mov dword [esp + 0x20], 1
mov dword [esp + 0x34], 0
jmp 0x6e949adf
cmp ebx, 3
jg 0x6e94a750
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 0x6e94a36b
sub ebx, 1
jmp 0x6e949c3e
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x6e94a4a2
mov eax, dword [esp + 0x10]
test eax, eax
je 0x6e94a712
bsr eax, dword [esp + 0x10]
xor eax, 0x1f
add eax, 0x40
mov dword [esp + 0x10], eax
jmp 0x6e949bad
cmp ebp, 3
jg 0x6e94a782
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 0x6e94a3c8
sub ebp, 1
jmp 0x6e949a85
test edx, edx
jne 0x6e94a490
test ecx, ecx
je 0x6e94a700
bsr ecx, ecx
xor ecx, 0x1f
lea eax, [ecx + 0x40]
mov dword [esp + 0x20], eax
jmp 0x6e9499f2
bsr edx, edx
xor edx, 0x1f
lea eax, [edx + 0x20]
mov dword [esp + 0x20], eax
jmp 0x6e9499f2
bsr eax, dword [esp + 0xc]
xor eax, 0x1f
add eax, 0x20
mov dword [esp + 0x10], eax
jmp 0x6e949bad
bsr eax, ebx
xor eax, 0x1f
add eax, 0x60
mov dword [esp + 0x20], eax
jmp 0x6e9499f2
bsr eax, dword [esp + 0x14]
xor eax, 0x1f
add eax, 0x60
mov dword [esp + 0x10], eax
jmp 0x6e949bad
mov ebx, 3
jmp 0x6e949c42
mov ebp, 2
mov dword [esp + 0x28], 3
jmp 0x6e949a76
mov eax, dword [esp + 0x14]
mov ebx, 2
mov dword [esp + 0x2c], 3
jmp 0x6e949c2f
mov ebp, 3
jmp 0x6e949a89