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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
mov eax, dword [0x452040]
xor eax, esp
mov dword [esp + 0x74], eax
push esi
push edi
mov dword [esp + 0x18], 0xffffffff
call fcn.00405300
mov esi, eax
call fcn.004031f0
test al, al
mov edx, 0x443ba0
mov ecx, 0x443b9c
cmove ecx, edx
push ecx
push str.Looking_up_DX8_Offsets___s_bits_
push 0x41
push str.C:packagesIGOProxydev_774277_sourceDX8.cpp
push esi
call fcn.004052c0
add esp, 0x14
push str.d3d8.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esp + 0x10], eax
test eax, eax
je 0x406213
push str.Direct3DCreate8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4061d6
push 0x443bec
call fcn.00404090
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
je 0x4061f3
push 0xdc
call esi
mov edi, eax
test edi, edi
je 0x40618e
mov eax, dword [edi]
lea ecx, [esp + 0x50]
push ecx
push 0
xorps xmm0, xmm0
push edi
movaps xmmword [esp + 0x5c], xmm0
call dword [eax + 0x20]
mov esi, eax
test esi, esi
js 0x406145
movaps xmm0, xmmword [0x443e90]
xor esi, esi
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x64], ecx
movups xmmword [esp + 0x68], xmm0
mov dword [esp + 0x78], 0x19
mov eax, dword [edi]
push 1
push dword [esp + esi*4 + 0x68]
push ecx
push 1
push 0
push edi
call dword [eax + 0x24]
test eax, eax
jns 0x405e58
inc esi
cmp esi, 6
jae 0x406134
mov ecx, dword [esp + 0x5c]
jmp 0x405e33
call fcn.00405300
push dword [esp + 0x5c]
push dword [esp + esi*4 + 0x68]
push esi
push str.Using_display_format_idx_d__format0x_08x___mode.Format0x_08x_
push 0x66
push str.C:packagesIGOProxydev_774277_sourceDX8.cpp
push eax
call fcn.004052c0
add esp, 0x1c
cmp esi, 0xffffffff
je 0x406134
push 0x34
lea eax, [esp + 0x20]
push 0
push eax
call fcn.00423140
mov eax, dword [esp + esi*4 + 0x70]
add esp, 0xc
mov esi, dword [esp + 0xc]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x38], 1
mov dword [esp + 0x30], 3
mov dword [esp + 0x34], esi
mov dword [esp + 0xc], 0
call fcn.00405300
cmp byte [eax + 0x27c], 0
je 0x405f18
call fcn.00405300
push str.Creating_device_with_D3DCREATE_PUREDEVICE
push 0x80
push str.C:packagesIGOProxydev_774277_sourceDX8.cpp
push eax
call fcn.004052c0
add esp, 0x10
mov eax, dword [edi]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x20]
push ecx
push 0x10
push esi
push 1
push 0
push edi
call dword [eax + 0x3c]
mov dword [esp + 0x14], eax
test eax, eax
jns 0x40608d
call fcn.00405300
cmp byte [eax + 0x27c], 0
je 0x405f6a
call fcn.00405300
push dword [esp + 0x14]
push str.Creating_device_with_D3DCREATE_MIXED_VERTEXPROCESSING__PUREDEVICE_err___x
push 0x87
push str.C:packagesIGOProxydev_774277_sourceDX8.cpp
push eax
call fcn.004052c0
add esp, 0x14
mov eax, dword [edi]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x20]
push ecx
push 0x80
push esi
push 1
push 0
push edi
call dword [eax + 0x3c]
mov dword [esp + 0x14], eax
test eax, eax
jns 0x40608d
call fcn.00405300
cmp byte [eax + 0x27c], 0
je 0x405fbf
call fcn.00405300
push dword [esp + 0x14]
push str.Creating_device_with_D3DCREATE_SOFTWARE_VERTEXPROCESSING__D3DCREATE_MIXED_VERTEXPROCESSING_err___x
push 0x8f
push str.C:packagesIGOProxydev_774277_sourceDX8.cpp
push eax
call fcn.004052c0
add esp, 0x14
mov eax, dword [edi]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x20]
push ecx
push 0x20
push esi
push 1
push 0
push edi
call dword [eax + 0x3c]
mov dword [esp + 0x14], eax
test eax, eax
jns 0x40608d
call fcn.00405300
cmp byte [eax + 0x27c], 0
je 0x406011
call fcn.00405300
push dword [esp + 0x14]
push str.Creating_device_with_D3DCREATE_HARDWARE_VERTEXPROCESSING__D3DCREATE_SOFTWARE_VERTEXPROCESSING_err___x
push 0x97
push str.C:packagesIGOProxydev_774277_sourceDX8.cpp
push eax
call fcn.004052c0
add esp, 0x14
mov eax, dword [edi]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x20]
push ecx
push 0x40
push esi
push 1
push 0
push edi
call dword [eax + 0x3c]
mov dword [esp + 0x14], eax
test eax, eax
jns 0x40608d
call fcn.00405300
mov edi, dword [esp + 0x14]
push edi
push str.Unable_to_create_device___hr0x_08x
push 0xab
push str.C:packagesIGOProxydev_774277_sourceDX8.cpp
push eax
call fcn.004047c0
add esp, 0x14
cmp edi, 0x8876086a
mov edi, dword [esp + 0x10]
jne 0x4061b3
push esi
mov dword [esp + 0x1c], 0xfffffffe
call dword [sym.imp.USER32.dll_DestroyWindow]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x18]
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.00421ea0
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov dword [esp + 0x14], eax
test eax, eax
js 0x4060e2
push dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x18]
push edi
call fcn.00406250
mov dword [esp + 0x24], eax
add esp, 0xc
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x18]
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.00421ea0
mov esp, ebp
pop ebp
ret
call fcn.00405300
push dword [esp + 0x14]
push str.Failed_while_testing_cooperative_level___hr0x_08x
push 0xa4
push str.C:packagesIGOProxydev_774277_sourceDX8.cpp
push eax
call fcn.004047c0
mov eax, dword [esp + 0x20]
add esp, 0x14
mov edi, dword [esp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x18]
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.00421ea0
mov esp, ebp
pop ebp
ret
call fcn.00405300
push str.Unable_to_find_suitable_format
push 0xb3
jmp 0x40619d
call fcn.00405300
push esi
push str.Unable_to_query_adapter_mode___hr0x_08x
push 0xb6
push str.C:packagesIGOProxydev_774277_sourceDX8.cpp
push eax
call fcn.004047c0
mov esi, dword [esp + 0x20]
add esp, 0x14
mov edi, dword [esp + 0x10]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x18]
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.00421ea0
mov esp, ebp
pop ebp
ret
call fcn.00405300
push str.Unable_to_create_dx8_interface
push 0xb9
push str.C:packagesIGOProxydev_774277_sourceDX8.cpp
push eax
call fcn.004047c0
mov esi, dword [esp + 0x1c]
add esp, 0x10
mov edi, dword [esp + 0x10]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x18]
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.00421ea0
mov esp, ebp
pop ebp
ret
call fcn.00405300
push str.Unable_to_find_Direct3DCreate8
push 0xc1
push str.C:packagesIGOProxydev_774277_sourceDX8.cpp
push eax
call fcn.004047c0
add esp, 0x10
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x18]
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.00421ea0
mov esp, ebp
pop ebp
ret
call fcn.00405300
push str.Unable_to_load_DX8_dll
push 0xc7
push str.C:packagesIGOProxydev_774277_sourceDX8.cpp
push eax
call fcn.004047c0
mov ecx, dword [esp + 0x8c]
add esp, 0x10
mov eax, 0xfffffffe
pop edi
pop esi
xor ecx, esp
call fcn.00421ea0
mov esp, ebp
pop ebp
ret