Function at 0x1800183b0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x250]
sub rsp, 0x350
mov rax, qword [0x1800737f8]
xor rax, rsp
mov qword [rbp + 0x240], rax
mov rbx, r9
mov r14, r8
mov qword [rsp + 0x68], r8
mov esi, edx
mov dword [rsp + 0x34], edx
mov r13, rcx
mov qword [rsp + 0x70], rcx
xor r15d, r15d
mov qword [rbp + 0x60], r15
mov qword [rbp + 0x68], ILRemoveLastID
mov byte [rbp + 0x50], r15b
mov qword [rbp], r15
mov qword [rbp + 8], 7
mov word [rbp - 0x10], r15w
mov r12d, edx
mov dword [rsp + 0x58], edx
imul eax, edx, 0x21
mov dword [rsp + 0x60], eax
movabs r8, 0x7ffffffffffffffe
lea r11d, [r15 + 0x74]
movzx edi, word [rsp + 0x48]
mov dword [rsp + 0x4c], edi
cmp edx, eax
ja 0x180018ca8
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov r9d, 0x9c
lea ecx, [r9 - 0x78]
lea edx, [rcx + 0x22]
cmp r12d, 0x12b
ja 0x180018762
je 0x180018671
mov eax, r12d
sub eax, 0x6f
je 0x18001864a
sub eax, 0x10
je 0x1800184d2
sub eax, 0x13
je 0x1800184ad
sub eax, 0x1d
je 0x180018c56
cmp eax, 0x1b
jne 0x180018c1d
test rbx, rbx
jne 0x180018c1d
mov rbx, r15
jmp 0x180019324
mov eax, dword [rbx]
test eax, eax
je 0x180018c1d
mov dword [rsp + 0x58], eax
mov r8d, 0x30
lea rdx, [rsp + 0x58]
xor ecx, ecx
call fcn.18000bdf0
jmp 0x180018c1d
mov rsi, qword [0x180073718]
lea rdi, [0x180073708]
cmp qword [0x180073720], 8
cmovae rdi, qword [0x180073708]
cmp rsi, 8
jae 0x180018509
movups xmm0, xmmword [rdi]
movups xmmword [rbp + 0x10], xmm0
mov r14d, 7
mov r13, qword [rbp + 0x10]
jmp 0x180018548
mov r14, rsi
or r14, 7
cmp r14, r8
cmova r14, r8
lea rdx, [r14 + 1]
lea rcx, [rbp + 0x10]
call fcn.18001ffc0
mov r13, rax
mov qword [rbp + 0x10], rax
lea r8, [rsi*2 + 2]
mov rdx, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
movabs r8, 0x7ffffffffffffffe
mov qword [rbp + 0x28], r14
mov qword [rbp + 0x20], rsi
lea r15, [rbp + 0x10]
cmp r14, 8
cmovae r15, r13
cmp rsi, 8
jae 0x180018570
movups xmm0, xmmword [r15]
mov qword [rbp + 0x48], 7
jmp 0x1800185aa
mov rdi, rsi
or rdi, 7
cmp rdi, r8
cmova rdi, r8
lea rdx, [rdi + 1]
lea rcx, [rbp + 0x30]
call fcn.18001ffc0
mov qword [rbp + 0x30], rax
lea r8, [rsi*2 + 2]
mov rdx, r15
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp + 0x48], rdi
movups xmm0, xmmword [rbp + 0x30]
movups xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x40], rsi
mov rcx, qword [rbp + 8]
cmp rcx, 8
jb 0x1800185f2
lea rdx, [rcx*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800185ed
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180018c63
call fcn.18005fd08
movups xmm0, xmmword [rbp + 0x10]
movups xmmword [rbp - 0x10], xmm0
movups xmm0, xmmword [rbp + 0x40]
movups xmmword [rbp], xmm0
cmp r14, 8
jb 0x18001863d
lea rdx, [r14*2 + 2]
mov rax, r13
cmp rdx, 0x1000
jb 0x180018635
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180019281
mov rcx, r13
call fcn.18005fd08
mov esi, dword [rsp + 0x34]
mov edi, dword [rsp + 0x4c]
jmp 0x180018c1d
mov r8, r13
mov edx, 1
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
test eax, eax
jne 0x180018c6a
mov rax, qword [r13]
mov qword [rsp + 0x50], rax
jmp 0x180018c1d
mov ecx, 0x20
call fcn.18005fccc
mov rdi, rax
mov qword [rbp - 0x68], rax
test rax, rax
je 0x1800186b7
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], ILRemoveLastID
mov byte [rax], 0
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rbx + r8], 0
jne 0x1800186a0
mov rdx, rbx
mov rcx, rax
call fcn.1800203c0
jmp 0x1800186ba
mov rdi, r15
movups xmm0, xmmword [rdi]
movups xmmword [rbp + 0x50], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbp + 0x60], xmm1
mov qword [rbp + 0x40], r15
mov qword [rbp + 0x48], ILRemoveLastID
mov byte [rbp + 0x30], 0
mov r8, 0xffffffffffffffff
inc r8
cmp byte [r8 + r13], 0
jne 0x1800186e0
mov rdx, r13
lea rcx, [rbp + 0x30]
call fcn.1800203c0
nop
lea r8, [rbp + 0x50]
lea rdx, [rbp + 0x30]
mov ecx, 0xb2
call fcn.180012540
nop
mov rdx, qword [rbp + 0x48]
cmp rdx, 0x10
jb 0x180018745
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180018740
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180018c77
call fcn.18005fd08
xor r9d, r9d
lea r8, [rbp + 0x50]
mov edx, 0x97
mov rcx, r14
call fcn.18004f160
mov edi, dword [rsp + 0x4c]
jmp 0x180018c1d
mov eax, r12d
sub eax, 0x1bc
je 0x180018bf9
sub eax, 0x40
je 0x1800187dd
sub eax, 0x4c
je 0x1800187d3
sub eax, 0xe0
je 0x180018c80
cmp eax, 0x184
jne 0x180018c1d
mov rcx, qword [r14 + 0x10]
mov rdx, qword [r14 + 0x18]
cmp rcx, rdx
jae 0x1800187bc
lea rax, [rcx + 1]
mov qword [r14 + 0x10], rax
mov rax, r14
cmp rdx, 0x10
jb 0x1800187b1
mov rax, qword [r14]
mov word [rax + rcx], 0xa
jmp 0x180018c1d
mov r9b, 0xa
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, r14
call fcn.180001fd0
jmp 0x180018c1d
mov dword [rsp + 0x40], r15d
jmp 0x180018c1d
mov r10, r15
mov qword [rsp + 0x38], r15
mov rdi, r15
mov qword [rbp + 0x10], r15
cmp qword [0x180073738], 0
jbe 0x180018be2
nop word [rax + rax]
mov esi, 0xca
nop word [rax + rax]
cmp esi, 0x155aa
ja 0x180018945
je 0x180018934
cmp esi, 0xca
je 0x18001890d
cmp esi, 0x5602
je 0x1800188b2
cmp esi, 0xab3a
je 0x180018894
cmp esi, 0x10072
jne 0x180018b9a
mov word [rbp + 0x114], r11w
mov r8d, 2
lea rdx, [0x180065ac0]
lea rcx, [rbp + 0x110]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
movzx eax, word [0x180065ac4]
mov word [rbp + 0x117], ax
movzx eax, byte [0x180065ac6]
mov byte [rbp + 0x119], al
mov ecx, 0x24
lea edx, [rcx + 0x22]
jmp 0x180018b9a
mov eax, dword [str.__eh]
mov dword [rbp + 0x110], eax
movzx eax, byte [0x180065ab4]
mov byte [rbp + 0x114], al
jmp 0x180018b9a
mov r8d, 1
lea rdx, [0x180065aa0]
lea rcx, [rbp + 0x120]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
mov r8d, 3
lea rdx, [0x180065aa4]
lea rcx, [rbp + 0x120]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
mov r8d, 4
lea rdx, str.cipa
lea rcx, [rbp + 0x120]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
mov ecx, 0x24
lea edx, [rcx + 0x22]
jmp 0x180018b9a
mov word [rbp + 0x120], dx
movzx eax, word [0x180065abc]
mov word [rbp + 0x121], ax
movzx eax, byte [0x180065abe]
mov byte [rbp + 0x123], al
jmp 0x180018b9a
mov word [rbp + 0x119], cx
mov byte [rsp + 0x30], 1
jmp 0x180018b9a
cmp esi, 0x1aae2
je 0x180018b48
cmp esi, 0x2001a
je 0x180018b12
cmp esi, 0x25552
je 0x180018ae3
cmp esi, 0x2aa8a
jne 0x180018b9a
cmp byte [rsp + 0x30], 0
je 0x180018991
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.GDI32.dll_DeleteDC]
movabs r8, 0x7ffffffffffffffe
lea rax, [0x180073728]
cmp qword [0x180073740], 0x10
cmovae rax, qword [0x180073728]
movsx edx, byte [rax + rdi]
mov word [rsp + 0x48], dx
mov r14, qword [rbp]
mov rcx, qword [rbp + 8]
cmp r14, rcx
jae 0x1800189eb
lea rax, [r14 + 1]
mov qword [rbp], rax
lea rax, [rbp - 0x10]
cmp rcx, 8
cmovae rax, qword [rbp - 0x10]
mov word [rax + r14*2], dx
mov word [rax + r14*2 + 2], r15w
mov ecx, 0x24
lea edx, [rcx + 0x22]
jmp 0x180018b9a
mov rax, r8
sub rax, r14
cmp rax, 1
jb 0x1800193ea
lea r13, [r14 + 1]
mov r12, qword [rbp + 8]
mov rdi, r13
or rdi, 7
cmp rdi, r8
jbe 0x180018a14
mov rdi, r8
jmp 0x180018a35
mov rcx, r12
shr rcx, 1
mov rax, r8
sub rax, rcx
cmp r12, rax
jbe 0x180018a2a
mov rdi, r8
jmp 0x180018a35
lea rax, [r12 + rcx]
cmp rdi, rax
cmovb rdi, rax
lea rdx, [rdi + 1]
lea rcx, [rbp - 0x10]
call fcn.18001ffc0
mov r15, rax
mov qword [rbp], r13
mov qword [rbp + 8], rdi
add r14, r14
mov r8, r14
mov rcx, rax
cmp r12, 8
jb 0x180018ab1
mov rdi, qword [rbp - 0x10]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
movzx eax, word [rsp + 0x48]
mov word [r14 + r15], ax
xor eax, eax
mov word [r14 + r15 + 2], ax
lea rdx, [r12*2 + 2]
cmp rdx, 0x1000
jb 0x180018aa7
add rdx, 0x27
mov rcx, qword [rdi - 8]
sub rdi, rcx
lea rax, [rdi - 8]
cmp rax, 0x1f
ja 0x180018ca1
mov rdi, rcx
mov rcx, rdi
call fcn.18005fd08
jmp 0x180018acc
lea rdx, [rbp - 0x10]
call sub.VCRUNTIME140.dll_memcpy
movzx eax, word [rsp + 0x48]
mov word [r14 + r15], ax
xor eax, eax
mov word [r14 + r15 + 2], ax
mov qword [rbp - 0x10], r15
mov rdi, qword [rbp + 0x10]
xor r15d, r15d
lea ecx, [r15 + 0x24]
lea edx, [rcx + 0x22]
jmp 0x180018b9a
lea rdx, [rbp - 0x78]
mov rcx, qword [rbp - 0x70]
call sub.IMM32.dll_ImmGetStatusWindowPos
mov ecx, r15d
movzx eax, byte [rsp + 0x30]
cmp qword [rsp + 0x78], 0
cmovne ecx, eax
mov byte [rsp + 0x30], cl
mov ecx, 0x24
lea edx, [rcx + 0x22]
jmp 0x180018b9a
mov word [rbp + 0x94], r9w
mov qword [rbp - 0x78], r15
lea r9, [rbp + 0x70]
xor r8d, r8d
lea rdx, [rbp + 0x110]
lea rcx, [rbp + 0x120]
call qword [sym.imp.GDI32.dll_CreateDCA]
mov qword [rsp + 0x78], rax
mov ecx, 0x24
lea edx, [rcx + 0x22]
jmp 0x180018b9a
mov qword [rbp - 0x70], r15
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x70], xmm0
movups xmmword [rbp + 0x80], xmm0
movups xmmword [rbp + 0x90], xmm0
movups xmmword [rbp + 0xa0], xmm0
movups xmmword [rbp + 0xb0], xmm0
movups xmmword [rbp + 0xc0], xmm0
movups xmmword [rbp + 0xd0], xmm0
movups xmmword [rbp + 0xe0], xmm0
movups xmmword [rbp + 0xf0], xmm0
mov qword [rbp + 0x100], rax
mov dword [rbp + 0x108], eax
add esi, 0x5538
cmp esi, 0x2fef8
movabs r8, 0x7ffffffffffffffe
mov r9d, 0x9c
lea r11d, [r9 - 0x28]
jbe 0x180018810
inc rdi
mov qword [rbp + 0x10], rdi
cmp rdi, qword [0x180073738]
jb 0x180018800
mov esi, dword [rsp + 0x34]
mov r12d, dword [rsp + 0x58]
mov r10, qword [rsp + 0x38]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], rax
mov edi, dword [rsp + 0x4c]
jmp 0x180018c22
movsx eax, word [rsp + 0x54]
cdq
sub eax, edx
sar eax, 1
mov edi, eax
mov dword [rsp + 0x4c], eax
mov word [rsp + 0x54], ax
movsx eax, word [rsp + 0x56]
cdq
sub eax, edx
sar eax, 1
mov word [rsp + 0x56], ax
mov r10, qword [rsp + 0x38]
lea ecx, [r12 + rsi]
lea r12d, [rcx + rsi*2]
mov dword [rsp + 0x58], r12d
mov r13, qword [rsp + 0x70]
cmp r12d, dword [rsp + 0x60]
ja 0x180018cb2
mov r14, qword [rsp + 0x68]
xor r15d, r15d
movabs r8, 0x7ffffffffffffffe
lea r11d, [r15 + 0x74]
jmp 0x180018454
mov dword [rsp + 0x40], 0xffffffff
jmp case.0x180018cfd.118
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov dword [rsp + 0x40], 1
jmp case.0x180018cfd.118
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rbx + 0x18]
test rax, rax
je 0x180019324
nop dword [rax]
mov rbx, rax
mov rax, qword [rax + 0x18]
test rax, rax
jne 0x180018c90
jmp 0x180019324
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov r10, qword [rsp + 0x68]
mov qword [rsp + 0x38], r10
lea eax, [rsi - 0xa]
mov dword [rbp + 0x10], eax
cmp esi, eax
jbe case.0x180018cfd.118
mov r8d, 0x64
lea r9d, [r8 - 0x36]
movzx esi, word [rsp + 0x48]
mov r15d, dword [rsp + 0x34]
xor r12d, r12d
lea rdx, [0x180000000]
lea eax, [r15 - 0x6d]
cmp eax, 0x25
ja case.0x180018cfd.119
movzx eax, byte [rdx + rax + 0x1941c]
mov ecx, dword [rdx + rax*4 + 0x193f0]
add rcx, rdx
jmp rcx
mov dword [rsp + 0x48], 2
xor edx, edx
mov qword [rsp + 0x68], rdx
mov r14, qword [rbp]
mov rcx, qword [rbp + 8]
cmp r14, rcx
jae 0x180018d40
lea rax, [r14 + 1]
mov qword [rbp], rax
lea rax, [rbp - 0x10]
cmp rcx, 8
cmovae rax, qword [rbp - 0x10]
mov dword [rax + r14*2], 0x64
xor r12d, r12d
jmp case.0x180018cfd.119
movabs rdx, 0x7ffffffffffffffe
mov rax, rdx
sub rax, r14
cmp rax, 1
jb 0x1800193e4
lea r13, [r14 + 1]
mov r15, qword [rbp + 8]
mov rdi, r13
or rdi, 7
cmp rdi, rdx
jbe 0x180018d73
mov rdi, rdx
jmp 0x180018d94
mov rcx, r15
shr rcx, 1
mov rax, rdx
sub rax, rcx
cmp r15, rax
jbe 0x180018d89
mov rdi, rdx
jmp 0x180018d94
lea rax, [r15 + rcx]
cmp rdi, rax
cmovb rdi, rax
lea rdx, [rdi + 1]
lea rcx, [rbp - 0x10]
call fcn.18001ffc0
mov r12, rax
mov qword [rbp], r13
mov qword [rbp + 8], rdi
add r14, r14
mov r8, r14
mov rcx, rax
cmp r15, 8
jb 0x180018e0d
mov rdi, qword [rbp - 0x10]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov dword [r12 + r14], 0x64
lea rdx, [r15*2 + 2]
cmp rdx, 0x1000
jb 0x180018dfc
add rdx, 0x27
mov rcx, qword [rdi - 8]
sub rdi, rcx
lea rax, [rdi - 8]
cmp rax, 0x1f
ja 0x180019281
mov rdi, rcx
mov rcx, rdi
call fcn.18005fd08
mov qword [rbp - 0x10], r12
jmp 0x18001906d
lea rdx, [rbp - 0x10]
call sub.VCRUNTIME140.dll_memcpy
mov r8d, 0x64
mov dword [r12 + r14], r8d
mov qword [rbp - 0x10], r12
mov r15d, dword [rsp + 0x34]
lea r9d, [r8 - 0x36]
xor r12d, r12d
jmp case.0x180018cfd.119
mov r15, qword [rbp]
mov rcx, qword [rbp + 8]
cmp r15, rcx
jae 0x180018e68
lea rax, [r15 + 1]
mov qword [rbp], rax
lea rax, [rbp - 0x10]
cmp rcx, 8
cmovae rax, qword [rbp - 0x10]
mov dword [rax + r15*2], 0x61
mov r14, qword [rbp - 0x10]
jmp 0x180018f4d
movabs rdx, 0x7ffffffffffffffe
mov rax, rdx
sub rax, r15
cmp rax, 1
jb 0x1800193e4
lea r13, [r15 + 1]
mov r12, qword [rbp + 8]
mov rdi, r13
or rdi, 7
cmp rdi, rdx
jbe 0x180018e9b
mov rdi, rdx
jmp 0x180018ebc
mov rcx, r12
shr rcx, 1
mov rax, rdx
sub rax, rcx
cmp r12, rax
jbe 0x180018eb1
mov rdi, rdx
jmp 0x180018ebc
lea rax, [r12 + rcx]
cmp rdi, rax
cmovb rdi, rax
lea rdx, [rdi + 1]
lea rcx, [rbp - 0x10]
call fcn.18001ffc0
mov r14, rax
mov qword [rbp], r13
mov qword [rbp + 8], rdi
add r15, r15
mov r8, r15
mov rcx, rax
cmp r12, 8
jb 0x180018f2e
mov rdi, qword [rbp - 0x10]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov dword [r15 + r14], 0x61
lea rdx, [r12*2 + 2]
cmp rdx, 0x1000
jb 0x180018f24
add rdx, 0x27
mov rcx, qword [rdi - 8]
sub rdi, rcx
lea rax, [rdi - 8]
cmp rax, 0x1f
ja 0x180019281
mov rdi, rcx
mov rcx, rdi
call fcn.18005fd08
jmp 0x180018f3f
lea rdx, [rbp - 0x10]
call sub.VCRUNTIME140.dll_memcpy
mov dword [r15 + r14], 0x61
mov r9d, PathMakeUniqueName
lea r8d, [r9 + 0x36]
mov qword [rbp - 0x10], r14
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rax
mov r12, qword [rbp]
mov r15, qword [rbp + 8]
cmp r12, r15
jae 0x180018f95
lea rax, [r12 + 1]
mov qword [rbp], rax
lea rax, [rbp - 0x10]
cmp r15, 8
cmovae rax, r14
mov dword [rax + r12*2], 0x74
mov r15d, dword [rsp + 0x34]
xor r12d, r12d
jmp case.0x180018cfd.119
movabs rdx, 0x7ffffffffffffffe
mov rax, rdx
sub rax, r12
cmp rax, 1
jb 0x1800193e4
lea r13, [r12 + 1]
mov rdi, r13
or rdi, 7
cmp rdi, rdx
jbe 0x180018fc5
mov rdi, rdx
jmp 0x180018fe6
mov rcx, r15
shr rcx, 1
mov rax, rdx
sub rax, rcx
cmp r15, rax
jbe 0x180018fdb
mov rdi, rdx
jmp 0x180018fe6
lea rax, [rcx + r15]
cmp rdi, rax
cmovb rdi, rax
lea rdx, [rdi + 1]
lea rcx, [rbp - 0x10]
call fcn.18001ffc0
mov r14, rax
mov qword [rbp], r13
mov qword [rbp + 8], rdi
add r12, r12
mov r8, r12
mov rcx, rax
cmp r15, 8
jb 0x180019058
mov rdi, qword [rbp - 0x10]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov dword [r12 + r14], 0x74
lea rdx, [r15*2 + 2]
cmp rdx, 0x1000
jb 0x18001904e
add rdx, 0x27
mov rcx, qword [rdi - 8]
sub rdi, rcx
lea rax, [rdi - 8]
cmp rax, 0x1f
ja 0x180019281
mov rdi, rcx
mov rcx, rdi
call fcn.18005fd08
jmp 0x180019069
lea rdx, [rbp - 0x10]
call sub.VCRUNTIME140.dll_memcpy
mov dword [r12 + r14], 0x74
mov qword [rbp - 0x10], r14
mov r8d, 0x64
lea r9d, [r8 - 0x36]
mov r15d, dword [rsp + 0x34]
xor r12d, r12d
jmp case.0x180018cfd.119
xor eax, eax
mov dword [rsp + 0x60], eax
xor r12d, r12d
jmp case.0x180018cfd.119
mov dword [rsp + 0x58], 0x36
mov r14, qword [rbp]
mov rcx, qword [rbp + 8]
cmp r14, rcx
jae 0x1800190c9
lea rax, [r14 + 1]
mov qword [rbp], rax
lea rax, [rbp - 0x10]
cmp rcx, 8
cmovae rax, qword [rbp - 0x10]
mov dword [rax + r14*2], PathMakeUniqueName
jmp case.0x180018cfd.119
movabs rdx, 0x7ffffffffffffffe
mov rax, rdx
sub rax, r14
cmp rax, 1
jb 0x1800193e4
lea r13, [r14 + 1]
mov r15, qword [rbp + 8]
mov rdi, r13
or rdi, 7
cmp rdi, rdx
jbe 0x1800190fc
mov rdi, rdx
jmp 0x18001911d
mov rcx, r15
shr rcx, 1
mov rax, rdx
sub rax, rcx
cmp r15, rax
jbe 0x180019112
mov rdi, rdx
jmp 0x18001911d
lea rax, [r15 + rcx]
cmp rdi, rax
cmovb rdi, rax
lea rdx, [rdi + 1]
lea rcx, [rbp - 0x10]
call fcn.18001ffc0
mov r12, rax
mov qword [rbp], r13
mov qword [rbp + 8], rdi
add r14, r14
mov r8, r14
mov rcx, rax
cmp r15, 8
jb 0x18001915d
mov rdi, qword [rbp - 0x10]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov dword [r14 + r12], PathMakeUniqueName
jmp 0x180018dcf
lea rdx, [rbp - 0x10]
call sub.VCRUNTIME140.dll_memcpy
mov r9d, PathMakeUniqueName
mov dword [r14 + r12], r9d
mov qword [rbp - 0x10], r12
mov r15d, dword [rsp + 0x34]
lea r8d, [r9 + 0x36]
xor r12d, r12d
jmp case.0x180018cfd.119
lea rax, [rbp + 0x130]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x60]
mov r8, qword [rsp + 0x68]
mov edx, dword [rsp + 0x58]
mov rcx, r10
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0x28
lea r8, [rbp - 0x60]
mov edx, dword [rsp + 0x48]
lea rcx, [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_GetPrivateObjectSecurity]
mov r8d, 0x64
lea r9d, [r8 - 0x36]
jmp case.0x180018cfd.119
movzx esi, word [rsp + 0x56]
lea r8, [rsp + 0x50]
mov edx, 1
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
test eax, eax
je 0x180019288
movzx eax, word [r13 + 4]
mov word [rsp + 0x54], ax
cmp ax, di
jl 0x180019239
nop word [rax + rax]
lea r8, [rsp + 0x50]
mov edx, 1
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
test eax, eax
jne 0x180019245
movzx eax, word [rsp + 0x54]
dec ax
mov word [rsp + 0x54], ax
cmp ax, di
jge 0x180019210
mov r8d, 0x64
lea r9d, [r8 - 0x36]
jmp case.0x180018cfd.119
mov r8d, 0x64
lea r9d, [r8 - 0x36]
mov r15d, 0x6e
cmp word [rsp + 0x54], di
jl 0x180019288
dec r15d
mov dword [rsp + 0x34], r15d
cmp r15d, dword [rbp + 0x10]
jbe case.0x180018cfd.118
mov edi, dword [rsp + 0x4c]
mov r13, qword [rsp + 0x70]
mov r10, qword [rsp + 0x38]
jmp 0x180018cd7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xor eax, eax
mov dword [rsp + 0x40], eax
jmp case.0x180018cfd.118
mov edi, 0xce
nop dword [rax + rax]
mov eax, edi
sub eax, 0xce
je 0x1800192bd
sub eax, 1
je 0x1800192b5
cmp eax, 1
je case.0x180018cfd.118
jmp 0x1800192fd
xor eax, eax
mov dword [rsp + 0x40], eax
jmp 0x1800192fd
movzx eax, word [r13 + 6]
mov word [rsp + 0x56], ax
cmp ax, si
jl 0x1800192fd
nop dword [rax]
lea r8, [rsp + 0x50]
mov edx, 1
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
test eax, eax
jne 0x180018c6a
movzx eax, word [rsp + 0x56]
dec ax
mov word [rsp + 0x56], ax
cmp ax, si
jge 0x1800192d0
inc edi
cmp edi, 0xd1
jb 0x1800192a0
mov r9d, 0xea
lea r8, [rbp - 0x10]
mov rdx, rbx
xor ecx, ecx
call fcn.180035320
mov byte [rsp + 0x40], al
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rbp + 8]
cmp rcx, 8
jb 0x180019367
lea rdx, [rcx*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180019362
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180019362
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18005fd08
xor eax, eax
mov qword [rbp], rax
mov qword [rbp + 8], 7
mov word [rbp - 0x10], ax
mov rdx, qword [rbp + 0x68]
cmp rdx, 0x10
jb 0x1800193b7
inc rdx
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800193b2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800193b2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18005fd08
mov rax, rbx
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.1800604b0
mov rbx, qword [rsp + 0x398]
add rsp, 0x350
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1800176d0
nop
call fcn.1800176d0
int3