Function at 0x140061990
Capabilities:
Read file on windows
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x128]
sub rsp, 0x200
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm9
mov rax, qword [0x14007b010]
xor rax, rsp
mov qword [rbp + 0xb0], rax
lea rdx, [0x14009fc58]
mov ecx, 0x20
call qword [sym.imp.d3d9.dll_Direct3DCreate9Ex]
test eax, eax
jns 0x1400619fb
mov ecx, 3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor r12d, r12d
mov qword [0x14009fbec], r12
mov qword [0x14009fbf8], 1
mov qword [0x14009fc14], r12
mov dword [0x14009fc08], 1
mov r9, qword [0x14009fbd8]
mov qword [0x14009fc00], r9
mov dword [0x14009fbf4], r12d
mov dword [0x14009fbe8], 0x15
mov eax, dword [0x14009fe90]
mov dword [0x14009fbe0], eax
mov eax, dword [0x14009fe94]
mov dword [0x14009fbe4], eax
mov dword [0x14009fc0c], 1
mov dword [0x14009fc10], 0x50
mov dword [0x14009fc1c], r12d
mov rcx, qword [0x14009fc58]
mov rax, qword [rcx]
lea rdx, [0x14009fbd0]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], r12
lea rdx, [0x14009fbe0]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x40
xor edx, edx
lea r8d, [r12 + 1]
call qword [rax + 0xa0]
test eax, eax
jns 0x140061ad7
mov rcx, qword [0x14009fc58]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [r12 + 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rbx, qword [0x14009fba0]
test rbx, rbx
je 0x140061ae9
inc dword [rbx + 0xec]
mov ecx, 0x5570
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp + 0x10], rax
lea rcx, [rsp + 0x40]
mov qword [rbp + 8], rcx
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140061b17
xor edx, edx
mov rcx, rax
call fcn.140002c00
jmp 0x140061b1a
mov rax, r12
mov qword [0x14009fba0], rax
call fcn.140009d30
mov rdi, qword [0x14009fba0]
test rbx, rbx
cmovne rdi, rbx
mov qword [0x14009fba0], rdi
mov rsi, qword [0x14009fbd8]
lea rcx, [rbp + 8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140061c7d
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140061c7d
mov rax, qword [0x14009fba0]
test rax, rax
je 0x140061b78
inc dword [rax + 0xec]
mov ecx, 0x48
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140061baa
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 0x140061bad
mov rbx, r12
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 + 8]
mov qword [rbx + 0x20], rax
mov rax, qword [rbp + 0x10]
mov qword [rbx + 0x18], rax
mov dword [rbx + 0x28], 9
mov rax, qword [0x14009fba0]
mov rcx, qword [rax + 0x4088]
mov rax, qword [rcx]
mov qword [rax + 0x28], rsi
lea rax, str.xinput1_4.dll
mov qword [rbp - 0x20], rax
lea rax, str.xinput1_3.dll
mov qword [rbp - 0x18], rax
lea rax, str.xinput9_1_0.dll
mov qword [rbp - 0x10], rax
lea rax, str.xinput1_2.dll
mov qword [rbp - 8], rax
lea rax, str.xinput1_1.dll
mov qword [rbp], rax
mov rdi, r12
mov rcx, qword [rbp + rdi*8 - 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x140061c51
inc rdi
cmp rdi, 5
jl 0x140061c33
jmp 0x140061c7d
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 [0x14009fbd0]
mov rbx, qword [0x14009fba0]
test rbx, rbx
je 0x140061c96
inc dword [rbx + 0xec]
mov ecx, 0x28
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140061ccb
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov qword [rax + 0x20], rcx
mov dword [rax + 0x20], 0x1388
mov dword [rax + 0x24], 0x2710
jmp 0x140061cce
mov rax, r12
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]
mov r14, qword [0x14009fba0]
xorps xmm6, xmm6
xor eax, eax
movups xmmword [rsp + 0x50], xmm6
movups xmmword [rsp + 0x60], xmm6
movups xmmword [rsp + 0x70], xmm6
movups xmmword [rbp - 0x80], xmm6
movups xmmword [rbp - 0x70], xmm6
movups xmmword [rbp - 0x60], xmm6
mov qword [rbp - 0x30], rax
mov byte [rsp + 0x5c], 1
movss xmm0, dword [0x140071298]
movss dword [rbp - 0x6c], xmm0
mov eax, 0xffff
mov word [rbp - 0x5c], ax
mov byte [rsp + 0x70], 0
mov dword [rsp + 0x68], 5
mov dword [rsp + 0x6c], 5
movss xmm0, dword [0x140071040]
movss dword [rbp - 0x60], xmm0
mov qword [r14 + 0x37e0], r12
mov dword [r14 + 0x384c], r12d
mov dword [r14 + 0x3820], 0x3f800000
mov dword [r14 + 0x381c], r12d
movaps xmm0, xmmword [0x140071650]
movups xmmword [r14 + 0x38f0], xmm0
movaps xmm1, xmmword [0x140071630]
movups xmmword [r14 + 0x38c0], xmm1
movaps xmm0, xmm1
movups xmmword [r14 + 0x38d0], xmm1
movaps xmm1, xmmword [0x1400716f0]
movups xmmword [r14 + 0x38a0], xmm1
movaps xmm0, xmmword [0x140071610]
movups xmmword [r14 + 0x3910], xmm0
movaps xmm1, xmm0
movups xmmword [r14 + 0x3920], xmm0
movups xmmword [r14 + 0x3930], xmm0
movups xmmword [r14 + 0x39f0], xmm0
movups xmmword [r14 + 0x3a00], xmm0
movups xmmword [r14 + 0x3a10], xmm0
movaps xmm0, xmmword [0x1400716a0]
movups xmmword [r14 + 0x3a20], xmm0
movaps xmm1, xmm0
movups xmmword [r14 + 0x3a30], xmm0
movaps xmm0, xmmword [0x140071630]
movups xmmword [r14 + 0x3a40], xmm0
movaps xmm1, xmmword [0x1400716b0]
movups xmmword [r14 + 0x39c0], xmm1
mov dword [r14 + 0x52ac], 0xa9101a0
lea rax, [0x140070a00]
mov qword [rbp - 0x78], rax
lea rax, [0x14006fa18]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
movss xmm3, dword [0x1400710fc]
mov r8d, 0xa0f8
lea rdx, [0x1400949a0]
mov rcx, qword [r14 + 0x50]
call fcn.1400266d0
mov r15, qword [r14 + 0x50]
lea rdx, [0x14006b324]
lea r13, str.C:WindowsFontsArial.ttf
mov rcx, r13
call fcn.140004330
mov rbx, rax
test rax, rax
je 0x140062098
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x14006208f
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14006208f
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14006208f
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14006208f
cmp rdi, 0xffffffffffffffff
je 0x14006208f
mov rax, qword [0x14009fba0]
test rax, rax
je 0x140061f02
inc dword [rax + 0xec]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x14006208f
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x140061f59
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14009fba0]
test rax, rax
je 0x140061f4b
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140062098
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
movaps xmm2, xmmword [rsp + 0x50]
movaps xmmword [rbp + 0x20], xmm2
movaps xmm3, xmmword [rsp + 0x60]
movaps xmmword [rbp + 0x30], xmm3
movaps xmm4, xmmword [rsp + 0x70]
movaps xmmword [rbp + 0x40], xmm4
movaps xmm5, xmmword [rbp - 0x80]
movaps xmmword [rbp + 0x50], xmm5
movaps xmm7, xmmword [rbp - 0x70]
movaps xmmword [rbp + 0x60], xmm7
movaps xmm1, xmmword [rbp - 0x60]
movaps xmmword [rbp + 0x70], xmm1
movaps xmmword [rbp + 0x80], xmm6
xorps xmm8, xmm8
movaps xmmword [rbp + 0x90], xmm8
movsd xmm9, qword [rbp - 0x30]
movsd qword [rbp + 0xa0], xmm9
movdqa xmm0, xmm1
psrldq xmm0, 6
movd eax, xmm0
test al, al
jne 0x14006203a
lea r9, [0x14007024a]
nop dword [rax]
lea rcx, [r9 - 1]
movzx eax, byte [rcx]
cmp al, 0x2f
je 0x140061fe7
cmp al, 0x5c
je 0x140061fe7
mov r9, rcx
cmp rcx, r13
ja 0x140061fd0
movsd xmm0, qword [0x140071088]
movsd qword [rsp + 0x20], xmm0
lea r8, str._s___.0fpx
mov edx, 0x28
lea rcx, [rbp + 0x76]
call fcn.140004140
movsd xmm9, qword [rbp + 0xa0]
movaps xmm8, xmmword [rbp + 0x90]
movaps xmm6, xmmword [rbp + 0x80]
movaps xmm1, xmmword [rbp + 0x70]
movaps xmm7, xmmword [rbp + 0x60]
movaps xmm5, xmmword [rbp + 0x50]
movaps xmm4, xmmword [rbp + 0x40]
movaps xmm3, xmmword [rbp + 0x30]
movaps xmm2, xmmword [rbp + 0x20]
movaps xmmword [rsp + 0x50], xmm2
movaps xmmword [rsp + 0x60], xmm3
movaps xmmword [rsp + 0x70], xmm4
movaps xmmword [rbp - 0x80], xmm5
movaps xmmword [rbp - 0x70], xmm7
movaps xmmword [rbp - 0x60], xmm1
movaps xmmword [rbp - 0x50], xmm6
movaps xmmword [rbp - 0x40], xmm8
movsd qword [rbp - 0x30], xmm9
mov qword [rsp + 0x50], rsi
mov dword [rsp + 0x58], edi
mov dword [rsp + 0x64], 0x41500000
lea rax, [0x140070a00]
mov qword [rbp - 0x78], rax
lea rdx, [rsp + 0x50]
mov rcx, r15
call fcn.140026410
jmp 0x14006209b
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, r12
mov qword [0x14009fbc0], rax
lea rax, [0x14006fa18]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
movss xmm3, dword [0x1400710fc]
mov r8d, 0x19944
lea rdx, str.OTTO
mov rcx, qword [r14 + 0x50]
call fcn.1400266d0
mov qword [0x14009fc68], rax
mov rcx, qword [0x14009fc58]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.140067470
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret