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

Disassembly:
push 0xffffffffffffffff
push 0x5f137b
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x676890]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x676890]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x70]
mov edi, ecx
mov dword [esp + 0x14], 1
call fcn.004f0ad0
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
push ebp
mov dword [0x6841e8], eax
mov dword [0x6841e4], ecx
mov dword [0x68423c], ebp
call dword [sym.imp.USER32.dll_GetDC]
push 0xdc
mov dword [0x684238], eax
call sub.d3d8.dll_Direct3DCreate8
xor esi, esi
mov dword [0x684254], eax
cmp eax, esi
jne 0x4f0e97
lea eax, [esi + 2]
jmp 0x4f1746
push 0x4f0570
push eax
mov ecx, 0x684290
call fcn.00512a90
test eax, eax
jne 0x4f0eb5
mov eax, 0x40
jmp 0x4f1746
push 0x684248
push 0x68424c
push 0x684250
push 1
push 0x20
push 0x258
push 0x320
mov ecx, 0x684290
call fcn.00512800
test eax, eax
je 0x4f0f3b
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], esi
mov byte [esp + 0x28], 0
lea edx, [esp + 0x24]
push edx
mov ecx, 0x684290
mov dword [esp + 0x6c], esi
call fcn.00512d50
mov eax, dword [0x684248]
push eax
mov ecx, 0x684290
call fcn.005127e0
mov ebx, eax
mov dword [esp + 0x18], ebx
cmp ebx, esi
jne 0x4f0f45
mov ecx, dword [0x684248]
push ecx
push str.adapter__d_is_EMPTY
call fcn.005190b0
add esp, 8
lea ecx, [esp + 0x24]
call fcn.0045c050
mov eax, 0x80
jmp 0x4f1746
push ebx
mov ecx, edi
call fcn.004f05f0
test al, al
je 0x4f0f66
push 0x200
push ebp
mov ecx, edi
mov dword [esp + 0x1c], 0x201
call fcn.004f0da0
mov edx, dword [0x684250]
mov eax, dword [0x68424c]
push edx
push eax
mov ecx, ebx
call fcn.005126f0
mov esi, eax
test esi, esi
jne 0x4f0fae
mov ecx, dword [0x684250]
mov edx, dword [0x68424c]
push ecx
push edx
push str.device__d__mode__d_is_EMPTY
call fcn.005190b0
add esp, 0xc
lea ecx, [esp + 0x24]
call fcn.0045c050
mov eax, 0x80
jmp 0x4f1746
cmp byte [esp + 0x7c], 0
je 0x4f0fe9
push 4
push str.3dfx
push ebx
call fcn.005a3a34
add esp, 0xc
test eax, eax
jne 0x4f0fe9
mov ecx, ebx
call fcn.005126b0
cmp dword [eax + 0xc], 0x16
jne 0x4f0fe9
lea ecx, [esp + 0x24]
call fcn.0045c050
mov eax, 0x400
jmp 0x4f1746
cmp dword [esi + 0xc], 0x20
jne 0x4f0ff7
or dword [esp + 0x14], 0x100
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
lea eax, [esp + 0x40]
push eax
mov ecx, esi
mov byte [esp + 0x6c], 1
call fcn.00512b00
movzx ecx, byte [esp + 0x7c]
mov ebx, dword [esp + 0x84]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], ecx
push 0x34
push 0
push 0x684204
call fcn.0059fdd0
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
mov dword [0x684208], ecx
mov dword [0x684220], edx
mov dword [0x684204], eax
mov dword [0x68421c], ebp
mov edx, dword [edi + 4]
add esp, 0xc
cmp byte [esp + 0x7c], 0
mov ecx, 1
mov dword [0x684210], edx
mov dword [0x684218], ecx
je 0x4f10a2
mov ecx, dword [esp + 0x18]
call fcn.005126b0
mov eax, dword [eax + 0xc]
mov dword [0x68420c], eax
mov ecx, 1
jmp 0x4f10b1
mov edx, dword [esi + 0x10]
mov dword [0x68420c], edx
mov dword [0x684230], ebx
mov dword [0x68422c], ecx
mov dword [0x684224], ecx
mov eax, dword [esi + 0x14]
mov dword [0x684228], eax
mov edx, dword [esi + 0xc]
mov eax, dword [0x684254]
push 0x684258
push 0x684204
mov dword [0x684268], edx
mov ebx, dword [esi + 0xc]
mov edx, dword [eax]
mov edx, dword [edx + 0x3c]
push ebx
push ebp
push ecx
mov ecx, dword [0x684248]
push ecx
push eax
call edx
mov dword [0x684260], eax
test eax, eax
jge 0x4f1175
cmp eax, 0x8876017c
je 0x4f112e
cmp eax, 0x8876086a
je 0x4f1127
cmp eax, 0x8876086c
je 0x4f1120
push eax
push str.IDirect3DDevice.CreateDevice___ERROR__d
call fcn.005190b0
add esp, 8
jmp 0x4f113b
push str.IDirect3DDevice.CreateDevice___ERROR_D3DERR_INVALIDCALL_nThe_method_call_is_invalid._For_example__a_methods_parameter_may_have_an_invalid_value.
jmp 0x4f1133
push str.IDirect3DDevice.CreateDevice___ERROR_D3DERR_NOTAVAILABLE_nThis_device_does_not_support_the_queried_technique.
jmp 0x4f1133
push str.IDirect3DDevice.CreateDevice___ERROR_D3DERR_OUTOFVIDEOMEMORY_nDirect3D_does_not_have_enough_display_memory_to_perform_the_operation
call fcn.00519080
add esp, 4
cmp dword [esp + 0x20], 0
jne 0x4f1159
xor ebx, ebx
mov dword [esp + 0x20], 1
mov dword [esp + 0x14], 0x20
jmp 0x4f1035
lea ecx, [esp + 0x40]
call fcn.0045c050
lea ecx, [esp + 0x24]
call fcn.0045c050
mov eax, 0x10
jmp 0x4f1746
mov edx, dword [0x68420c]
mov eax, dword [0x684254]
mov ecx, dword [eax]
push 0x31545844
push 3
push 0
push edx
mov edx, dword [0x684248]
push 1
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
cmp eax, 0x8876086a
jne 0x4f11a9
mov byte [0x659ce1], 0
mov edx, dword [0x68420c]
mov eax, dword [0x684254]
mov ecx, dword [eax]
push 0x33545844
push 3
push 0
push edx
mov edx, dword [0x684248]
push 1
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
cmp eax, 0x8876086a
jne 0x4f11dd
mov byte [0x659ce1], 0
mov edx, dword [0x68420c]
mov eax, dword [0x684254]
mov ecx, dword [eax]
push 0x35545844
push 3
push 0
push edx
mov edx, dword [0x684248]
push 1
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
cmp eax, 0x8876086a
jne 0x4f1211
mov byte [0x659ce1], 0
mov eax, dword [0x684258]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push 0x684110
push eax
call edx
mov dword [0x684260], eax
test eax, eax
jge 0x4f1256
push eax
push str.IDirect3DDevice.GetDeviceCaps___ERROR__d
call fcn.005190b0
add esp, 8
lea ecx, [esp + 0x40]
call fcn.0045c050
lea ecx, [esp + 0x24]
call fcn.0045c050
mov eax, 8
jmp 0x4f1746
cmp byte [esp + 0x7c], 0
jne 0x4f1276
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
push 0x40
push eax
push ecx
push 0
push 0
push 0xffffffffffffffff
push ebp
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [0x684258]
mov edx, dword [eax]
push 0x6841ec
push eax
mov eax, dword [edx + 0xa4]
call eax
push 0x13388
call fcn.005a01ed
add esp, 4
mov dword [esp + 0x1c], eax
mov byte [esp + 0x68], 2
test eax, eax
je 0x4f12b5
mov ecx, dword [0x684258]
push ecx
mov ecx, eax
call fcn.004ebe40
jmp 0x4f12b7
xor eax, eax
push 0x68425c
push 0
mov byte [esp + 0x70], 1
mov dword [edi + 0x28], eax
call fcn.0056c088
mov eax, dword [0x68425c]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0x14]
call eax
mov ecx, edi
call fcn.004f0510
mov ecx, edi
mov dword [0x68426c], eax
call fcn.004f0440
mov ecx, edi
mov dword [0x684270], eax
call fcn.004f04a0
fldz
fst dword [0x6b5c48]
mov dword [0x684274], eax
fst dword [0x6b5c44]
fst dword [0x6b5c40]
fst dword [0x6b5c3c]
fst dword [0x6b5c34]
fst dword [0x6b5c30]
fst dword [0x6b5c2c]
fst dword [0x6b5c28]
fst dword [0x6b5c20]
fst dword [0x6b5c1c]
fst dword [0x6b5c18]
fst dword [0x6b5c14]
fld1
fst dword [0x6b5c4c]
fst dword [0x6b5c38]
fst dword [0x6b5c24]
fst dword [0x6b5c10]
fst dword [0x6b5c8c]
fst dword [0x6b5c78]
fst dword [0x6b5c64]
fst dword [0x6b5c50]
fst dword [0x6b5ccc]
fst dword [0x6b5cb8]
fst dword [0x6b5ca4]
fst dword [0x6b5c90]
fst dword [0x6b5d0c]
fst dword [0x6b5cf8]
fst dword [0x6b5ce4]
fst dword [0x6b5cd0]
fst dword [0x6b5d4c]
fst dword [0x6b5d38]
fst dword [0x6b5d24]
fst dword [0x6b5d10]
fst dword [0x6b5e0c]
fst dword [0x6b5df8]
fst dword [0x6b5e4c]
fst dword [0x6b5e38]
fst dword [0x6b5e24]
fst dword [0x6b5e10]
fst dword [0x6b5e8c]
fst dword [0x6b5e78]
fst dword [0x6b5dd0]
fxch st(1)
fst dword [0x6b5c88]
fst dword [0x6b5c84]
fst dword [0x6b5c80]
fst dword [0x6b5c7c]
fst dword [0x6b5c74]
fst dword [0x6b5c70]
fst dword [0x6b5c6c]
fst dword [0x6b5c68]
fst dword [0x6b5c60]
fst dword [0x6b5c5c]
fst dword [0x6b5c58]
fst dword [0x6b5c54]
fst dword [0x6b5cc8]
fst dword [0x6b5cc4]
fst dword [0x6b5cc0]
fst dword [0x6b5cbc]
fst dword [0x6b5cb4]
fst dword [0x6b5cb0]
fst dword [0x6b5cac]
push 0
fst dword [0x6b5ca8]
push 0x68427c
fst dword [0x6b5ca0]
push 0x20
fst dword [0x6b5c9c]
push 0x20
fst dword [0x6b5c98]
push ecx
fst dword [0x6b5c94]
fst dword [0x6b5d08]
fst dword [0x6b5d04]
fst dword [0x6b5d00]
fst dword [0x6b5cfc]
fst dword [0x6b5cf4]
fst dword [0x6b5cf0]
fst dword [0x6b5cec]
fst dword [0x6b5ce8]
fst dword [0x6b5ce0]
fst dword [0x6b5cdc]
fst dword [0x6b5cd8]
fst dword [0x6b5cd4]
fst dword [0x6b5d48]
fst dword [0x6b5d44]
fst dword [0x6b5d40]
fst dword [0x6b5d3c]
fst dword [0x6b5d34]
fst dword [0x6b5d30]
fst dword [0x6b5d2c]
fst dword [0x6b5d28]
fst dword [0x6b5d20]
fst dword [0x6b5d1c]
fst dword [0x6b5d18]
fst dword [0x6b5d14]
fst dword [0x6b5e08]
fst dword [0x6b5e04]
fst dword [0x6b5e00]
fst dword [0x6b5dfc]
fst dword [0x6b5df4]
fst dword [0x6b5df0]
fst dword [0x6b5dec]
fst dword [0x6b5de8]
fst dword [0x6b5de0]
fst dword [0x6b5ddc]
fst dword [0x6b5dd8]
fst dword [0x6b5dd4]
fst dword [0x6b5e48]
fst dword [0x6b5e3c]
fst dword [0x6b5e34]
fst dword [0x6b5e30]
fst dword [0x6b5e2c]
fst dword [0x6b5e28]
fst dword [0x6b5e20]
fst dword [0x6b5e1c]
fst dword [0x6b5e18]
fst dword [0x6b5e14]
fst dword [0x6b5e88]
fst dword [0x6b5e84]
fst dword [0x6b5e80]
fst dword [0x6b5e7c]
fst dword [0x6b5e74]
fst dword [0x6b5e70]
fst dword [0x6b5e6c]
fst dword [0x6b5e68]
fst dword [0x6b5e60]
fst dword [0x6b5e5c]
fst dword [0x6b5e58]
fstp dword [0x6b5e54]
fld dword [0x5fe558]
fstp dword [0x6b5de4]
fst dword [0x6b5e40]
fst dword [0x6b5e44]
fild dword [esp + 0x88]
fld qword [0x5fe2b8]
fmul st(1), st(0)
fxch st(1)
fstp dword [0x6b5e50]
fimul dword [esp + 0x8c]
fstp dword [0x6b5e64]
fstp dword [esp]
mov ecx, dword [0x684258]
push ecx
call fcn.0056b822
fld1
mov edx, dword [0x684258]
push 0
push 0x684280
push 8
push 8
sub esp, 0xc
fst dword [esp + 8]
fst dword [esp + 4]
fstp dword [esp]
push edx
call fcn.0056b3a5
fld1
mov eax, dword [0x684258]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x90]
push 0
push ecx
fstp dword [esp]
push 0xff000000
push 3
push 0
push 0
push eax
call edx
mov ecx, edi
call fcn.004f08a0
test al, al
jne 0x4f16a9
lea ecx, [esp + 0x40]
call fcn.0045c050
lea ecx, [esp + 0x24]
call fcn.0045c050
xor eax, eax
jmp 0x4f1746
mov ecx, edi
call fcn.004f0780
test al, al
je 0x4f1690
call fcn.004efc20
mov esi, dword [esp + 0x18]
cmp eax, 0x4000000
setb cl
cmp eax, 0x6400000
mov al, byte [0x68415c]
seta dl
shr al, 3
push 3
not al
and al, 1
push 0x611914
push esi
mov byte [0x684278], cl
mov byte [0x684279], dl
mov byte [0x6b5f23], al
call fcn.005a3a34
add esp, 0xc
test eax, eax
jne 0x4f1707
mov byte [0x6b5f20], 1
jmp 0x4f171b
push 4
push str.3dfx
push esi
call fcn.005a3a34
add esp, 0xc
test eax, eax
jne 0x4f1730
mov byte [0x684278], 1
mov byte [0x6b5f22], 1
mov byte [0x6b5f21], 1
lea ecx, [esp + 0x40]
call fcn.0045c050
lea ecx, [esp + 0x24]
call fcn.0045c050
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.005a09eb
add esp, 0x58
ret 0x18