Function at 0x14003bd50
Capabilities:
Get common file path
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x20a0]
mov eax, 0x21a0
call fcn.14008f9c0
sub rsp, rax
mov rax, qword [0x1400f8480]
xor rax, rsp
mov qword [rbp + 0x2090], rax
mov rdi, rdx
mov ebx, ecx
xor r14d, r14d
mov rcx, qword [0x1400fae30]
test rcx, rcx
jne 0x14003bdae
call fcn.14003c5d0
test al, al
je 0x14003c542
mov rcx, qword [0x1400fae30]
xor sil, sil
mov dword [rsp + 0x50], esi
mov qword [rsp + 0x60], r14
mov rax, qword [rcx]
mov qword [rsp + 0x60], r14
lea rdx, [rsp + 0x60]
call qword [rax + 0x68]
test eax, eax
js 0x14003c52d
mov qword [rsp + 0x58], r14
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14003c57d
mov rax, qword [rcx]
mov qword [rsp + 0x58], r14
lea r8, [rsp + 0x58]
lea rdx, [0x1400c1478]
call qword [rax]
test eax, eax
js 0x14003c51c
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r14
lea r8, [rsp + 0x68]
mov rdx, rdi
mov ecx, ebx
call fcn.14004ecd0
mov rcx, qword [rsp + 0x68]
cmp qword [rsp + 0x70], rcx
je 0x14003c4e8
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0x90]
call fcn.1400b41a0
lea rdx, [rbp + 0x90]
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14003c4e3
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x10], xmm1
mov r8d, 0x11
lea rdx, str.FLiNGTrainer.tmp
lea rcx, [rbp]
call fcn.140004210
nop
lea r8, [rbp]
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 0x80]
call fcn.14003b640
nop
mov rdx, qword [rbp + 0x18]
cmp rdx, 7
jbe 0x14003bed9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003bed4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003c588
call fcn.14008f518
movdqa xmm0, xmmword [0x1400bde70]
movdqu xmmword [rbp + 0x10], xmm0
mov word [rbp], r14w
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x30], xmm1
mov r8d, 1
lea rdx, [0x1400be11c]
lea rcx, [rbp - 0x40]
call fcn.140004210
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x50], xmm1
mov r8d, 2
lea rdx, [0x1400c1bcc]
lea rcx, [rbp - 0x60]
call fcn.140004210
nop
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x80]
call fcn.140054630
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 7
jbe 0x14003bf89
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003bf84
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003c58e
call fcn.14008f518
movdqa xmm0, xmmword [0x1400bde70]
movdqu xmmword [rbp - 0x50], xmm0
mov word [rbp - 0x60], r14w
mov rdx, qword [rbp - 0x28]
cmp rdx, 7
jbe 0x14003bfdb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003bfd6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003c594
call fcn.14008f518
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 7
cmova rcx, qword [rbp - 0x80]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14003c3f4
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x40]
call fcn.140009cf0
nop
xor esi, esi
mov r15d, esi
movzx ebx, byte [rsp + 0x40]
movzx edi, byte [rsp + 0x40]
mov r14, qword [rbp - 0x28]
mov qword [rsp + 0x48], r14
mov r12, qword [rbp - 0x30]
mov r13, qword [rbp - 0x40]
nop dword [rax + rax]
lea r9, [rbp - 0x40]
cmp r14, 7
cmova r9, r13
mov rax, qword [rbp - 0x68]
cmp r12, rax
ja 0x14003c098
lea r14, [rbp - 0x80]
cmp rax, 7
cmova r14, qword [rbp - 0x80]
mov qword [rbp - 0x70], r12
lea rsi, [r12 + r12]
mov r8, rsi
mov rdx, r9
mov rcx, r14
call fcn.1400b3b00
xor eax, eax
mov word [rsi + r14], ax
mov r14, qword [rsp + 0x48]
xor esi, esi
jmp 0x14003c0b9
movzx r8d, bl
mov rdx, r12
lea rcx, [rbp - 0x80]
call fcn.1400061c0
mov r14, qword [rbp - 0x28]
mov qword [rsp + 0x48], r14
mov r12, qword [rbp - 0x30]
mov r13, qword [rbp - 0x40]
lea r10, [rbp + 0x8a]
mov r8d, r15d
test r15d, r15d
jns 0x14003c110
neg r8d
nop dword [rax + rax]
sub r10, 2
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dx
shl ax, 2
lea ecx, [rax + rdx]
add cx, cx
sub r8w, cx
add r8w, 0x30
mov word [r10], r8w
mov r8d, edx
test edx, edx
jne 0x14003c0d0
add r10, 0xfffffffffffffffe
mov word [r10], 0x2d
jmp 0x14003c140
sub r10, 2
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dx
shl ax, 2
lea ecx, [rax + rdx]
add cx, cx
sub r8w, cx
add r8w, 0x30
mov word [r10], r8w
mov r8d, edx
test edx, edx
jne 0x14003c110
lea r9, [rsp + 0x40]
lea r8, [rbp + 0x8a]
mov rdx, r10
lea rcx, [rbp + 0x40]
call fcn.140003470
nop
lea r8, [rbp + 0x40]
lea rdx, [0x1400c1be4]
lea rcx, [rbp + 0x20]
call fcn.14003b640
mov rcx, rax
mov r8, qword [rax + 0x10]
mov r9, qword [rax + 0x18]
mov rax, r9
sub rax, r8
cmp rax, 4
jb 0x14003c1ac
lea rdx, [r8 + 4]
mov qword [rcx + 0x10], rdx
mov rax, rcx
cmp r9, 7
jbe 0x14003c198
mov rax, qword [rcx]
movabs r9, 0x70006d0074002e
mov qword [rax + r8*2], r9
mov word [rax + rdx*2], si
jmp 0x14003c1cd
mov qword [rsp + 0x20], 4
lea r9, str..tmp
movzx r8d, dil
mov edx, 4
call fcn.140006660
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rsi
mov qword [rbp - 8], rsi
movups xmm0, xmmword [rcx]
movups xmmword [rbp - 0x20], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rbp - 0x10], xmm1
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], 7
mov word [rcx], si
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], rsi
mov r8d, 4
lea rdx, str..tmp
lea rcx, [rbp - 0x60]
call fcn.140004210
nop
lea r8, [rbp - 0x20]
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x80]
call fcn.140054630
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 7
jbe 0x14003c272
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003c26d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003c59a
call fcn.14008f518
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], si
mov rdx, qword [rbp - 8]
cmp rdx, 7
jbe 0x14003c2c2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003c2bd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003c5a0
call fcn.14008f518
mov qword [rbp - 0x10], rsi
mov qword [rbp - 8], 7
mov word [rbp - 0x20], si
mov rdx, qword [rbp + 0x38]
cmp rdx, 7
jbe 0x14003c312
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003c30d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003c5a6
call fcn.14008f518
mov qword [rbp + 0x30], rsi
mov qword [rbp + 0x38], 7
mov word [rbp + 0x20], si
mov rdx, qword [rbp + 0x58]
cmp rdx, 7
jbe 0x14003c362
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003c35d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003c5ac
call fcn.14008f518
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 7
cmova rcx, qword [rbp - 0x80]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14003c3b0
inc r15d
cmp r15d, 0x32
jge 0x14003c3b0
xor esi, esi
jmp 0x14003c050
cmp r14, 7
jbe 0x14003c3eb
lea rdx, [r14*2 + 2]
mov rax, r13
cmp rdx, 0x1000
jb 0x14003c3e3
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003c5b2
mov rcx, r13
call fcn.14008f518
xor r14d, r14d
cmp rsi, 0xffffffffffffffff
je 0x14003c422
mov dword [rsp + 0x48], r14d
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
sub r8, rdx
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x48]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x80]
call fcn.140053ad0
test al, al
je 0x14003c49f
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 7
jbe 0x14003c486
mov rcx, qword [rbp - 0x80]
test rcx, rcx
jne 0x14003c486
mov rbx, r14
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x48], r14d
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14003c5b8
mov rax, qword [rcx]
lea r9, [rsp + 0x48]
xor r8d, r8d
mov rdx, rbx
call qword [rax + 0x190]
mov esi, eax
shr esi, 0x1f
xor sil, 1
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x14003c4a3
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14003c572
jmp 0x14003c44b
mov esi, dword [rsp + 0x50]
mov rdx, qword [rbp - 0x68]
cmp rdx, 7
jbe 0x14003c4e3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003c4de
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003c5c3
call fcn.14008f518
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14003c51c
mov rdx, qword [rsp + 0x78]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003c516
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003c56c
call fcn.14008f518
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14003c52d
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14003c53e
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
movzx eax, sil
mov rcx, qword [rbp + 0x2090]
xor rcx, rsp
call fcn.14008f990
mov rbx, qword [rsp + 0x21f0]
add rsp, 0x21a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140096334
nop
mov ecx, 0x8007000e
call fcn.14003ba10
nop
mov ecx, 0x80004003
call fcn.14008c6d0
nop
call fcn.140096334
nop
call fcn.140096334
nop
call fcn.140096334
nop
call fcn.140096334
nop
call fcn.140096334
nop
call fcn.140096334
nop
call fcn.140096334
nop
call fcn.140096334
nop
mov ecx, 0x80004003
call fcn.14008c6d0
nop
call fcn.140096334
int3