Function at 0x418a90
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x588fff
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x5f3fcc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0x10]
lea ecx, [ebp - 0x34]
push ecx
push 0
push eax
mov edx, dword [eax]
call dword [edx + 0x20]
test eax, eax
jns 0x418aeb
push str.Unable_to_Get_Adapter_Display_Mode
push dword [0x5fd6d0]
call fcn.0040b090
add esp, 8
or eax, 0xffffffff
jmp 0x418d40
mov eax, dword [ebp - 0x34]
xorps xmm0, xmm0
mov ecx, dword [ebx + 0x10]
add eax, 3
and eax, 0xfffffffc
movlpd qword [ebp - 0x68], xmm0
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x74], eax
lea eax, [ebx + 0x14]
push eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x5c], 0
push eax
push 0x20
push 0
push 1
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x4c], xmm0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x6c], 1
mov dword [ebp - 0x60], 1
mov dword [ebp - 0x70], 0x15
mov edx, dword [ecx]
push 0
push ecx
call dword [edx + 0x40]
test eax, eax
jns 0x418b72
push eax
push str.Create_D3D9_device_failed_0x_x
push dword [0x5fd6d0]
call fcn.0040b090
add esp, 0xc
or eax, 0xffffffff
jmp 0x418d40
mov eax, dword [ebp - 0x30]
mov ecx, 0xff
mov word [ebp - 0x20], cx
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x16], 0
mov dword [ebp - 0x24], 0x180020
mov dword [ebp - 0x1e], 0xff00ff
mov dword [ebp - 0x1a], 0x80010
mov dword [ebx + 0x84], 0
mov dword [ebx + 0x88], 0
mov dword [ebx + 0x8c], ecx
mov dword [ebx + 0x90], eax
mov dword [ebp - 0x40], vtable.Dimension.0
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], eax
lea ecx, [ebx + 0x40]
mov dword [ebp - 4], 0
mov eax, dword [ecx]
lea edx, [ebp - 0x24]
push edx
lea edx, [ebp - 0x40]
push edx
call dword [eax + 0x48]
movzx eax, word [ebx + 0xa8]
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x70], 0
cmp eax, 1
je 0x418c0b
cmp eax, 3
je 0x418c0b
mov eax, dword [ebp - 0x34]
mov dword [ebx + 0x74], eax
mov eax, dword [ebp - 0x30]
jmp 0x418c14
mov eax, dword [ebp - 0x30]
mov dword [ebx + 0x74], eax
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x24]
mov dword [ebx + 0x78], eax
mov eax, dword [ebx + 0x18]
lea ecx, [ebx + 0x68]
push edx
push ecx
lea ecx, [ebx + 0x18]
call dword [eax + 0x58]
mov eax, dword [ebx + 0x18]
lea ecx, [ebx + 0x18]
push 0
push 0
push 0
call dword [eax + 0xc]
push dword [ebx + 0x78]
movzx eax, word [ebx + 0xa8]
push dword [ebx + 0x74]
push eax
push str.m_orientation__d__m_targetRect.right__d__m_targetRect.bottom__d
push dword [0x5fd6d0]
call fcn.0040b090
mov eax, dword [ebx + 0xb0]
add esp, 0x14
mov esi, dword [ebx + 0xac]
mov dword [ebp - 0x80], eax
cmp esi, eax
je 0x418cee
nop
push 0x60
call fcn.00422160
mov edi, eax
add esp, 4
mov dword [ebp - 0x84], edi
mov byte [ebp - 4], 1
test edi, edi
je 0x418caf
push 0x60
push 0
push edi
call fcn.0056a3b0
add esp, 0xc
lea eax, [ebx + 0x68]
mov ecx, edi
push eax
lea eax, [ebx + 0x18]
push eax
push dword [esi + 4]
push dword [esi]
call fcn.0041a640
mov edi, eax
jmp 0x418cb1
xor edi, edi
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.0041a8b0
test eax, eax
jne 0x418ce6
mov eax, dword [ebx + 0xbc]
lea ecx, [ebx + 0xb8]
mov dword [ebp - 0x7c], edi
cmp dword [ecx + 8], eax
je 0x418cdc
mov dword [eax], edi
add dword [ecx + 4], 4
jmp 0x418ce6
lea edx, [ebp - 0x7c]
push edx
push eax
call fcn.00407810
add esi, 8
cmp esi, dword [ebp - 0x80]
jne 0x418c70
push 0xc0
call fcn.00422160
mov esi, eax
add esp, 4
mov dword [ebp - 0x84], esi
mov byte [ebp - 4], 2
test esi, esi
je 0x418d24
push 0xc0
push 0
push esi
call fcn.0056a3b0
add esp, 0xc
mov ecx, esi
call fcn.0041bea0
jmp 0x418d26
xor eax, eax
push dword [ebx + 4]
mov dword [ebx + 0xd4], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne al
mov byte [ebx + 0xc], al
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00567879
mov esp, ebp
pop ebp
ret