Function at 0x14000e9c0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x14008d030]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rsi, rcx
lea rcx, [rsp + 0x58]
call fcn.1400061e0
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.14002433c
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x14000ea26
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x14000ea26
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14000ea49
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x14000ea49
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
xor r14d, r14d
mov qword [rsp + 0x2e0], rbx
xor r8d, r8d
mov qword [rsp + 0x48], r14
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x50], r14
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x2e8], rdi
mov dword [rsp + 0x40], 1
call qword [sym.imp.gdiplus.dll_GdiplusStartup]
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], 8
mov dword [rsp + 0x34], 0xff
call qword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
lea rcx, [0x14007ec40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000ec4d
xor edx, edx
lea rcx, [rbp - 0x50]
mov r8d, 0x208
call fcn.1400472e0
mov edx, 0x104
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14000ec4d
mov qword [rsp + 0x58], r14
lea rax, [rbp - 0x50]
mov qword [rsp + 0x68], r14
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x70], 7
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], r14w
jne 0x14000eb00
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x58]
call fcn.1400023c0
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
mov rax, rdx
sub rax, rcx
cmp rax, 0xa
jb 0x14000eb68
cmp rdx, 8
lea rdi, [rcx + 0xa]
lea rbx, [rsp + 0x58]
mov qword [rsp + 0x68], rdi
cmovae rbx, qword [rsp + 0x58]
lea rdx, str.winmm.dll
mov r8d, 0x14
lea rcx, [rbx + rcx*2]
call fcn.140046c30
lea rax, [rsp + 0x58]
mov word [rbx + rdi*2], r14w
jmp 0x14000eb87
lea r9, str.winmm.dll
mov qword [rsp + 0x20], 0xa
mov edx, 0xa
lea rcx, [rsp + 0x58]
call fcn.1400017e0
movups xmm0, xmmword [rax]
lea rcx, [rbp - 0x78]
movups xmmword [rbp - 0x78], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x68], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
cmp qword [rbp - 0x60], 8
cmovae rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdx, qword [rbp - 0x60]
cmp rdx, 8
jb 0x14000ebfa
mov rcx, qword [rbp - 0x78]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ebf5
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000ee63
call fcn.140044b00
mov rdx, qword [rsp + 0x70]
mov qword [rbp - 0x68], r14
mov qword [rbp - 0x60], 7
mov word [rbp - 0x78], r14w
cmp rdx, 8
jb 0x14000ec4d
mov rcx, qword [rsp + 0x58]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ec48
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000ee63
call fcn.140044b00
mov ecx, 0x18
call fcn.140044b08
lea rcx, [0x140090e90]
mov rdi, rax
mov qword [rax + 8], r14
mov qword [rax + 0x10], r14
mov qword [rax], rsi
call fcn.140006bb0
test al, al
je 0x14000ede7
mov ecx, 0x3f0
call fcn.140044b08
mov rbx, rax
xor ecx, ecx
lea rax, vtable.TrMainWindow.0
mov qword [rbx], rax
lea rax, str.FLiNGs_Trainer
mov qword [rbx + 8], rax
lea rax, str.FLiNGTrainerMainWnd
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x20], r14
mov qword [rbx + 0x28], r14
mov qword [rbx + 0x30], r14
mov byte [rbx + 0x58], r14b
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rcx, [rbx + 0xd0]
mov qword [rbx + 0x18], r14
mov qword [rbx + 0x40], rax
lea rax, vtable.TrWindow_Main.0
mov qword [rbx], rax
mov byte [rbx + 0x59], r14b
mov qword [rbx + 0x5c], 0xffffffffffffffff
mov byte [rbx + 0x64], r14b
mov qword [rbx + 0x38], r14
call fcn.140015a50
mov qword [rbx + 0x3c0], r14
lea r8, [0x14007e288]
mov qword [rbx + 0x3d0], r14
mov edx, 0x97
mov qword [rbx + 0x3d8], 7
mov rcx, rbx
mov qword [rbx + 0x3e8], r14
mov qword [rbx + 0x90], r14
mov qword [rbx + 0x88], r14
mov qword [rbx + 0x80], r14
mov qword [rbx + 0x78], r14
mov qword [rbx + 0x70], r14
mov qword [rbx + 0x68], r14
mov qword [rbx + 0xa0], r14
mov qword [rbx + 0x98], r14
mov qword [rbx + 0xb8], r14
mov qword [rbx + 0xb0], r14
mov word [rbx + 0x3e0], 0x101
mov qword [rdi + 8], rbx
mov rax, qword [rbx]
call qword [rax]
test al, al
je 0x14000ede7
mov rcx, qword [rdi + 8]
call fcn.14001cd80
mov rcx, qword [rdi]
mov edx, 0x6d
call qword [sym.imp.USER32.dll_LoadAcceleratorsW]
xor r9d, r9d
lea rcx, [rsp + 0x58]
xor r8d, r8d
xor edx, edx
mov rbx, rax
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x14000ede7
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x58]
mov rdx, rbx
call qword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x14000edd0
lea rcx, [rsp + 0x58]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x58]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea rcx, [rsp + 0x58]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x14000eda3
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14000edf5
call fcn.140006340
mov rbx, qword [rdi + 0x10]
test rbx, rbx
je 0x14000ee15
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov edx, 0x30
mov rcx, rbx
call fcn.140044b00
mov edx, 0x18
mov rcx, rdi
call fcn.140044b00
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov rdi, qword [rsp + 0x2e8]
xor eax, eax
mov rbx, qword [rsp + 0x2e0]
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.140044ae0
lea r11, [rsp + 0x2d0]
mov rsi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.14004b20c
int3