Function at 0x140047200
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x148]
sub rsp, 0x218
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
movaps xmmword [rax - 0x78], xmm9
mov rsi, qword [0x14008ab60]
lea rdx, [0x14008ab68]
mov ecx, 0x20
call qword [sym.imp.d3d9.dll_Direct3DCreate9Ex]
test eax, eax
jns 0x140047258
mov ecx, 3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor r14d, r14d
mov qword [rsp + 0x4c], r14
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x74], r14
mov dword [rsp + 0x68], 1
mov qword [rsp + 0x60], rsi
mov dword [rsp + 0x54], r14d
mov dword [rsp + 0x48], 0x15
mov eax, dword [0x14008abe4]
mov dword [rsp + 0x40], eax
mov eax, dword [0x14008abe0]
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x6c], 1
mov dword [rsp + 0x70], 0x50
mov dword [rsp + 0x7c], 0x80000000
mov rcx, qword [0x14008ab68]
mov rax, qword [rcx]
lea rdx, [0x14008ab98]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], r14
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x40
mov r9, rsi
xor edx, edx
mov r8d, 1
call qword [rax + 0xa0]
test eax, eax
jns 0x14004730f
mov rcx, qword [0x14008ab68]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov ecx, 4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rbx, qword [0x14008ab00]
test rbx, rbx
je 0x140047321
inc dword [rbx + 0xec]
mov ecx, 0x5678
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp + 0x158], rax
lea rcx, [rbp + 0x150]
mov qword [rbp + 0x160], rcx
mov qword [rbp + 0x168], rax
test rax, rax
je 0x140047359
xor edx, edx
mov rcx, rax
call fcn.140001300
jmp 0x14004735c
mov rax, r14
mov qword [0x14008ab00], rax
call fcn.140008100
test rbx, rbx
je 0x140047376
mov qword [0x14008ab00], rbx
jmp 0x14004737d
mov rbx, qword [0x14008ab00]
mov rdi, qword [rbx + 0x50]
mov qword [rbp + 0x150], r14
lea r8, [rbp + 0x150]
lea r15, str.c:windows_fontsMingLIU.ttf
mov rcx, r15
call fcn.140002bd0
mov rbx, rax
test rax, rax
je 0x14004751a
xorps xmm2, xmm2
xor eax, eax
movups xmmword [rbp - 0x80], xmm2
movups xmmword [rbp - 0x70], xmm2
movups xmmword [rbp - 0x40], xmm2
movups xmmword [rbp - 0x30], xmm2
mov qword [rbp], rax
mov byte [rbp - 0x74], 1
mov dword [rbp - 0x68], 3
mov dword [rbp - 0x64], 1
mov dword [rbp - 0x3c], 0x7f7fffff
mov dword [rbp - 0x30], 0x3f800000
mov eax, 0xffff
mov word [rbp - 0x2c], ax
movups xmm3, xmmword [rbp - 0x80]
movaps xmmword [rbp + 0x40], xmm3
movups xmm4, xmmword [rbp - 0x70]
movaps xmmword [rbp + 0x50], xmm4
movaps xmmword [rbp + 0x60], xmm2
xorps xmm5, xmm5
movaps xmmword [rbp + 0x70], xmm5
movups xmm6, xmmword [rbp - 0x40]
movaps xmmword [rbp + 0x80], xmm6
movups xmm1, xmmword [rbp - 0x30]
movaps xmmword [rbp + 0x90], xmm1
xorps xmm7, xmm7
movaps xmmword [rbp + 0xa0], xmm7
xorps xmm8, xmm8
movaps xmmword [rbp + 0xb0], xmm8
movsd xmm9, qword [rbp]
movsd qword [rbp + 0xc0], xmm9
movdqa xmm0, xmm1
psrldq xmm0, 6
movd eax, xmm0
test al, al
jne 0x1400474d3
lea r9, [0x140059e44]
nop
lea rcx, [r9 - 1]
movzx eax, byte [rcx]
cmp al, 0x2f
je 0x140047477
cmp al, 0x5c
je 0x140047477
mov r9, rcx
cmp rcx, r15
ja 0x140047460
movsd xmm0, qword [0x14005a2d8]
movsd qword [rsp + 0x20], xmm0
lea r8, str._s___.0fpx
mov edx, 0x28
lea rcx, [rbp + 0x96]
call fcn.1400028b0
movsd xmm9, qword [rbp + 0xc0]
movaps xmm8, xmmword [rbp + 0xb0]
movaps xmm7, xmmword [rbp + 0xa0]
movaps xmm1, xmmword [rbp + 0x90]
movaps xmm6, xmmword [rbp + 0x80]
movaps xmm5, xmmword [rbp + 0x70]
movaps xmm2, xmmword [rbp + 0x60]
movaps xmm4, xmmword [rbp + 0x50]
movaps xmm3, xmmword [rbp + 0x40]
movaps xmmword [rbp - 0x80], xmm3
movaps xmmword [rbp - 0x70], xmm4
movaps xmmword [rbp - 0x60], xmm2
movaps xmmword [rbp - 0x50], xmm5
movaps xmmword [rbp - 0x40], xmm6
movaps xmmword [rbp - 0x30], xmm1
movaps xmmword [rbp - 0x20], xmm7
movaps xmmword [rbp - 0x10], xmm8
movsd qword [rbp], xmm9
mov qword [rbp - 0x80], rbx
mov eax, dword [rbp + 0x150]
mov dword [rbp - 0x78], eax
mov dword [rbp - 0x6c], 0x41700000
lea rdx, [rbp - 0x80]
mov rcx, rdi
call fcn.1400253c0
mov rdi, qword [0x14008ab00]
lea rcx, [rbp + 0x158]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14004766a
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14004766a
mov rax, qword [0x14008ab00]
test rax, rax
je 0x14004755d
inc dword [rax + 0xec]
mov ecx, 0x48
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x14004758a
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
movups xmmword [rbx + 0x20], xmm0
movups xmmword [rbx + 0x30], xmm0
mov qword [rbx + 0x40], rax
jmp 0x14004758d
mov rbx, r14
mov qword [rdi + 0x90], rbx
lea rax, str.imgui_impl_win32
mov qword [rdi + 0x80], rax
or dword [rdi + 0xc], 6
mov qword [rbx], rsi
mov byte [rbx + 0x2d], 1
mov rax, qword [rbp + 0x158]
mov qword [rbx + 0x20], rax
mov rax, qword [rbp + 0x160]
mov qword [rbx + 0x18], rax
mov dword [rbx + 0x28], 9
mov rax, qword [0x14008ab00]
mov rcx, qword [rax + 0x40b0]
mov rax, qword [rcx]
mov qword [rax + 0x28], rsi
lea rax, str.xinput1_4.dll
mov qword [rbp + 0x10], rax
lea rax, str.xinput1_3.dll
mov qword [rbp + 0x18], rax
lea rax, str.xinput9_1_0.dll
mov qword [rbp + 0x20], rax
lea rax, str.xinput1_2.dll
mov qword [rbp + 0x28], rax
lea rax, str.xinput1_1.dll
mov qword [rbp + 0x30], rax
mov rdi, r14
nop dword [rax]
mov rcx, qword [rbp + rdi*8 + 0x10]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x14004763e
inc rdi
cmp rdi, 5
jl 0x140047620
jmp 0x14004766a
mov qword [rbx + 0x30], rsi
lea rdx, str.XInputGetCapabilities
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x38], rax
lea rdx, str.XInputGetState
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x40], rax
mov rdi, qword [0x14008ab98]
mov rbx, qword [0x14008ab00]
test rbx, rbx
je 0x140047683
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 0x1400476b2
mov qword [rax], r14
mov qword [rax + 8], r14
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r14
mov dword [rax + 0x20], 0x1388
mov dword [rax + 0x24], 0x2710
jmp 0x1400476b5
mov rax, r14
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 + VariantCopy]
xor ecx, ecx
call fcn.140020970
mov rax, qword [0x14008ab00]
mov dword [rax + 0x3800], 0x41700000
mov dword [rax + 0x3804], 0x41700000
mov dword [rax + 0x3808], 0x40a00000
mov dword [rax + 0x3834], 0x40a00000
mov dword [rax + 0x3838], 0x40a00000
mov dword [rax + 0x3844], 0x41400000
mov dword [rax + 0x3848], 0x41000000
mov dword [rax + 0x384c], 0x41000000
mov dword [rax + 0x3850], 0x40c00000
mov dword [rax + 0x3864], 0x41c80000
mov dword [rax + 0x386c], 0x41700000
mov dword [rax + 0x3870], 0x41100000
mov dword [rax + 0x3874], 0x40a00000
mov dword [rax + 0x3878], 0x40400000
movdqa xmm0, xmmword [0x14005aa40]
movups xmmword [rax + 0x38c0], xmm0
movdqa xmm4, xmmword [0x14005a940]
movups xmmword [rax + 0x38d0], xmm4
movdqa xmm5, xmmword [0x14005a8d0]
movups xmmword [rax + 0x38e0], xmm5
movdqa xmm2, xmmword [0x14005a8e0]
movups xmmword [rax + 0x3900], xmm2
movdqa xmm0, xmmword [0x14005a7e0]
movups xmmword [rax + 0x3910], xmm0
movdqa xmm1, xmmword [0x14005a4b0]
movups xmmword [rax + 0x3920], xmm1
movdqa xmm3, xmmword [0x14005a8f0]
movups xmmword [rax + 0x3930], xmm3
movups xmmword [rax + 0x3940], xmm4
movdqa xmm1, xmmword [0x14005a9e0]
movups xmmword [rax + 0x3950], xmm1
movups xmmword [rax + 0x3960], xmm3
movdqa xmm0, xmmword [0x14005a730]
movups xmmword [rax + 0x3980], xmm0
movups xmmword [rax + 0x3970], xmm2
movups xmmword [rax + 0x3990], xmm3
movups xmmword [rax + 0x39a0], xmm3
movdqa xmm0, xmmword [0x14005a580]
movups xmmword [rax + 0x39b0], xmm0
movups xmmword [rax + 0x39c0], xmm1
movups xmmword [rax + 0x39d0], xmm5
movups xmmword [rax + 0x39e0], xmm0
movups xmmword [rax + 0x39f0], xmm0
movups xmmword [rax + 0x3a00], xmm5
movups xmmword [rax + 0x3a10], xmm3
movups xmmword [rax + 0x3a20], xmm4
movups xmmword [rax + 0x3a30], xmm1
movups xmmword [rax + 0x3a40], xmm3
movups xmmword [rax + 0x3a50], xmm1
movups xmmword [rax + 0x3a60], xmm5
xorps xmm0, xmm0
movups xmmword [rax + 0x3aa0], xmm0
movups xmmword [rax + 0x3ab0], xmm1
movups xmmword [rax + 0x3ac0], xmm5
movdqa xmm1, xmmword [0x14005a6f0]
movups xmmword [rax + 0x3b20], xmm1
movdqa xmm0, xmmword [0x14005a890]
movups xmmword [rax + 0x3b30], xmm0
movups xmmword [rax + 0x3b40], xmm1
movups xmmword [rax + 0x3b50], xmm0
movdqa xmm0, xmmword [0x14005a620]
movups xmmword [rax + 0x3bb0], xmm0
mov dword [rax + 0x3818], 0x3f000000
mov dword [rax + 0x383c], 0x40000000
mov rcx, qword [0x14008ab68]
mov rax, qword [rcx]
call qword [rax + 0x10]
xor eax, eax
lea r11, [rsp + 0x218]
movaps xmm6, xmmword [r11 - 0x18]
movaps xmm7, xmmword [r11 - 0x28]
movaps xmm8, xmmword [r11 - 0x38]
movaps xmm9, xmmword [r11 - 0x48]
mov rsp, r11
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret