Function at 0x140046a90
Capabilities:
Read file on windows

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 - 0x1c8]
sub rsp, 0x2a0
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm9
movaps xmmword [rax - 0x78], xmm10
mov rax, qword [0x140056040]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov dword [rbp + 0x20], 0x50
mov dword [rbp + 0x24], 0x40
lea rax, [0x1400475c0]
mov qword [rbp + 0x28], rax
xor r12d, r12d
mov qword [rbp + 0x30], r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rbp + 0x38], rax
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x40], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x50], xmm1
lea rbx, [0x14004f020]
mov qword [rbp + 0x60], rbx
mov qword [rbp + 0x68], r12
lea rcx, [rbp + 0x20]
call qword [sym.imp.USER32.dll_RegisterClassExW]
mov qword [rsp + 0x58], r12
mov rax, qword [rbp + 0x38]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x38], 0x32
mov dword [rsp + 0x30], 0x32
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
mov r9d, 0xcf0000
mov r8, rbx
mov rdx, qword [rbp + 0x60]
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rsi, rax
mov qword [rsp + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [r12 + 0x20]
call qword [sym.imp.d3d9.dll_Direct3DCreate9]
mov rcx, rax
mov qword [0x140056bf0], rax
lea r15d, [r12 + 1]
test rax, rax
je 0x14004752b
mov qword [0x140056c00], r12
mov qword [0x140056c0c], r12
mov dword [0x140056c14], r12d
mov qword [0x140056c1c], r12
mov dword [0x140056c24], r12d
mov qword [0x140056c34], r12
mov dword [0x140056c28], r15d
mov dword [0x140056c18], r15d
mov dword [0x140056c08], r12d
mov dword [0x140056c2c], r15d
mov dword [0x140056c30], 0x50
mov dword [0x140056c3c], r15d
mov rax, qword [rax]
lea rdx, [0x140056bf8]
mov qword [rsp + 0x30], rdx
lea rdx, [0x140056c00]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x40
mov r9, rsi
mov r8d, r15d
xor edx, edx
call qword [rax + 0x80]
test eax, eax
js 0x140047524
xor edx, edx
mov rcx, rsi
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rsi
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rax, qword [0x140056bc0]
test rax, rax
je 0x140046c6c
inc dword [rax + 0x3ac]
mov ecx, 0x4180
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp + 0x70], rax
lea rcx, [rsp + 0x60]
mov qword [rbp], rcx
mov qword [rbp + 8], rax
test rax, rax
je 0x140046c99
xor edx, edx
mov rcx, rax
call fcn.1400012e0
jmp 0x140046c9c
mov rax, r12
cmp qword [0x140056bc0], 0
jne 0x140046cad
mov qword [0x140056bc0], rax
mov rcx, rax
call fcn.1400085f0
mov r13, qword [0x140056bc0]
or dword [r13 + 8], 0x401
xor ecx, ecx
call fcn.14002c060
mov rcx, rsi
call fcn.140036fa0
mov rdi, qword [0x140056bf8]
mov rbx, qword [0x140056bc0]
test rbx, rbx
je 0x140046cec
inc dword [rbx + 0x3ac]
mov ecx, 0x28
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp + 8], rax
test rax, rax
je 0x140046d20
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 0x140046d23
mov rax, r12
mov qword [rbx + 0xf8], rax
lea rcx, str.imgui_impl_dx9
mov qword [rbx + 0xe8], rcx
or dword [rbx + 0xc], 0x1008
mov qword [rax], rdi
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
test dword [rbx + 8], 0x400
je 0x140046da1
mov rax, qword [0x140056bc0]
lea rcx, [fcn.140036c40]
mov qword [rax + 0x1608], rcx
lea rcx, [fcn.140036d20]
mov qword [rax + 0x1610], rcx
lea rcx, [0x140036da0]
mov qword [rax + 0x1618], rcx
lea rcx, [0x140036e10]
mov qword [rax + 0x1620], rcx
lea rcx, [0x140036f70]
mov qword [rax + 0x1628], rcx
mov r14, qword [r13 + 0xa8]
lea rdx, [0x14004a6d4]
lea rcx, str.C:WindowsFontsVerdana.ttf
call fcn.140002a00
mov rbx, rax
movss xmm10, dword [0x14004f244]
test rax, rax
je 0x14004703f
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x140047036
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 0x140047036
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140047036
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 0x140047036
cmp rdi, 0xffffffffffffffff
je 0x140047036
mov rax, qword [0x140056bc0]
test rax, rax
je 0x140046e42
inc dword [rax + 0x3ac]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140047036
mov r9, rbx
mov r8, rdi
mov rdx, r15
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x140046e97
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140056bc0]
test rax, rax
je 0x140046e89
dec dword [rax + 0x3ac]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14004703f
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xorps xmm1, xmm1
xor eax, eax
movups xmmword [rsp + 0x70], xmm1
movups xmmword [rbp - 0x80], xmm1
movups xmmword [rbp - 0x50], xmm1
movups xmmword [rbp - 0x40], xmm1
mov qword [rbp - 0x10], rax
mov byte [rsp + 0x7c], 1
mov dword [rbp - 0x78], 3
mov ebx, 1
mov dword [rbp - 0x74], ebx
mov dword [rbp - 0x4c], 0x7f7fffff
mov dword [rbp - 0x40], 0x3f800000
mov eax, 0xffff
mov word [rbp - 0x3c], ax
movaps xmm3, xmmword [rsp + 0x70]
movaps xmmword [rbp + 0x80], xmm3
movaps xmm4, xmmword [rbp - 0x80]
movaps xmmword [rbp + 0x90], xmm4
movaps xmmword [rbp + 0xa0], xmm1
xorps xmm5, xmm5
movaps xmmword [rbp + 0xb0], xmm5
movaps xmm6, xmmword [rbp - 0x50]
movaps xmmword [rbp + 0xc0], xmm6
movaps xmm2, xmmword [rbp - 0x40]
movaps xmmword [rbp + 0xd0], xmm2
xorps xmm7, xmm7
movaps xmmword [rbp + 0xe0], xmm7
xorps xmm8, xmm8
movaps xmmword [rbp + 0xf0], xmm8
movsd xmm9, qword [rbp - 0x10]
movsd qword [rbp + 0x100], xmm9
movdqa xmm0, xmm2
psrldq xmm0, 6
movd eax, xmm0
test al, al
jne 0x140046fef
lea r9, [0x14004f04c]
lea r8, str.C:WindowsFontsVerdana.ttf
nop dword [rax + rax]
lea rcx, [r9 - 1]
movzx eax, byte [rcx]
cmp al, 0x2f
je 0x140046f87
cmp al, 0x5c
je 0x140046f87
mov r9, rcx
cmp rcx, r8
ja 0x140046f70
movsd xmm0, qword [0x14004f278]
movsd qword [rsp + 0x20], xmm0
lea r8, str._s___.0fpx
mov edx, 0x28
lea rcx, [rbp + 0xd6]
call fcn.1400028d0
movsd xmm9, qword [rbp + 0x100]
movaps xmm8, xmmword [rbp + 0xf0]
movaps xmm7, xmmword [rbp + 0xe0]
movaps xmm2, xmmword [rbp + 0xd0]
movaps xmm6, xmmword [rbp + 0xc0]
movaps xmm5, xmmword [rbp + 0xb0]
movaps xmm1, xmmword [rbp + 0xa0]
movaps xmm4, xmmword [rbp + 0x90]
movaps xmm3, xmmword [rbp + 0x80]
movaps xmmword [rsp + 0x70], xmm3
movaps xmmword [rbp - 0x80], xmm4
movaps xmmword [rbp - 0x70], xmm1
movaps xmmword [rbp - 0x60], xmm5
movaps xmmword [rbp - 0x50], xmm6
movaps xmmword [rbp - 0x40], xmm2
movaps xmmword [rbp - 0x30], xmm7
movaps xmmword [rbp - 0x20], xmm8
movsd qword [rbp - 0x10], xmm9
mov qword [rsp + 0x70], rsi
mov dword [rsp + 0x78], edi
mov dword [rbp - 0x7c], 0x41400000
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.140030e20
jmp 0x140047044
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ebx, 1
xor r15b, r15b
nop word [rax + rax]
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x110]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x1400470bf
nop dword [rax]
lea rcx, [rbp + 0x110]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0x110]
call qword [sym.imp.USER32.dll_DispatchMessageW]
movzx r15d, r15b
cmp dword [rbp + 0x118], 0x12
cmove r15d, ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x110]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x140047070
test r15b, r15b
jne 0x1400473c8
mov rbx, qword [0x140056bc0]
test rbx, rbx
je 0x1400470d4
mov rax, qword [rbx + 0xf8]
jmp 0x1400470d7
mov rax, r12
cmp qword [rax + 0x18], 0
jne 0x1400470ea
call fcn.140036aa0
mov rbx, qword [0x140056bc0]
test rbx, rbx
je 0x1400470f8
mov rdi, qword [rbx + 0xf0]
jmp 0x1400470fb
mov rdi, r12
xorps xmm0, xmm0
movdqu xmmword [rbp + 8], xmm0
lea rdx, [rbp + 8]
mov rcx, qword [rdi]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rbp + 0x10]
sub eax, dword [rbp + 8]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
mov eax, dword [rbp + 0x14]
sub eax, dword [rbp + 0xc]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x10], xmm1
movss dword [rbx + 0x14], xmm0
cmp byte [rdi + 0x2e], 0
je 0x14004713f
call fcn.140037e20
mov qword [rbp + 0x70], r12
lea rcx, [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rbp + 0x70]
mov rax, rcx
sub rax, qword [rdi + 0x18]
xorps xmm1, xmm1
cvtsi2ss xmm1, rax
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [rdi + 0x20]
divss xmm1, xmm0
movss dword [rbx + 0x18], xmm1
mov qword [rdi + 0x18], rcx
call fcn.1400375b0
cmp byte [rbx + 0xd0], 0
je 0x14004718b
mov eax, 0xffffffff
jmp 0x140047198
mov rax, qword [0x140056bc0]
mov eax, dword [rax + 0x2128]
cmp dword [rdi + 0x28], eax
je 0x1400471a5
mov dword [rdi + 0x28], eax
call fcn.140037430
call fcn.140037860
call fcn.1400070f0
call fcn.1400476e0
call fcn.140009b20
mov rcx, qword [0x140056bf8]
mov rax, qword [rcx]
xor r8d, r8d
lea edx, [r8 + 7]
call qword [rax + 0x1c8]
mov rcx, qword [0x140056bf8]
mov rax, qword [rcx]
xor r8d, r8d
lea edx, [r8 + 0x1b]
call qword [rax + 0x1c8]
mov rcx, qword [0x140056bf8]
mov rax, qword [rcx]
xor r8d, r8d
mov edx, 0xae
call qword [rax + 0x1c8]
mov rcx, qword [0x140056bf8]
mov rax, qword [rcx]
mov dword [rsp + 0x30], r12d
movss dword [rsp + 0x28], xmm10
mov dword [rsp + 0x20], r12d
mov r9d, 3
xor r8d, r8d
xor edx, edx
call qword [rax + 0x158]
mov rcx, qword [0x140056bf8]
mov rax, qword [rcx]
call qword [rax + 0x148]
test eax, eax
js 0x14004727a
call fcn.14000a030
mov rax, qword [0x140056bc0]
mov rcx, qword [rax + 0x1f40]
mov rax, qword [rcx]
add rax, 0xa8
mov rcx, r12
cmp byte [rax], 0
cmovne rcx, rax
call fcn.140036290
mov rcx, qword [0x140056bf8]
mov rax, qword [rcx]
call qword [rax + 0x150]
test dword [r13 + 8], 0x400
je 0x14004735d
call fcn.14001a870
mov rbx, qword [0x140056bc0]
mov r14d, 1
mov eax, dword [rbx + 0x1640]
cmp eax, r14d
jle 0x1400472fc
mov esi, 8
nop word [rax + rax]
mov rax, qword [rbx + 0x1648]
mov rdi, qword [rsi + rax]
test dword [rdi + 4], 0x400
jne 0x1400472ea
mov rax, qword [rbx + 0x15d8]
test rax, rax
je 0x1400472d7
xor edx, edx
mov rcx, rdi
call rax
mov rax, qword [rbx + 0x1620]
test rax, rax
je 0x1400472ea
xor edx, edx
mov rcx, rdi
call rax
inc r14d
add rsi, 8
mov eax, dword [rbx + 0x1640]
cmp r14d, eax
jl 0x1400472b0
mov r14d, 1
cmp eax, r14d
jle 0x14004735a
mov esi, 8
nop dword [rax]
mov rax, qword [rbx + 0x1648]
mov rdi, qword [rsi + rax]
test dword [rdi + 4], 0x400
jne 0x14004734a
mov rax, qword [rbx + 0x15e0]
test rax, rax
je 0x140047337
xor edx, edx
mov rcx, rdi
call rax
mov rax, qword [rbx + 0x1628]
test rax, rax
je 0x14004734a
xor edx, edx
mov rcx, rdi
call rax
inc r14d
add rsi, 8
cmp r14d, dword [rbx + 0x1640]
jl 0x140047310
xor r12d, r12d
mov rcx, qword [0x140056bf8]
mov rax, qword [rcx]
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [rax + 0x88]
cmp eax, 0x88760868
mov ebx, 1
jne 0x140047050
mov rcx, qword [0x140056bf8]
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp eax, 0x88760869
jne 0x140047050
call fcn.140036b50
mov rcx, qword [0x140056bf8]
mov rax, qword [rcx]
lea rdx, [0x140056c00]
call qword [rax + 0x80]
call fcn.140036aa0
jmp 0x140047050
mov rbx, qword [0x140056bc0]
test rbx, rbx
je 0x1400473dd
mov rdi, qword [rbx + 0xf8]
jmp 0x1400473e0
mov rdi, r12
call fcn.14001ae50
call fcn.140036b50
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400473f8
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbx + 0xe8], r12
mov qword [rbx + 0xf8], r12
mov rax, qword [0x140056bc0]
test rax, rax
je 0x140047418
dec dword [rax + 0x3ac]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [0x140056bc0]
test rbx, rbx
je 0x140047436
mov rdi, qword [rbx + 0xf0]
jmp 0x140047439
mov rdi, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdx, rax
lea rcx, str.ImGui_Platform
call qword [sym.imp.USER32.dll_UnregisterClassW]
call fcn.14001ae50
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x140047465
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rbx + 0xe0], r12
mov qword [rbx + 0xf0], r12
mov rax, qword [0x140056bc0]
test rax, rax
je 0x140047485
dec dword [rax + 0x3ac]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [0x140056bc0]
mov rcx, rbx
call fcn.140008950
cmp qword [0x140056bc0], rbx
jne 0x1400474ad
mov qword [0x140056bc0], r12
test rbx, rbx
je 0x1400474d5
mov rcx, rbx
call fcn.140024c20
mov rax, qword [0x140056bc0]
test rax, rax
je 0x1400474cc
dec dword [rax + 0x3ac]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [0x140056bf8]
test rcx, rcx
je 0x1400474ee
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x140056bf8], r12
mov rcx, qword [0x140056bf0]
test rcx, rcx
je 0x140047507
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x140056bf0], r12
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rdx, qword [rbp + 0x38]
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.USER32.dll_UnregisterClassW]
xor eax, eax
jmp 0x140047571
mov rcx, qword [0x140056bf0]
mov rdx, qword [0x140056bf8]
test rdx, rdx
je 0x14004754e
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x10]
mov qword [0x140056bf8], r12
mov rcx, qword [0x140056bf0]
test rcx, rcx
je 0x140047560
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov qword [0x140056bf0], r12
mov rdx, qword [rbp + 0x38]
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.USER32.dll_UnregisterClassW]
mov eax, r15d
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1400488d0
lea r11, [rsp + 0x2a0]
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]
movaps xmm10, xmmword [r11 - 0x50]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret