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

Disassembly:
mov eax, dword [0x57f1a0]
sub esp, 0x1c
test eax, eax
jne 0x448110
push str.Video_subsystem_has_not_been_initialized
call fcn.0041ad60
add esp, 4
or eax, 0xffffffff
add esp, 0x1c
ret
push edi
mov edi, dword [esp + 0x24]
test edi, edi
je 0x44837c
add eax, 0x198
cmp dword [edi], eax
jne 0x44837c
cmp dword [edi + 0x78], 0
push ebx
push ebp
mov ebp, dword [esp + 0x30]
je 0x44813a
test ebp, ebp
jne 0x44819c
push edi
call fcn.00444c60
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x44819c
test ebp, ebp
je 0x448161
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x448161
cmp eax, edi
je 0x448161
push eax
call fcn.00446110
add esp, 4
xor eax, eax
cmp dword [ebx + 0x3c], edi
sete al
cmp eax, ebp
jne 0x4481a5
mov eax, dword [edi + 0x34]
xor eax, dword [edi + 0x30]
test eax, 0x1001
je 0x44819c
test ebp, ebp
jne 0x4481a5
mov eax, dword [0x57f1a0]
mov ecx, dword [eax + 0x80]
test ecx, ecx
je 0x448196
push ebp
push ebx
push edi
push eax
call ecx
add esp, 0x10
mov eax, dword [edi + 0x30]
mov dword [edi + 0x34], eax
pop ebp
pop ebx
xor eax, eax
pop edi
add esp, 0x1c
ret
mov eax, dword [0x57f1a0]
push esi
mov esi, dword [eax + 0x190]
test esi, esi
je 0x448215
cmp esi, edi
jne 0x4481bf
test ebp, ebp
je 0x44820b
jmp 0x4481eb
mov eax, dword [esi + 0x30]
and eax, 0x45
cmp al, 5
jne 0x44820b
push esi
call fcn.00445240
add esp, 4
test eax, eax
js 0x44820b
lea ecx, [eax + eax*8]
mov eax, dword [0x57f1a0]
mov eax, dword [eax + 0x18c]
lea eax, [eax + ecx*8]
cmp eax, ebx
jne 0x44820b
push 0x14
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.004587c0
lea eax, [esp + 0x24]
push eax
push esi
call fcn.00445380
add esp, 0x14
test eax, eax
je 0x44824f
mov esi, dword [esi + 0xac]
test esi, esi
jne 0x4481b5
push 0
push ebx
call fcn.00446a20
mov eax, dword [0x57f1a0]
add esp, 8
mov ecx, dword [eax + 0x80]
test ecx, ecx
je 0x44832b
push 0
push ebx
push edi
push eax
call ecx
push edi
mov dword [ebx + 0x3c], 0
call fcn.004464a0
add esp, 0x14
jmp 0x448343
mov eax, dword [esi + 0x18]
mov ebp, 1
cmp eax, dword [esp + 0x1c]
jne 0x448269
mov eax, dword [esi + 0x1c]
xor ecx, ecx
cmp eax, dword [esp + 0x20]
cmove ebp, ecx
mov eax, dword [esi + 0x30]
and eax, 0x1001
cmp eax, 0x1001
je 0x4482ef
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.00446a20
add esp, 8
test eax, eax
js 0x4482fe
mov eax, dword [0x57f1a0]
mov ecx, dword [eax + 0x80]
test ecx, ecx
je 0x4482a8
push 1
push ebx
push esi
push eax
call ecx
mov eax, dword [0x57f1a0]
add esp, 0x10
mov dword [ebx + 0x3c], esi
test ebp, ebp
je 0x448309
push str.Android
push dword [eax]
call fcn.0041c300
add esp, 8
test eax, eax
je 0x448312
mov eax, dword [0x57f1a0]
push 0x52074c
push dword [eax]
call fcn.0041c300
add esp, 8
test eax, eax
je 0x448312
push dword [esp + 0x20]
push dword [esp + 0x20]
push 5
push esi
call fcn.00475e60
add esp, 0x10
jmp 0x448312
push 0
push ebx
call fcn.00446a20
add esp, 8
test eax, eax
jns 0x44828a
pop esi
pop ebp
pop ebx
or eax, 0xffffffff
pop edi
add esp, 0x1c
ret
push esi
call fcn.004464a0
add esp, 4
push esi
call fcn.00446940
add esp, 4
mov eax, dword [edi + 0x30]
pop esi
pop ebp
mov dword [edi + 0x34], eax
xor eax, eax
pop ebx
pop edi
add esp, 0x1c
ret
mov dword [ebx + 0x3c], 0
push dword [edi + 0x48]
push dword [edi + 0x44]
push 5
push edi
call fcn.00475e60
add esp, 0x10
call fcn.004498f0
cmp edi, eax
jne 0x44831b
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00449900
push dword [esp + 0x18]
push dword [esp + 0x20]
push edi
call fcn.0044b1e0
mov eax, dword [edi + 0x30]
add esp, 0x14
mov dword [edi + 0x34], eax
xor eax, eax
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x1c
ret
push str.Invalid_window
call fcn.0041ad60
add esp, 4
or eax, 0xffffffff
pop edi
add esp, 0x1c
ret