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

Disassembly:
push ebp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x30
mov eax, dword [0x6cb1c928]
test eax, eax
je 0x6ca1f995
test esi, esi
je 0x6ca1f917
add eax, 0x170
cmp dword [esi], eax
jne 0x6ca1f917
mov ebx, dword [esi + 0x78]
mov ebp, edx
test ebx, ebx
je 0x6ca1f760
test edx, edx
jne 0x6ca1f751
mov dword [esp], esi
call fcn.6ca1efa0
test eax, eax
js 0x6ca61c60
lea edx, [eax + eax*8]
mov eax, dword [0x6cb1c928]
mov eax, dword [eax + 0x164]
lea edi, [eax + edx*8]
mov ebx, dword [edi + 0x3c]
test ebp, ebp
je 0x6ca1f570
test ebx, ebx
je 0x6ca1f570
cmp ebx, esi
je 0x6ca1f570
mov eax, dword [0x6cb1c928]
test eax, eax
je 0x6ca1f92d
lea edx, [eax + 0x170]
cmp dword [ebx], edx
je 0x6ca1f6d1
mov dword [esp], str.Invalid_window
call fcn.6c942590
mov ebx, dword [edi + 0x3c]
lea esi, [esi]
xor eax, eax
cmp esi, ebx
sete al
cmp eax, ebp
je 0x6ca1f808
mov eax, dword [0x6cb1c928]
mov ebx, dword [eax + 0x168]
test ebx, ebx
je 0x6ca1f6f0
test ebp, ebp
jne 0x6ca1f780
lea ebp, [esp + 0x1c]
jmp 0x6ca1f5ae
mov ebx, dword [ebx + 0xac]
test ebx, ebx
je 0x6ca1f6f0
cmp esi, ebx
je 0x6ca1f5a0
mov eax, dword [ebx + 0x30]
and eax, 0x45
cmp eax, 5
jne 0x6ca1f5a0
mov dword [esp], ebx
call fcn.6ca1efa0
test eax, eax
js 0x6ca1f5a0
lea edx, [eax + eax*8]
mov eax, dword [0x6cb1c928]
mov eax, dword [eax + 0x164]
lea eax, [eax + edx*8]
cmp edi, eax
jne 0x6ca1f5a0
mov dword [esp + 8], 0x14
mov dword [esp + 4], 0
mov dword [esp], ebp
mov dword [esp + 0x10], ebp
call fcn.6c9d74f0
mov dword [esp + 4], ebp
mov dword [esp], ebx
call fcn.6ca1f1f0
test eax, eax
jne 0x6ca1f5a0
mov eax, dword [esp + 0x20]
mov ebp, 1
cmp dword [ebx + 0x18], eax
jne 0x6ca1f627
mov eax, dword [esp + 0x24]
cmp dword [ebx + 0x1c], eax
setne al
movzx eax, al
mov ebp, eax
mov eax, dword [esi + 0x30]
and eax, 0x1001
cmp eax, 0x1001
je 0x6ca1f8fc
mov edx, dword [esp + 0x10]
mov eax, edi
call fcn.6ca1da90
test eax, eax
js 0x6ca1f90d
mov edx, dword [0x6cb1c928]
mov eax, dword [edx + 0x78]
test eax, eax
je 0x6ca1f66f
mov dword [esp + 0xc], 1
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], edx
call eax
mov dword [edi + 0x3c], ebx
test ebp, ebp
jne 0x6ca1f8d7
mov dword [esp], ebx
call fcn.6ca1efa0
mov edx, dword [ebx + 0x7c]
mov dword [ebx + 0x74], 0
mov edi, eax
test edx, edx
je 0x6ca1f941
call fcn.6c973550
cmp ebx, eax
jne 0x6ca1f74b
lea eax, [esp + 0x18]
mov dword [esp + 4], eax
lea eax, [esp + 0x14]
mov dword [esp], eax
call fcn.6c974060
mov eax, dword [esp + 0x18]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 4], eax
call fcn.6c9743c0
jmp 0x6ca1f74b
test byte [ebx + 0x30], 0x40
je 0x6ca1f8a5
mov ebx, dword [eax + 0x168]
test ebx, ebx
jne 0x6ca1f780
lea esi, [esi]
xor edx, edx
mov eax, edi
call fcn.6ca1da90
mov edx, dword [0x6cb1c928]
mov eax, dword [edx + 0x78]
test eax, eax
je 0x6ca1f71b
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], edx
call eax
mov dword [edi + 0x3c], 0
mov dword [esp], esi
call fcn.6ca1efa0
mov dword [esi + 0x74], 0
mov ebx, eax
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x6ca1f820
call fcn.6c973550
cmp esi, eax
je 0x6ca1f874
mov eax, dword [esi + 0x30]
mov dword [esi + 0x34], eax
xor eax, eax
add esp, 0x30
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
xor edi, edi
call fcn.6ca1efa0
test eax, eax
jns 0x6ca1f520
jmp 0x6ca1f531
lea ebp, [esp + 0x1c]
jmp 0x6ca1f7a9
mov eax, dword [ebx + 0x30]
and eax, 0x45
cmp eax, 5
je 0x6ca1f7e0
mov ebx, dword [ebx + 0xac]
test ebx, ebx
je 0x6ca1f6f0
cmp esi, ebx
jne 0x6ca1f790
mov dword [esp + 8], 0x14
mov dword [esp + 4], 0
mov dword [esp], ebp
mov dword [esp + 0x10], ebp
call fcn.6c9d74f0
mov dword [esp + 4], ebp
mov dword [esp], ebx
call fcn.6ca1f1f0
test eax, eax
jne 0x6ca1f79b
jmp 0x6ca1f60a
mov dword [esp], ebx
call fcn.6ca1efa0
test eax, eax
js 0x6ca1f79b
lea edx, [eax + eax*8]
mov eax, dword [0x6cb1c928]
mov eax, dword [eax + 0x164]
lea eax, [eax + edx*8]
cmp edi, eax
jne 0x6ca1f79b
jmp 0x6ca1f7ad
mov eax, dword [esi + 0x34]
xor eax, dword [esi + 0x30]
test eax, 0x1001
jne 0x6ca1f57f
jmp 0x6ca1f751
mov eax, dword [esi + 0x1c]
mov dword [esp + 4], 6
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 8], eax
call fcn.6c975e40
cmp dword [esi + 0x38], ebx
je 0x6ca1f73e
cmp ebx, 0xffffffff
je 0x6ca1f73e
mov dword [esi + 0x38], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x12
mov dword [esp], esi
call fcn.6c975e40
jmp 0x6ca1f73e
lea eax, [esp + 0x1c]
mov dword [esp + 4], eax
lea eax, [esp + 0x18]
mov dword [esp], eax
call fcn.6c974060
mov eax, dword [esp + 0x1c]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 4], eax
call fcn.6c9743c0
jmp 0x6ca1f74b
mov ecx, dword [eax + 0x64]
test ecx, ecx
je 0x6ca1f6db
xor edx, edx
mov eax, ebx
call fcn.6ca1f4d0
mov edx, dword [0x6cb1c928]
mov eax, dword [edx + 0x64]
test eax, eax
je 0x6ca1f8cf
mov dword [esp + 4], ebx
mov dword [esp], edx
call eax
mov ebx, dword [edi + 0x3c]
jmp 0x6ca1f570
mov eax, dword [esp + 0x24]
mov dword [esp + 4], 5
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 8], eax
call fcn.6c975e40
jmp 0x6ca1f696
xor edx, edx
mov eax, edi
call fcn.6ca1da90
test eax, eax
jns 0x6ca1f64d
mov eax, 0xffffffff
jmp 0x6ca1f753
mov dword [esp], str.Invalid_window
call fcn.6c942590
mov eax, 0xffffffff
jmp 0x6ca1f753
mov dword [esp], str.Video_subsystem_has_not_been_initialized
call fcn.6c942590
mov ebx, dword [edi + 0x3c]
jmp 0x6ca1f570
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 4], 6
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.6c975e40
cmp dword [ebx + 0x38], edi
je 0x6ca1f696
cmp edi, 0xffffffff
je 0x6ca1f696
mov dword [ebx + 0x38], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 4], 0x12
mov dword [esp], ebx
call fcn.6c975e40
jmp 0x6ca1f696
mov dword [esp], str.Video_subsystem_has_not_been_initialized
call fcn.6c942590
mov eax, 0xffffffff
jmp 0x6ca1f753
mov eax, dword [0x3c]
ud2