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

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x140
mov rax, qword [0x1400ad030]
xor rax, rsp
mov qword [rsp + 0x138], rax
mov rsi, r9
mov r14, rdx
mov qword [rsp + 0x118], r8
mov qword [r11 - 0x68], rdx
mov qword [rsp + 0x70], r9
mov r15, qword [rsp + 0x1a0]
mov qword [r11 - 0xf8], r15
mov dword [rsp + 0x88], 0x50
mov dword [rsp + 0x8c], 0x40
lea rax, [0x140035de0]
mov qword [r11 - 0xe8], rax
xor r13d, r13d
mov qword [r11 - 0xe0], r13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0xa0], rax
xorps xmm2, xmm2
xorps xmm3, xmm3
mov rax, r14
cmp qword [r14 + 0x18], 0x10
jb 0x140035f4e
mov rax, qword [r14]
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], r13
lea rcx, [rsi + 0x58]
movups xmm0, xmmword [rsp + 0x88]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rsp + 0x98]
movups xmmword [rcx + 0x10], xmm1
movups xmmword [rcx + 0x20], xmm2
movups xmmword [rcx + 0x30], xmm3
movups xmm0, xmmword [rsp + 0xc8]
movups xmmword [rcx + 0x40], xmm0
call qword [sym.imp.USER32.dll_RegisterClassExA]
mov rdx, qword [rsi + 0x98]
cvttss2si ecx, dword [rsp + 0x11c]
cvttss2si r8d, dword [rsp + 0x118]
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 0x14003641b
mov ecx, 0x20
call qword [sym.imp.d3d9.dll_Direct3DCreate9]
mov qword [rsi + 8], rax
test rax, rax
je 0x140036448
lea rdx, [rsi + 0x18]
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]
lea r12, [rsi + 0x10]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x40
mov r9, qword [rsi]
xor edx, edx
lea r8d, [rdx + 1]
call qword [rax + 0x80]
test eax, eax
js 0x140036448
mov rdi, qword [rsi]
lea rdx, [rsp + 0x120]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
sub eax, dword [rsp + 0x12c]
cdq
sub eax, edx
sar eax, 1
mov ebx, eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
sub eax, dword [rsp + 0x128]
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 [0x1400af9d0]
test rax, rax
je 0x140036116
inc dword [rax + 0xec]
mov rdx, qword [0x1400af9c0]
mov ecx, 0x61d8
call fcn.1400048e0
mov qword [rsp + 0x130], rax
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x118], rcx
mov qword [rsp + 0x120], rax
test rax, rax
je 0x140036158
xor edx, edx
mov rcx, rax
call fcn.140003c40
mov rcx, rax
jmp 0x14003615b
mov rcx, r13
mov rax, qword [0x1400af9d0]
test rax, rax
cmove rax, rcx
mov qword [0x1400af9d0], rax
call fcn.140009a10
mov rcx, qword [r15 + 0x38]
test rcx, rcx
je 0x140036443
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x10]
mov rsi, qword [rsi]
mov rbx, qword [0x1400af9d0]
lea rcx, [rsp + 0x118]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1400362fd
lea rcx, [rsp + 0x130]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1400362fd
mov rax, qword [0x1400af9d0]
test rax, rax
je 0x1400361d3
inc dword [rax + 0xec]
mov rdx, qword [0x1400af9c0]
mov ecx, 0x48
call fcn.1400048e0
mov rdi, rax
test rax, rax
je 0x140036206
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 0x140036209
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 + 0x118]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x130]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
mov rax, qword [0x1400af9d0]
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 dword [rax + rax]
mov rcx, qword [rsp + rbx*8 + 0x88]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x1400362d1
inc rbx
cmp rbx, 5
jl 0x1400362b0
jmp 0x1400362fd
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 [0x1400af9d0]
test rbx, rbx
je 0x140036313
inc dword [rbx + 0xec]
mov rdx, qword [0x1400af9c0]
mov ecx, 0x28
call fcn.1400048e0
test rax, rax
je 0x140036348
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 0x14003634b
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, 0x10
jb 0x1400363ab
mov rcx, qword [r14]
inc rdx
cmp rdx, 0x1000
jb 0x1400363a6
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140036471
mov rcx, r8
call fcn.14003940c
mov qword [r14 + 0x10], r13
mov qword [r14 + 0x18], 0xf
mov byte [r14], 0
mov rcx, qword [r15 + 0x38]
test rcx, rcx
je 0x1400363d7
mov rax, qword [rcx]
cmp rcx, r15
sete dl
xor dl, 1
call qword [rax + 0x20]
mov qword [r15 + 0x38], r13
mov al, 1
jmp 0x1400363f8
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.140039090
add rsp, 0x140
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 + 0xe0]
call fcn.140035d40
lea rdx, [0x1400abb88]
lea rcx, [rsp + 0xe0]
call fcn.14003adc0
call fcn.140038294
lea rdx, str.cannot_create_device_
lea rcx, [rsp + 0xf8]
call fcn.140035d40
lea rdx, [0x1400abb88]
lea rcx, [rsp + 0xf8]
call fcn.14003adc0
nop
call fcn.14003e04c
int3