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

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x120
mov rax, qword [0x1801f9940]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov rsi, r9
mov r14, rdx
mov qword [rsp + 0xf0], r8
mov qword [rsp + 0xe8], rdx
mov qword [rsp + 0x70], r9
mov r15, qword [rsp + 0x180]
mov qword [rsp + 0x80], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdx, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x180038775
mov rdx, qword [r14]
lea rcx, [rsi + 0x58]
mov dword [rcx], 0x50
mov dword [rcx + 4], 0x40
lea r8, [0x180038640]
mov qword [rcx + 8], r8
xor r13d, r13d
mov qword [rcx + 0x10], r13
mov qword [rcx + 0x18], rax
mov qword [rcx + 0x20], r13
mov qword [rcx + 0x28], r13
mov qword [rcx + 0x30], r13
mov qword [rcx + 0x38], r13
mov qword [rcx + 0x40], rdx
mov qword [rcx + 0x48], r13
call qword [sym.imp.USER32.dll_RegisterClassExA]
mov rdx, qword [rsi + 0x98]
cvttss2si ecx, dword [rsp + 0xf4]
cvttss2si r8d, dword [rsp + 0xf0]
mov qword [rsp + 0x58], r13
mov rax, qword [rsi + 0x70]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x28], 0x64
mov dword [rsp + 0x20], 0x64
mov r9d, 0x80000000
mov r8, rdx
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov qword [rsi], rax
test rax, rax
je 0x180038c35
mov ecx, 0x20
call qword [sym.imp.d3d9.dll_Direct3DCreate9]
mov qword [rsi + 8], rax
test rax, rax
je 0x180038c5d
mov qword [rsi + 0x18], r13
mov qword [rsi + 0x24], r13
mov dword [rsi + 0x2c], r13d
mov qword [rsi + 0x34], r13
mov dword [rsi + 0x3c], r13d
mov qword [rsi + 0x4c], r13
mov dword [rsi + 0x40], 1
mov dword [rsi + 0x30], 1
mov dword [rsi + 0x20], r13d
mov dword [rsi + 0x44], 1
mov dword [rsi + 0x48], 0x50
mov dword [rsi + 0x54], 1
mov rcx, rax
mov rax, qword [rax]
mov r10, qword [rax + 0x80]
lea r12, [rsi + 0x10]
lea rax, [rsi + 0x18]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x40
mov r9, qword [rsi]
xor edx, edx
mov r8d, 1
call r10
test eax, eax
js 0x180038c5d
mov rdi, qword [rsi]
lea rdx, [rsp + 0xf8]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
sub eax, dword [rsp + 0x104]
cdq
sub eax, edx
sar eax, 1
mov ebx, eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
sub eax, dword [rsp + 0x100]
cdq
sub eax, edx
sar eax, 1
mov r8d, eax
mov dword [rsp + 0x30], 5
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
mov r9d, ebx
xor edx, edx
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowPos]
mov edx, 0xa
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rax, qword [0x180209130]
test rax, rax
je 0x180038943
inc dword [rax + 0xec]
mov ecx, 0x6218
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x108], rax
lea rcx, [rsp + 0x60]
mov qword [rsp + 0xf0], rcx
mov qword [rsp + 0xf8], rax
test rax, rax
je 0x18003897c
xor edx, edx
mov rcx, rax
call fcn.180016bd0
jmp 0x18003897f
mov rax, r13
cmp qword [0x180209130], 0
jne 0x180038990
mov qword [0x180209130], rax
mov rcx, rax
call fcn.180006a10
mov rcx, qword [r15 + 0x38]
test rcx, rcx
jne 0x1800389a7
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + reloc.WS2_32.dll_recv]
mov rsi, qword [rsi]
mov rbx, qword [0x180209130]
lea rcx, [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x180038b1d
lea rcx, [rsp + 0x108]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x180038b1d
mov rax, qword [0x180209130]
test rax, rax
je 0x1800389f8
inc dword [rax + 0xec]
mov ecx, 0x48
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x180038a25
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
mov qword [rdi + 0x40], rax
jmp 0x180038a28
mov rdi, r13
mov qword [rbx + 0x90], rdi
lea rax, str.imgui_impl_win32
mov qword [rbx + 0x80], rax
or dword [rbx + 0xc], 6
mov qword [rdi], rsi
mov byte [rdi + 0x2d], 1
mov rax, qword [rsp + 0xf0]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x108]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
mov rax, qword [0x180209130]
mov rax, qword [rax + 0x4070]
mov rcx, qword [rax]
mov qword [rcx + 0x28], rsi
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x88], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x90], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x98], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0xa0], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0xa8], rax
mov rbx, r13
nop word [rax + rax]
mov rcx, qword [rsp + rbx*8 + 0x88]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x180038af1
inc rbx
cmp rbx, 5
jl 0x180038ad0
jmp 0x180038b1d
mov qword [rdi + 0x30], rsi
lea rdx, str.XInputGetCapabilities
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x38], rax
lea rdx, str.XInputGetState
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x40], rax
mov rdi, qword [r12]
mov rbx, qword [0x180209130]
test rbx, rbx
je 0x180038b33
inc dword [rbx + 0xec]
mov ecx, 0x28
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x180038b62
mov qword [rax], r13
mov qword [rax + 8], r13
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], r13
mov dword [rax + 0x20], 0x1388
mov dword [rax + 0x24], 0x2710
jmp 0x180038b65
mov rax, r13
mov qword [rbx + 0x98], rax
lea rcx, str.imgui_impl_dx9
mov qword [rbx + 0x88], rcx
or dword [rbx + 0xc], 8
mov qword [rax], rdi
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [r14 + 0x18]
cmp rdx, 0xf
jbe 0x180038bc1
mov rcx, qword [r14]
inc rdx
cmp rdx, 0x1000
jb 0x180038bbc
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180038bee
mov rcx, r8
call fcn.18013a0b0
mov qword [r14 + 0x10], r13
mov qword [r14 + 0x18], reloc.WS2_32.dll_ntohs
mov byte [r14], 0
mov rcx, qword [r15 + 0x38]
test rcx, rcx
je 0x180038bea
mov rax, qword [rcx]
cmp rcx, r15
setne dl
call qword [rax + 0x20]
mov qword [r15 + 0x38], r13
mov al, 1
jmp 0x180038c12
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, qword [rsp + 0xe8]
call fcn.180017e20
nop
mov rcx, qword [rsp + 0x80]
call fcn.1800355e0
xor al, al
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.18013a090
add rsp, 0x120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
lea rdx, str.error_while_creating_the_window
lea rcx, [rsp + 0xb8]
call fcn.180033c00
lea rdx, [0x1801f4f68]
lea rcx, [rsp + 0xb8]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rdx, str.cannot_create_device_
lea rcx, [rsp + 0xd0]
call fcn.180033c00
lea rdx, [0x1801f4f68]
lea rcx, [rsp + 0xd0]
call sub.VCRUNTIME140.dll__CxxThrowException
int3