Function at 0x14001e930
Capabilities:
Set current directory

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x2fc0]
mov eax, 0x30c0
call fcn.140026550
sub rsp, rax
mov rax, qword [0x14004b140]
xor rax, rsp
mov qword [rbp + 0x2f90], rax
mov qword [rsp + 0x30f0], rsi
mov rsi, rdx
mov qword [rsp + 0x30b8], r12
mov qword [rsp + 0x30b0], r13
mov qword [rsp + 0x30a0], r15
movsxd rbx, ecx
call qword [sym.imp.KERNEL32.dll_GetACP]
mov rdi, 0xffffffffffffffff
mov r15, rbx
mov r12d, eax
mov eax, 8
mul rbx
cmovo rax, rdi
mov rcx, rax
call fcn.140025bbc
mov r13, rax
xor eax, eax
test ebx, ebx
jle 0x14001ea2d
mov qword [rsp + 0x30a8], r14
mov r14, r13
sub r14, rsi
jmp 0x14001e9c2
xor eax, eax
mov r8, qword [rsi]
mov r9d, edi
mov qword [rsp + 0x38], rax
xor edx, edx
mov qword [rsp + 0x30], rax
mov ecx, r12d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbx, eax
mov rcx, rbx
call fcn.140025bbc
xor ecx, ecx
mov qword [r14 + rsi], rax
mov r8, qword [rsi]
mov r9d, edi
mov qword [rsp + 0x38], rcx
xor edx, edx
mov qword [rsp + 0x30], rcx
mov ecx, r12d
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rsi, [rsi + 8]
sub r15, 1
jne 0x14001e9c0
mov r14, qword [rsp + 0x30a8]
mov rdx, qword [r13 + 8]
lea r8, [0x14003efa0]
lea rcx, [rsp + 0x60]
call sub.msvcrt.dll_fopen_s
mov rbx, qword [rsp + 0x60]
mov r15, qword [rsp + 0x30a0]
mov r13, qword [rsp + 0x30b0]
mov r12, qword [rsp + 0x30b8]
mov rsi, qword [rsp + 0x30f0]
test rbx, rbx
je 0x14001ec81
xor edx, edx
lea rcx, [rbp + 0xf90]
mov r8d, 0x1000
call sub.msvcrt.dll_memset
xor edx, edx
lea rcx, [rbp - 0x70]
mov r8d, 0x1000
call sub.msvcrt.dll_memset
xor edx, edx
lea rcx, [rbp + 0x1f90]
mov r8d, 0x1000
call sub.msvcrt.dll_memset
mov r8, rbx
lea rcx, [rbp - 0x70]
mov edx, 0x1000
call sub.msvcrt.dll_fgets
lea rcx, [rbp - 0x70]
mov rax, rdi
inc rax
cmp byte [rcx + rax], 0
jne 0x14001eac1
dec rax
cmp rax, 0x1000
jae 0x14001ec9d
mov r8, qword [rsp + 0x60]
lea rcx, [rbp + 0xf90]
mov edx, 0x1000
mov byte [rbp + rax - 0x70], 0
call sub.msvcrt.dll_fgets
lea r8, [rbp - 0x80]
lea rdx, str._lld_n
lea rcx, [rbp + 0xf90]
call fcn.14001ecc0
mov r8, qword [rsp + 0x60]
lea rcx, [rbp + 0x1f90]
mov edx, 0x1000
call sub.msvcrt.dll_fgets
lea rax, [rbp + 0x1f90]
nop dword [rax + rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x14001eb30
dec rdi
cmp rdi, 0x1000
jae 0x14001ec9d
mov r8, qword [rsp + 0x60]
lea rcx, [rbp + 0xf90]
mov edx, 0x1000
mov byte [rbp + rdi + 0x1f90], 0
call sub.msvcrt.dll_fgets
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x78]
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x7c]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rdx, str._d__d__f__d__d__d
lea rax, [rsp + 0x74]
lea rcx, [rbp + 0xf90]
mov qword [rsp + 0x20], rax
call fcn.14001ecc0
mov rcx, qword [rsp + 0x60]
call sub.msvcrt.dll_fclose
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryA]
lea rcx, str..MagpieRT.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
je 0x14001ec81
lea rdx, str.Initialize
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x14003eff4]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
call qword [sym.imp.USER32.dll_SetProcessDPIAware]
mov r9d, 1
lea rdx, str.._Runtime.log
mov r8d, 0x186a0
lea ecx, [r9 + 5]
call rbx
mov ecx, dword [rsp + 0x68]
lea rdx, [rbp + 0x1f90]
movss xmm0, dword [rsp + 0x74]
xor eax, eax
mov r9d, dword [rsp + 0x78]
mov r8d, dword [rsp + 0x7c]
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x38], ecx
mov ecx, dword [rsp + 0x6c]
mov dword [rsp + 0x30], ecx
mov rcx, qword [rbp - 0x80]
mov dword [rsp + 0x28], eax
movss dword [rsp + 0x20], xmm0
call rdi
jmp 0x14001ec83
xor eax, eax
mov rcx, qword [rbp + 0x2f90]
xor rcx, rsp
call fcn.140025cd0
add rsp, 0x30c0
pop rdi
pop rbx
pop rbp
ret
call fcn.140025e24
int3