Function at 0x140033880
Capabilities:
Create directory
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x1400f2688]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov r13, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x40]
call fcn.14008a730
lea rdx, [rbp - 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x140033cb7
xor r15d, r15d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x68], r15
mov r12d, 7
mov qword [rsp + 0x70], r12
mov word [rsp + 0x58], r15w
lea rax, [rbp - 0x40]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140033910
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x58]
call fcn.140029620
nop
lea rbx, [rsp + 0x58]
mov rsi, qword [rsp + 0x70]
cmp rsi, 8
setae dil
mov r14, qword [rsp + 0x58]
cmovae rbx, r14
lea rdx, [0x1400b6ffc]
mov r11, qword [rsp + 0x68]
cmp r11, 1
jb 0x1400339c7
lea rcx, [r11 - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea r9, [rbx + rax*2]
mov r10, r9
sub r10, rdx
cmp word [r9], 0x5c
jne 0x1400339b0
mov r8d, 1
mov rax, rdx
mov edx, 0x5c
mov ecx, edx
cmp cx, dx
ja 0x1400339a9
cmp r8, 1
je 0x1400339bf
dec r8
add rax, 2
movzx ecx, word [r10 + rax]
movzx edx, word [rax]
cmp cx, dx
jae 0x14003398d
lea rdx, [0x1400b6ffc]
cmp r9, rbx
je 0x1400339c7
sub r9, 2
sub r10, 2
jmp 0x140033973
sub r9, rbx
sar r9, 1
jmp 0x1400339ce
mov r9, 0xffffffffffffffff
lea rax, [r11 - 1]
cmp r9, rax
je 0x140033a3a
sub rsi, r11
cmp rsi, 1
jb 0x140033a06
lea rcx, [r11 + 1]
mov qword [rsp + 0x68], rcx
lea rax, [rsp + 0x58]
test dil, dil
cmovne rax, r14
mov edx, 0x5c
mov word [rax + r11*2], dx
mov word [rax + rcx*2], r15w
jmp 0x140033a2b
mov qword [rsp + 0x20], 1
lea r9, [0x1400b6ffc]
movzx r8d, byte [rsp + 0x30]
mov edx, 1
lea rcx, [rsp + 0x58]
call fcn.140005170
mov r14, qword [rsp + 0x58]
mov r11, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rax, rsi
sub rax, r11
cmp rax, 0x10
jb 0x140033a79
lea rdi, [r11 + 0x10]
mov qword [rsp + 0x68], rdi
lea rbx, [rsp + 0x58]
cmp rsi, 8
cmovae rbx, r14
lea rcx, [rbx + r11*2]
mov r8d, 0x20
lea rdx, str.FLiNGTrainerTemp
call fcn.14008a080
mov word [rbx + rdi*2], r15w
jmp 0x140033a9e
mov qword [rsp + 0x20], SafeArrayUnaccessData
lea r9, str.FLiNGTrainerTemp
movzx r8d, byte [rsp + 0x30]
mov edx, 0x10
lea rcx, [rsp + 0x58]
call fcn.140005170
lea rcx, [rsp + 0x58]
call fcn.14004f040
test al, al
jne 0x140033ac5
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rcx, [rsp + 0x58]
call fcn.14004f040
test al, al
je 0x140033c79
mov rsi, qword [rsp + 0x68]
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
sub rax, rsi
cmp rax, 1
jb 0x140033d0f
lea r15, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae r15, qword [rsp + 0x58]
xor eax, eax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
lea r14, [rsi + 1]
mov rbx, r12
lea rdi, [rsp + 0x78]
cmp r14, rbx
jbe 0x140033b5a
mov rbx, r14
or rbx, 7
cmp rbx, rcx
jbe 0x140033b38
mov rbx, rcx
jmp 0x140033b44
mov eax, 0xa
cmp rbx, rax
cmovb rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rsp + 0x78]
call fcn.140029380
mov rdi, rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x70], rbx
lea rbx, [rsi + rsi]
mov r8, rbx
mov rdx, r15
mov rcx, rdi
call fcn.14008a080
mov eax, 0x5c
mov word [rbx + rdi], ax
xor esi, esi
mov word [rdi + r14*2], si
lea rdx, [r13 + 0x80]
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 8
jb 0x140033b99
mov rdx, qword [rdx]
lea rcx, [rsp + 0x78]
call fcn.140034d40
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rbp - 0x68], xmm0
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rbp - 0x58], xmm0
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], r12
mov word [rax], si
lea rbx, [r13 + 0xa0]
lea rax, [rbp - 0x68]
cmp rbx, rax
je 0x140033bf6
mov rcx, rbx
call fcn.140028d70
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [rbx + 0x10], xmm1
mov word [rbp - 0x68], si
jmp 0x140033bfa
mov r12, qword [rbp - 0x50]
cmp r12, 8
jb 0x140033c37
lea rdx, [r12*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140033c31
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140033d15
call fcn.140087c4c
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x140033c79
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140033c73
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140033d1b
call fcn.140087c4c
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140033cb7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140033cb2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140033d09
call fcn.140087c4c
lea r8, [r13 + 0xa0]
cmp qword [r8 + 0x18], 8
jb 0x140033cc8
mov r8, qword [r8]
lea rdx, [0x1400b7000]
mov ecx, 0x100
call fcn.14004ddb0
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140088250
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.14008e46c
nop
call fcn.140029080
nop
call fcn.14008e46c
nop
call fcn.14008e46c
int3