Function at 0x1400c1d40
Capabilities:
Allocate or change rwx memory
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 - 0x430]
sub rsp, 0x530
mov r15, rdx
mov rbx, rcx
movzx eax, word [rbx]
cmp ax, 0x20
je 0x1400c1d74
cmp ax, 9
jne 0x1400c1d7a
add rbx, 2
jmp 0x1400c1d65
mov edi, 0x2c
mov edx, edi
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
mov rsi, rax
test rax, rax
je 0x1400c2ad1
cmp word [rax], 0
je 0x1400c2ad1
add rsi, 2
mov edx, edi
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
xor r13d, r13d
test rax, rax
je 0x1400c1dc3
mov edx, edi
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
mov word [rax], r13w
movzx eax, word [rsi]
test ax, ax
je 0x1400c1e1b
mov rdx, rsi
nop
cmp ax, 0x20
je 0x1400c1ddc
cmp ax, 9
jne 0x1400c1de5
add rdx, 2
movzx eax, word [rdx]
jmp 0x1400c1dd0
mov rax, rdx
sub rax, rsi
cmp rax, 2
jb 0x1400c1e1b
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
lea r8, [r8 + 1]
cmp word [rdx + r8*2], r13w
jne 0x1400c1e00
lea r8, [r8*2 + 2]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memmove
mov r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], r13w
jne 0x1400c1e22
lea r9, [rsp + 0x58]
mov rdx, rbx
lea rcx, [0x140118bf0]
call fcn.14003aec0
test rax, rax
je 0x1400c1e54
mov r8, rbx
lea rdx, str.Duplicate_function_definition.
jmp 0x1400c2adb
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rbx + r8*2], r13w
jne 0x1400c1e60
mov qword [rsp + 0x28], r13
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov rdx, rbx
lea rcx, [0x140118bf0]
call fcn.14003c820
mov qword [rsp + 0x78], rax
test rax, rax
je 0x1400c2ae7
lea rcx, [0x14006dc00]
mov qword [rax + 0x10], rcx
mov byte [rax + 0x79], 1
mov dword [rax + 0x24], r13d
mov rax, rsi
sub rax, r15
sar rax, 1
mov r14d, 0x4001
sub r14, rax
lea rdx, str._A_ScriptDir_
mov rcx, rsi
call fcn.1400bf560
mov r12d, 1
mov dword [rbp + 0x488], r12d
test rax, rax
je 0x1400c1f2b
mov rcx, qword [0x1401197a8]
lea r8, [rbp - 0x70]
sub r8, rcx
nop dword [rax + rax]
movzx eax, word [rcx]
mov word [rcx + r8], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x1400c1ef0
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r12d
xor r9d, r9d
lea r8, [rbp - 0x70]
lea rdx, str._A_ScriptDir_
mov rcx, rsi
call fcn.1400bf9b0
lea rdx, str._A_AppData_
mov rcx, rsi
call fcn.1400bf560
test rax, rax
je 0x1400c1fc0
mov edx, 2
lea ecx, [rdx + 0x3f]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
lea rax, [rbp + 0x1a0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x1400c1f7b
mov word [rbp + 0x1a0], r13w
mov rcx, r13
nop
movzx eax, word [rbp + rcx + 0x1a0]
mov word [rbp + rcx - 0x70], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x1400c1f80
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r12d
xor r9d, r9d
lea r8, [rbp - 0x70]
lea rdx, str._A_AppData_
mov rcx, rsi
call fcn.1400bf9b0
lea rdx, str._A_AppDataCommon_
mov rcx, rsi
call fcn.1400bf560
test rax, rax
je 0x1400c2050
mov edx, 2
lea ecx, [rdx + 0x3f]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
lea rax, [rbp + 0x1a0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x23]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x1400c200c
mov word [rbp + 0x1a0], r13w
mov rcx, r13
nop
movzx eax, word [rbp + rcx + 0x1a0]
mov word [rbp + rcx - 0x70], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x1400c2010
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r12d
xor r9d, r9d
lea r8, [rbp - 0x70]
lea rdx, str._A_AppDataCommon_
mov rcx, rsi
call fcn.1400bf9b0
lea rdx, str._A_AhkPath_
mov rcx, rsi
call fcn.1400bf560
test rax, rax
je 0x1400c20c6
lea rcx, [rbp - 0x70]
call fcn.14005d360
mov eax, eax
test rax, rax
je 0x1400c209c
lea rdi, [rbp - 0x70]
lea rdi, [rdi + rax*2]
mov ebx, 0x103
sub rbx, rax
mov r8, rbx
lea rdx, str.AutoHotkey.exe
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov word [rdi + rbx*2], r13w
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r12d
xor r9d, r9d
lea r8, [rbp - 0x70]
lea rdx, str._A_AhkPath_
mov rcx, rsi
call fcn.1400bf9b0
lea rdx, str._A_AhkDir_
mov rcx, rsi
call fcn.1400bf560
test rax, rax
je 0x1400c210d
lea rcx, [rbp - 0x70]
call fcn.14005d360
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r12d
xor r9d, r9d
lea r8, [rbp - 0x70]
lea rdx, str._A_AhkDir_
mov rcx, rsi
call fcn.1400bf9b0
lea rdx, str._A_DllDir_
mov rcx, rsi
call fcn.1400bf560
mov edi, 0x5c
test rax, rax
je 0x1400c21c0
mov r8d, 0x104
lea rdx, [rbp + 0x1a0]
mov rcx, qword [0x140115790]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x1400c215d
mov r8d, 0x104
lea rdx, [rbp + 0x1a0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, edi
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov rbx, rax
lea rax, [rbp + 0x1a0]
sub rbx, rax
sar rbx, 1
mov r8, rbx
lea rdx, [rbp + 0x1a0]
lea rcx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov word [rbp + rbx*2 - 0x70], r13w
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r12d
xor r9d, r9d
lea r8, [rbp - 0x70]
lea rdx, str._A_DllDir_
mov rcx, rsi
call fcn.1400bf9b0
lea rdx, str._A_DllPath_
mov rcx, rsi
call fcn.1400bf560
test rax, rax
je 0x1400c2251
mov r8d, 0x104
lea rdx, [rbp + 0x1a0]
mov rcx, qword [0x140115790]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, eax
test rax, rax
jne 0x1400c220e
mov r8d, 0x104
lea rdx, [rbp + 0x1a0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rcx, r13
movzx eax, word [rbp + rcx + 0x1a0]
mov word [rbp + rcx - 0x70], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x1400c2211
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r12d
xor r9d, r9d
lea r8, [rbp - 0x70]
lea rdx, str._A_DllPath_
mov rcx, rsi
call fcn.1400bf9b0
mov edx, 0x25
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
test rax, rax
je 0x1400c2273
mov r8, rsi
lea rdx, str.Reference_not_allowed_here__use__where_possible._Only__A_AhkPath___A_AhkDir___A_DllPath___A_DllDir___A_ScriptDir___A_AppData_Common___can_be_used_here.
jmp 0x1400c2adb
mov ebx, 0x2c
mov edx, ebx
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
test rax, rax
je 0x1400c2297
mov edx, ebx
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
mov word [rax], r13w
mov qword [rsp + 0x20], r13
xor r9d, r9d
lea r8, [rbp + 0x480]
lea rdx, [rbp + 0x470]
lea rcx, str._s_A_Fa_f0_9__:_A_Fa_f0_9____s_
call fcn.140071620
test rax, rax
je 0x1400c257a
mov r9, 0xffffffffffffffff
nop dword [rax]
inc r9
cmp word [rsi + r9*2], r13w
jne 0x1400c22d0
mov dword [rsp + 0x38], SafeArrayAllocDescriptor
lea rcx, [rbp + 0x3b0]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
mov r8, rsi
mov rdx, qword [rbp + 0x480]
mov rcx, rax
call fcn.1400db450
test eax, eax
js 0x1400c257a
movsxd rax, dword [rbp + 0x3b0]
lea rcx, [rsi + rax*2]
test rcx, rcx
je 0x1400c257a
mov qword [rbp + 0x480], 0x780030
mov edx, 0x3a
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
test rax, rax
je 0x1400c2356
mov edx, 0x3a
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
lea rsi, [rax + 2]
mov edx, 0x3a
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
test rax, rax
je 0x1400c2382
mov edx, 0x3a
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
mov rdi, rax
sub rdi, rsi
sar rdi, 1
jmp 0x1400c239c
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rsi + rax*2], r13w
jne 0x1400c2390
mov edi, eax
mov eax, edi
cdq
sub eax, edx
sar eax, 1
movsxd rbx, eax
lea rax, [rbx - 1]
cmp rax, 0xffff
ja 0x1400c256b
cmp qword [0x140117b60], r13
jne 0x1400c23d4
call fcn.1400bbc30
mov qword [0x140117b60], rax
test rax, rax
je 0x1400c256b
mov rcx, qword [0x140117b58]
cmp rbx, qword [rcx + 0x10]
jbe 0x1400c23fa
call fcn.1400bbc30
mov rcx, qword [0x140117b58]
mov qword [rcx + 0x18], rax
test rax, rax
je 0x1400c256b
mov r12, qword [rcx + 8]
mov qword [rsp + 0x60], r12
mov qword [0x140117b50], r12
mov rax, rbx
and eax, 7
mov rdx, rbx
je 0x1400c241c
sub rdx, rax
add rdx, 8
lea rax, [rdx + r12]
mov qword [rcx + 8], rax
sub qword [rcx + 0x10], rdx
test r12, r12
je 0x1400c256b
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x1400c245d
mov r8, rsi
lea rdx, str.Could_not_commit_memory_for_DllImport.
jmp 0x1400c2adb
mov ebx, r13d
test edi, edi
jle 0x1400c24ad
mov r14, rsi
nop word [rax + rax]
mov r8d, 2
mov rdx, r14
lea rcx, [rbp + 0x484]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
xor edx, edx
lea r8d, [rdx + 0x10]
lea rcx, [rbp + 0x480]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstol]
mov ecx, ebx
shr rcx, 1
mov byte [rcx + r12], al
add ebx, 2
add r14, 4
cmp ebx, edi
jl 0x1400c2470
mov r12d, 1
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rsi + rax*2], r13w
jne 0x1400c24c0
inc rax
lea rbx, [rsi + rax*2]
mov rdx, 0xffffffffffffffff
mov rcx, rbx
call fcn.1400bbb00
mov r14, rax
mov byte [rbp + 0x470], r13b
cmp word [rax], r13w
je 0x1400c24ff
mov rcx, rax
call fcn.140014ec0
test eax, eax
jne 0x1400c24ff
mov r13d, r12d
cmp word [r14], 0
je 0x1400c25e8
mov edi, 0x2c
mov edx, edi
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
test rax, rax
je 0x1400c254a
nop
mov edx, edi
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
mov rbx, rax
test rax, rax
je 0x1400c2537
add rbx, 2
inc r13d
mov edx, edi
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
test rax, rax
jne 0x1400c2520
cmp word [r14], 0
je 0x1400c25e8
cmp r13d, 1
jge 0x1400c25e8
lea rdx, str.Parameter_3_required
jmp 0x1400c2ad8
mov r8, rsi
lea rdx, str.Out_of_memory.
jmp 0x1400c2adb
mov rcx, rsi
call fcn.140025b20
mov qword [rsp + 0x60], rax
test rax, rax
jne 0x1400c24b3
mov edx, edi
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov rbx, rax
test rax, rax
je 0x1400c25c1
mov word [rax], r13w
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x1400c25be
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov word [rbx], di
xor edx, edx
mov rcx, rsi
call fcn.14006bfd0
mov qword [rsp + 0x60], rax
test rax, rax
jne 0x1400c24b3
mov r8, rsi
lea rdx, str.Call_to_nonexistent_function.
jmp 0x1400c2adb
mov r9, qword [0x140117b60]
test r9, r9
jne 0x1400c260c
call fcn.1400bbc30
mov r9, rax
mov qword [0x140117b60], rax
test rax, rax
je 0x1400c2824
mov r8, qword [0x140117b58]
cmp qword [r8 + 0x10], 0x10
jae 0x1400c263a
call fcn.1400bbc30
mov r8, qword [0x140117b58]
mov qword [r8 + 0x18], rax
test rax, rax
je 0x1400c2824
mov r9, qword [0x140117b60]
mov r12, qword [r8 + 8]
mov qword [0x140117b50], r12
lea rax, [r12 + 0x10]
mov qword [r8 + 8], rax
add qword [r8 + 0x10], 0xfffffffffffffff0
test r12, r12
je 0x1400c2824
mov qword [r12], 0
mov qword [r12 + 8], 0
test r13b, 1
jne 0x1400c2684
mov dword [r12 + 8], 2
xor r15d, r15d
jmp 0x1400c271c
movzx eax, word [rbx]
cmp ax, 0x20
je 0x1400c2693
cmp ax, 9
jne 0x1400c2699
add rbx, 2
jmp 0x1400c2684
mov qword [rsp + 0x68], rbx
xor r15d, r15d
mov qword [rsp + 0x70], r15
lea r8d, [r15 + 5]
lea rdx, str.CDecl
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x1400c26ec
add rbx, 0xa
movzx eax, word [rbx]
cmp ax, 0x20
je 0x1400c26d1
cmp ax, 9
jne 0x1400c26d7
add rbx, 2
jmp 0x1400c26c2
mov qword [rsp + 0x68], rbx
test ax, ax
jne 0x1400c26ec
mov dword [r12 + 8], 2
jmp 0x1400c270b
mov rdx, r12
lea rcx, [rsp + 0x68]
call fcn.14006b860
cmp dword [r12 + 8], r15d
je 0x1400c2aca
mov byte [rbp + 0x470], 1
dec r13d
mov r9, qword [0x140117b60]
mov r8, qword [0x140117b58]
mov eax, r13d
cdq
sub eax, edx
sar eax, 1
movsxd rdi, eax
je 0x1400c2837
mov rbx, rdi
shl rbx, 4
lea rcx, [rbx - 1]
cmp rcx, 0xffff
ja 0x1400c279c
test r9, r9
jne 0x1400c2761
call fcn.1400bbc30
mov r9, rax
mov qword [0x140117b60], rax
mov r8, qword [0x140117b58]
test rax, rax
je 0x1400c279c
cmp rbx, qword [r8 + 0x10]
jbe 0x1400c2783
call fcn.1400bbc30
mov r8, qword [0x140117b58]
mov qword [r8 + 0x18], rax
mov r9, qword [0x140117b60]
test rax, rax
je 0x1400c279c
mov rsi, qword [r8 + 8]
mov qword [0x140117b50], rsi
lea rax, [rsi + rbx]
mov qword [r8 + 8], rax
sub qword [r8 + 0x10], rbx
jmp 0x1400c279f
mov rsi, r15
mov qword [rsp + 0x40], rsi
mov rbx, rdi
shl rbx, 4
lea rax, [rbx - 1]
cmp rax, 0xffff
ja 0x1400c2812
test r9, r9
jne 0x1400c27d7
call fcn.1400bbc30
mov r9, rax
mov qword [0x140117b60], rax
mov r8, qword [0x140117b58]
test rax, rax
je 0x1400c2812
cmp rbx, qword [r8 + 0x10]
jbe 0x1400c27f9
call fcn.1400bbc30
mov r8, qword [0x140117b58]
mov qword [r8 + 0x18], rax
mov r9, qword [0x140117b60]
test rax, rax
je 0x1400c2812
mov rcx, qword [r8 + 8]
mov qword [0x140117b50], rcx
lea rax, [rcx + rbx]
mov qword [r8 + 8], rax
sub qword [r8 + 0x10], rbx
jmp 0x1400c2815
mov rcx, r15
mov qword [rsp + 0x48], rcx
test rsi, rsi
je 0x1400c2824
test rcx, rcx
jne 0x1400c2841
lea r8, [0x1400e0684]
lea rdx, str.Out_of_memory.
jmp 0x1400c2adb
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
lea edi, [rdi*8]
movsxd rbx, edi
lea rax, [rbx - 1]
cmp rax, 0xffff
ja 0x1400c28ad
test r9, r9
jne 0x1400c2874
call fcn.1400bbc30
mov qword [0x140117b60], rax
test rax, rax
je 0x1400c28ad
mov r8, qword [0x140117b58]
cmp rbx, qword [r8 + 0x10]
jbe 0x1400c288f
call fcn.1400bbc30
mov r8, qword [0x140117b58]
mov qword [r8 + 0x18], rax
test rax, rax
je 0x1400c28ad
mov rsi, qword [r8 + 8]
mov qword [rsp + 0x50], rsi
mov qword [0x140117b50], rsi
lea rax, [rsi + rbx]
mov qword [r8 + 8], rax
sub qword [r8 + 0x10], rbx
jmp 0x1400c28b5
mov rsi, r15
mov qword [rsp + 0x50], r15
test edi, edi
je 0x1400c28d3
test rsi, rsi
je 0x1400c2824
test edi, edi
je 0x1400c28d3
mov r8, rbx
xor edx, edx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
mov ebx, r15d
mov dword [rbp + 0x480], ebx
cmp r13d, 1
jle 0x1400c2a7a
mov qword [rbp - 0x78], r15
mov r15, rsi
mov rsi, qword [rsp + 0x40]
mov edx, 0x2c
mov rcx, r14
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
mov rdi, rax
xor eax, eax
mov word [rdi], ax
add rdi, 2
mov qword [rbp - 0x80], r14
mov rdx, rsi
lea rcx, [rbp - 0x80]
call fcn.14006b860
mov edx, dword [rsi + 8]
mov eax, edx
test edx, edx
je 0x1400c2aca
sub eax, 1
je 0x1400c29af
sub eax, 5
je 0x1400c298c
sub eax, 1
je 0x1400c298c
cmp eax, 1
je 0x1400c2973
cmp byte [rsi + 0xd], 0
je 0x1400c2966
cmp edx, 5
jne 0x1400c2966
mov rcx, rdi
call fcn.140025b20
test rax, rax
jne 0x1400c2966
mov rcx, rdi
call fcn.14004fa30
jmp 0x1400c2a2a
mov rcx, rdi
call fcn.140025b20
jmp 0x1400c2a2a
mov rcx, rdi
call fcn.140025b20
test rax, rax
jne 0x1400c2aca
mov qword [rsi], rdi
jmp 0x1400c2a2d
mov rcx, rdi
call fcn.140028fa0
movsd qword [rsi], xmm0
cmp dword [rsi + 8], 6
jne 0x1400c2a2d
cvtsd2ss xmm0, xmm0
movss dword [rsi], xmm0
jmp 0x1400c2a2d
mov rcx, rdi
call fcn.140025b20
test rax, rax
jne 0x1400c2aca
lea edx, [rax + 0x2c]
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
mov r14, rax
test rax, rax
je 0x1400c29da
xor eax, eax
mov word [r14], ax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.1400dcf1c
mov rbx, rax
mov qword [rsp + 0x68], rax
xor eax, eax
mov qword [rbx + 8], rax
mov byte [rbx + 0x10], al
lea rax, vtable.CStringCharFromWChar.0
mov qword [rbx], rax
mov rdx, rbx
mov rcx, rdi
call fcn.1400bbd00
nop
mov qword [r15], rbx
test r14, r14
je 0x1400c2a1c
mov eax, 0x2c
mov word [r14], ax
mov rcx, qword [r15]
call fcn.140082260
mov ebx, dword [rbp + 0x480]
mov qword [rsi], rax
mov edx, 0x2c
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
mov r14, rax
test rax, rax
je 0x1400c2a4d
xor eax, eax
mov word [r14], ax
add r14, 2
inc ebx
mov dword [rbp + 0x480], ebx
add rsi, 0x10
add r15, 8
mov eax, dword [rbp + 0x488]
add eax, 2
mov dword [rbp + 0x488], eax
cmp eax, r13d
jl 0x1400c28f2
xor r15d, r15d
jmp 0x1400c2a81
mov rdi, qword [rbp + 0x470]
cmp byte [rbp + 0x470], 0
je 0x1400c2a93
test r13d, r13d
je 0x1400c2a93
mov word [rdi], r15w
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
mov qword [rcx + 0x28], rax
mov dword [rcx + 0x20], ebx
mov qword [rcx + 0x38], r12
mov rax, qword [rsp + 0x50]
mov qword [rcx + 0x48], rax
mov rax, qword [rsp + 0x40]
mov qword [rcx + 0x40], rax
mov rax, qword [rsp + 0x48]
mov qword [rcx + 0x18], rax
mov eax, 3
jmp 0x1400c2ae7
mov eax, 4
jmp 0x1400c2ae7
lea rdx, str.Parameter_2_required
mov r8, r15
lea rcx, [0x140118bf0]
call fcn.14004dd50
mov rbx, qword [rsp + 0x578]
add rsp, 0x530
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret