Function at 0x140036440
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 [0x1400b1080]
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 0x1400364a5
mov rdx, qword [r14]
lea rcx, [rsi + 0x58]
mov dword [rcx], 0x50
mov dword [rcx + 4], 0x40
lea r8, [0x140036370]
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 0x140036961
mov ecx, 0x20
call qword [sym.imp.d3d9.dll_Direct3DCreate9]
mov qword [rsi + 8], rax
test rax, rax
je 0x14003698e
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 0x14003698e
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 [0x140296510]
test rax, rax
je 0x140036673
inc dword [rax + 0xec]
mov ecx, 0x61d8
call fcn.140048c10
mov qword [rsp + 0x108], rax
lea rcx, [rsp + 0x60]
mov qword [rsp + 0xf0], rcx
mov qword [rsp + 0xf8], rax
test rax, rax
je 0x1400366ab
xor edx, edx
mov rcx, rax
call fcn.140003a80
jmp 0x1400366ae
mov rax, r13
cmp qword [0x140296510], 0
jne 0x1400366bf
mov qword [0x140296510], rax
mov rcx, rax
call fcn.140009cf0
mov rcx, qword [r15 + 0x38]
test rcx, rcx
je 0x140036989
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x10]
mov rsi, qword [rsi]
mov rbx, qword [0x140296510]
lea rcx, [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14003684d
lea rcx, [rsp + 0x108]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14003684d
mov rax, qword [0x140296510]
test rax, rax
je 0x140036725
inc dword [rax + 0xec]
mov ecx, 0x48
call fcn.140048c10
mov rdi, rax
test rax, rax
je 0x140036751
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 0x140036754
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 [0x140296510]
mov rax, qword [rax + 0x4030]
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 0x140036821
inc rbx
cmp rbx, 5
jl 0x140036800
jmp 0x14003684d
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 [0x140296510]
test rbx, rbx
je 0x140036863
inc dword [rbx + 0xec]
mov ecx, 0x28
call fcn.140048c10
test rax, rax
je 0x140036891
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 0x140036894
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 + 8]
nop
mov rdx, qword [r14 + 0x18]
cmp rdx, 0xf
jbe 0x1400368f4
mov rcx, qword [r14]
inc rdx
cmp rdx, 0x1000
jb 0x1400368ef
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400369b7
mov rcx, r8
call fcn.14003976c
mov qword [r14 + 0x10], r13
mov qword [r14 + 0x18], 0xf
mov byte [r14], 0
mov rcx, qword [r15 + 0x38]
test rcx, rcx
je 0x14003691d
mov rax, qword [rcx]
cmp rcx, r15
setne dl
call qword [rax + 0x20]
mov qword [r15 + 0x38], r13
mov al, 1
jmp 0x14003693e
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.140039400
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.1400362d0
lea rdx, [0x1400afa40]
lea rcx, [rsp + 0xb8]
call fcn.14003b5b0
call fcn.1400388c4
lea rdx, str.cannot_create_device_
lea rcx, [rsp + 0xd0]
call fcn.1400362d0
lea rdx, [0x1400afa40]
lea rcx, [rsp + 0xd0]
call fcn.14003b5b0
nop
call fcn.14003f4c4
int3