Function at 0x1400295a0
Capabilities:
Set current directory

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov qword [rbp - 0x19], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rdi, rcx
mov byte [rcx + 0x290], 1
mov word [rcx + 0xbe0], 0
mov rax, qword [rcx + 0xbb0]
test rax, rax
je 0x140029bc1
cmp word [rax], 0
je 0x140029bc1
mov ecx, 0x28
call fcn.1400a8560
mov qword [rbp + 0x67], rax
xor r13d, r13d
test rax, rax
je 0x140029631
lea rcx, vtable.Label.0
mov qword [rax], rcx
lea rcx, [0x1400cb664]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], r13
mov qword [rax + 0x20], r13
jmp 0x140029634
mov rax, r13
mov qword [rdi + 0x6d8], rax
test rax, rax
je 0x140029bc1
cmp byte [0x140101d47], 0
lea rbx, [0x1400e3328]
jne 0x14002965b
mov rbx, qword [rdi + 0xbb0]
lea rax, vtable.TextStream.0
mov qword [rbp - 0x79], rax
mov qword [rbp - 0x71], 0
mov dword [rbp - 0x69], r13d
mov dword [rbp - 0x65], 0xffffffff
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x49], xmm0
mov ecx, dword [0x140105f90]
cmp ecx, 0xffffffff
je 0x1400296a6
mov dword [rbp - 0x65], ecx
lea rdx, [rbp - 0x61]
call qword [sym.imp.KERNEL32.dll_GetCPInfo]
movzx ecx, byte [rbp - 0x5b]
test eax, eax
cmove ecx, r13d
mov byte [rbp - 0x5b], cl
lea rax, vtable.TextMem.0
mov qword [rbp - 0x79], rax
mov qword [rbp - 0x39], r13
mov dword [rbp - 0x31], r13d
mov byte [rbp - 0x2d], 0
mov qword [rbp - 0x29], r13
mov r8, rbx
lea rdx, [rbp - 0x79]
mov rcx, rdi
call fcn.140029e70
mov ebx, eax
cmp eax, 3
jne 0x1400296e5
lea rdx, [rbp - 0x79]
mov rcx, rdi
call fcn.14002a060
mov ebx, eax
lea rcx, [rbp - 0x79]
call fcn.1400278c0
cmp ebx, 1
jne 0x140029bc1
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
mov dl, 0x68
mov rcx, rdi
call fcn.140032050
test eax, eax
je 0x140029bc1
mov rsi, qword [rdi + 0x660]
test rsi, rsi
je 0x1400297c5
mov r12d, r13d
cmp byte [rsi + 1], 0
jbe 0x14002979f
mov r15, r13
mov r14, qword [rsi + 8]
add r14, r15
cmp byte [r14 + 1], 0
je 0x14002978f
mov rbx, qword [r14 + 0x10]
test rbx, rbx
je 0x14002977c
cmp qword [rbx], 0
je 0x14002977c
nop dword [rax]
cmp byte [rbx + 0x10], 0
je 0x140029772
movzx r8d, word [rbx + 0x12]
xor r9d, r9d
mov rdx, qword [rbx]
mov rcx, rdi
call fcn.140036180
mov qword [rbx + 8], rax
test rax, rax
je 0x1400297a8
add rbx, 0x18
cmp qword [rbx], 0
jne 0x140029750
mov rdx, r14
mov rcx, rsi
call fcn.14003a170
test eax, eax
je 0x140029bc1
inc r12d
add r15, 0x20
movzx eax, byte [rsi + 1]
cmp r12d, eax
jl 0x140029730
mov rsi, qword [rsi + 0x20]
jmp 0x14002971b
mov r9, qword [rbx]
xor r8d, r8d
lea rdx, str.Call_to_nonexistent_function.
mov rcx, rsi
call fcn.1400468a0
test eax, eax
je 0x140029bc1
mov rcx, qword [rdi + 0x660]
test rcx, rcx
je 0x140029846
mov rdx, qword [rcx + 0x20]
mov r8, qword [rcx + 0x18]
movzx eax, byte [rcx]
cmp al, 8
je 0x1400297e9
cmp al, 0xe5
jne 0x14002983e
mov byte [rcx], reloc.OLEAUT32.dll_SafeArrayGetElemsize
jmp 0x14002981a
movzx eax, byte [rcx + 0x10]
mov byte [rcx], al
mov rax, qword [rdi + 0x678]
mov qword [rcx + 0x18], rax
mov rax, qword [rdi + 0x678]
test rax, rax
je 0x14002980c
mov qword [rax + 0x20], rcx
jmp 0x140029813
mov qword [rdi + 0x670], rcx
mov qword [rdi + 0x678], rcx
test r8, r8
je 0x140029825
mov qword [r8 + 0x20], rdx
jmp 0x14002982c
mov qword [rdi + 0x660], rdx
test rdx, rdx
je 0x140029837
mov qword [rdx + 0x18], r8
jmp 0x14002983e
mov qword [rdi + 0x668], r8
mov rcx, rdx
test rdx, rdx
jne 0x1400297d1
cmp qword [rdi + 0x670], 0
je 0x140029882
mov rcx, qword [rdi + 0x678]
mov rax, qword [rdi + 0x660]
mov qword [rcx + 0x20], rax
mov rcx, qword [rdi + 0x660]
mov rax, qword [rdi + 0x678]
mov qword [rcx + 0x18], rax
mov rax, qword [rdi + 0x670]
mov qword [rdi + 0x660], rax
mov esi, r13d
cmp dword [rdi + 0x698], 0
jle 0x140029902
mov r14, r13
mov rax, qword [rdi + 0x690]
mov rbx, qword [r14 + rax]
cmp byte [rbx + 0x79], 0
jne 0x1400298f4
test byte [rbx + 0x78], 4
jne 0x1400298f4
lea r9, [rbx + 0x5c]
mov r8, qword [rbx + 0x38]
mov rdx, rbx
mov rcx, rdi
call fcn.140047940
lea r9, [rbx + 0x68]
mov r8, qword [rbx + 0x48]
mov rdx, rbx
mov rcx, rdi
call fcn.140047940
lea r9, [rbx + 0x64]
mov r8, qword [rbx + 0x40]
mov rdx, rbx
mov rcx, rdi
call fcn.140047940
lea r9, [rbx + 0x70]
mov r8, qword [rbx + 0x50]
mov rdx, rbx
mov rcx, rdi
call fcn.140047940
inc esi
add r14, 8
cmp esi, dword [rdi + 0x698]
jl 0x140029891
mov rax, qword [rdi + 0x270]
test rax, rax
je 0x14002999c
cmp qword [rax + 0x20], 0
je 0x140029988
mov rax, qword [rax + 0x18]
mov rbx, qword [rax + 0x10]
mov rcx, qword [rax]
test rcx, rcx
je 0x140029988
mov dword [rbp - 1], 5
lea rax, str.__Class
mov qword [rbp - 0x11], rax
mov qword [rbp - 9], r13
lea r8, [rbp - 0x11]
lea rdx, [rbp + 0xf]
call fcn.1400263b0
test al, al
je 0x140029967
mov rcx, qword [rbp + 0xf]
mov rax, rcx
sar rax, 0x20
mov dword [rdi + 0x288], eax
mov dword [rdi + 0x28c], ecx
mov qword [rdi + 0x6d0], r13
mov r8, rbx
lea rdx, str.Unknown_class.
mov rcx, rdi
call fcn.140046d70
test eax, eax
je 0x140029bc1
mov rcx, qword [rdi + 0x270]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rdi + 0x270], r13
cmp dword [0x140102a78], 0
je 0x140029ad7
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea rdx, str.A_Args
mov rcx, rdi
call fcn.1400384b0
mov r14, rax
mov rsi, qword [rdi + 0x660]
test rsi, rsi
je 0x140029ad7
nop
mov r12d, r13d
cmp byte [rsi + 1], 0
jbe 0x140029aca
mov r15, r13
mov rbx, qword [rsi + 8]
add rbx, r15
cmp byte [rbx], 2
jne 0x140029a51
mov rax, qword [rbx + 8]
cmp word [rax], 0
jne 0x140029ab6
mov r9, qword [rbx + 0x10]
cmp byte [r9 + 0x23], 0
jne 0x140029a1b
mov rax, qword [r9 + 0x10]
jmp 0x140029a1e
mov rax, r9
test byte [rax + 0x21], 2
je 0x140029ab6
cmp r9, r14
je 0x140029ab6
mov qword [rsp + 0x20], rsi
mov r9, qword [r9 + 0x28]
lea r8, str.Class_may_be_overwritten.
mov edx, dword [0x140102a78]
mov rcx, rdi
call fcn.1400476e0
jmp 0x140029ab6
cmp byte [rbx + 1], 0
je 0x140029ab6
mov rbx, qword [rbx + 0x18]
mov eax, dword [rbx + 0x10]
cmp eax, 0x41
je 0x140029ab6
cmp eax, 4
jne 0x140029aaa
cmp dword [rbx + 8], 0
je 0x140029aaa
mov r9, qword [rbx]
cmp byte [r9 + 0x23], 0
jne 0x140029a7e
mov rax, qword [r9 + 0x10]
jmp 0x140029a81
mov rax, r9
test byte [rax + 0x21], 2
je 0x140029aaa
cmp r9, r14
je 0x140029aaa
mov qword [rsp + 0x20], rsi
mov r9, qword [r9 + 0x28]
lea r8, str.Class_may_be_overwritten.
mov edx, dword [0x140102a78]
mov rcx, rdi
call fcn.1400476e0
add rbx, 0x20
mov eax, dword [rbx + 0x10]
cmp eax, 0x41
jne 0x140029a63
inc r12d
add r15, 0x20
movzx eax, byte [rsi + 1]
cmp r12d, eax
jl 0x1400299f0
mov rsi, qword [rsi + 0x20]
test rsi, rsi
jne 0x1400299e0
mov rcx, qword [0x140101c98]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
inc dword [rdi + 0x28c]
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
mov dl, 0x68
mov rcx, rdi
call fcn.140032050
test eax, eax
je 0x140029bc1
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
mov dl, 0x68
mov rcx, rdi
call fcn.140032050
test eax, eax
je 0x140029bc1
mov rcx, qword [rdi + 0x6d8]
mov rax, qword [rdi + 0x668]
mov qword [rcx + 0x10], rax
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rdi + 0x660]
mov rcx, rdi
call fcn.1400391e0
test rax, rax
je 0x140029bc1
mov rdx, qword [rdi + 0x660]
mov rcx, rdi
call fcn.1400395e0
test rax, rax
je 0x140029bc1
mov r9d, 3
xor r8d, r8d
lea rdx, str.ErrorLevel
mov rcx, rdi
call fcn.140038420
mov qword [0x140101c20], rax
test rax, rax
je 0x140029bc1
mov byte [rsp + 0x20], 1
xor r9d, r9d
lea r8, [r9 - 1]
lea rdx, [0x1400cb6f4]
mov rcx, rax
call fcn.1400afca0
lea rcx, [rbp + 0x67]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [rbp + 0x67]
call fcn.140025760
mov eax, 1
jmp 0x140029bc6
mov eax, 0xffffffff
lea r11, [rsp + 0xe0]
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