Function at 0x10001070
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
push str.GetAddresses__
call esi
push 0x30
lea eax, [esp + 0x28]
push 0
push eax
call fcn.100089b0
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [esp + 0x24], 0x30
mov dword [esp + 0x28], 3
push 0
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
call edi
push 0x7f00
push 0
mov dword [esp + 0x40], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x48], 6
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0x100175c4
call dword [sym.imp.USER32.dll_RegisterClassExW]
test ax, ax
jne 0x10001122
push str.Failure_n
call esi
movdqa xmm0, xmmword [0x10017b90]
lea eax, [esp + 0x90]
push 0
push 0xcf0000
push eax
movdqu xmmword [esp + 0x9c], xmm0
call dword [sym.imp.USER32.dll_AdjustWindowRect]
push 0
push 0
call edi
push eax
mov eax, dword [esp + 0xa4]
sub eax, dword [esp + 0x9c]
push 0
push 0
push eax
mov eax, dword [esp + 0xac]
sub eax, dword [esp + 0xa4]
push eax
push 0x80000000
push 0x80000000
push 0xcf0000
push 0x100175c4
push 0x100175c4
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x10001595
push 0x3c
lea eax, [esp + 0xa4]
push 0
push eax
call fcn.100089b0
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0xc
mov dword [esp + 0xc8], 1
mov dword [esp + 0xa0], 0x280
mov dword [esp + 0xa4], 0x1e0
push str.D3D11.dll
mov dword [esp + 0xb4], 0x1c
mov dword [esp + 0xac], 0x3c
mov dword [esp + 0xb0], 1
mov dword [esp + 0xc8], 0x20
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xc0], 1
mov dword [esp + 0xc4], 0
mov dword [esp + 0xd4], 1
call edi
test eax, eax
je 0x1000130d
push str.D3D11CreateDeviceAndSwapChain
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esp + 0x14]
mov dword [0x1001b234], eax
push ecx
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0xb0]
push ecx
push 7
push 0
push 0
push 0
push 0
push 1
push 0
call eax
test eax, eax
js 0x10001314
mov eax, dword [esp + 0x14]
mov edx, dword [0x1001b24c]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x30]
mov dword [edx + 0x278], eax
mov dword [edx + 0x27c], 0
mov eax, dword [ecx + 0x34]
mov dword [edx + 0x280], eax
mov dword [edx + 0x284], 0
mov eax, dword [ecx + 0x50]
mov dword [edx + 0x288], eax
mov dword [edx + 0x28c], 0
mov eax, dword [ecx + 0x54]
mov dword [edx + 0x290], eax
mov dword [edx + 0x294], 0
mov eax, dword [ecx + 0x98]
mov dword [edx + 0x298], eax
mov dword [edx + 0x29c], 0
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x10001314
push str.D3D11.dll_not_loaded
call esi
push str.D3D10.dll
call edi
test eax, eax
je 0x10001407
push str.D3D10CreateDeviceAndSwapChain
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esp + 0x18]
mov dword [0x1001b238], eax
push ecx
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0xa8]
push ecx
push 0x1d
push 0
push 0
push 0
push 0
call eax
test eax, eax
js 0x1000140e
mov eax, dword [esp + 0x10]
mov edx, dword [0x1001b24c]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x20]
mov dword [edx + 0x200], eax
mov dword [edx + 0x204], 0
mov eax, dword [ecx + 0x34]
mov dword [edx + 0x208], eax
mov dword [edx + 0x20c], 0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x20]
mov dword [edx + 0x250], eax
mov dword [edx + 0x254], 0
mov eax, dword [ecx + 0x24]
mov dword [edx + 0x258], eax
mov dword [edx + 0x25c], 0
mov eax, dword [ecx + 0x38]
mov dword [edx + 0x260], eax
mov dword [edx + 0x264], 0
mov eax, dword [ecx + 0x3c]
mov dword [edx + 0x268], eax
mov dword [edx + 0x26c], 0
mov eax, dword [ecx + 0x70]
mov dword [edx + 0x270], eax
mov dword [edx + 0x274], 0
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x1000140e
push str.D3D10_dll_not_loaded
call esi
push str.D3D9.dll
call edi
test eax, eax
je 0x10001587
push str.Direct3DCreate9
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1001b230], eax
test eax, eax
je 0x10001580
push 0x20
call eax
mov edi, eax
test edi, edi
je 0x10001579
push 0x38
lea eax, [esp + 0x5c]
push 0
push eax
call fcn.100089b0
mov eax, dword [edi]
lea ecx, [esp + 0x28]
add esp, 0xc
mov dword [esp + 0x78], 1
mov dword [esp + 0x70], 3
push ecx
lea ecx, [esp + 0x5c]
push ecx
push 0x20
push ebx
push 1
push 0
push edi
call dword [eax + 0x40]
test eax, eax
js 0x1000156a
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x1000155b
mov ecx, dword [ecx]
mov edx, dword [0x1001b24c]
mov eax, dword [ecx + 0x44]
mov dword [edx + 0x210], eax
mov dword [edx + 0x214], 0
mov eax, dword [ecx + 0x40]
mov dword [edx + 0x218], eax
mov dword [edx + 0x21c], 0
mov eax, dword [ecx + 0x144]
mov dword [edx + 0x220], eax
mov dword [edx + 0x224], 0
mov eax, dword [ecx + 0x148]
mov dword [edx + 0x228], eax
mov dword [edx + 0x22c], 0
mov eax, dword [ecx + 0x14c]
mov dword [edx + 0x230], eax
mov dword [edx + 0x234], 0
mov eax, dword [ecx + 0x150]
mov dword [edx + 0x238], eax
mov dword [edx + 0x23c], 0
mov eax, dword [ecx + 0x1cc]
mov dword [edx + 0x240], eax
mov dword [edx + 0x244], 0
mov eax, dword [ecx + 0x1d0]
mov dword [edx + 0x248], eax
mov dword [edx + 0x24c], 0
mov eax, dword [esp + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push str.Success:_Fetched_the_Direct3D9_method_addresses
call esi
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x1000158e
push str.d3d9device_is_NULL
call esi
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x1000158e
push str.FAILED_d3d9__CreateDevice_D3DADAPTER_DEFAULT__D3DDEVTYPE_HAL__x__D3DCREATE_SOFTWARE_VERTEXPROCESSING__d3dpp__d3d9device__
call esi
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x1000158e
push str.D3DCreate9_failed
jmp 0x1000158c
push str.Direct3DCreate9_not_found
jmp 0x1000158c
push str.D3D9_dll_not_loaded
call esi
push ebx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10003a46
mov esp, ebp
pop ebp
ret