Function at 0x140099d80
Capabilities:
Set current directory

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [rcx + 0xb80]
mov rbx, rcx
mov byte [rcx + 0x2d0], 1
mov word [rcx + 0xbb0], 0
test rax, rax
je 0x14009a3cc
cmp word [rax], 0
je 0x14009a3cc
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x30], r14
call section..text
cmp qword [0x140171200], 0
lea r14, [0x1401295d4]
jne 0x140099de4
call fcn.1400dc340
mov qword [0x140171200], rax
test rax, rax
je 0x140099e42
mov rdx, qword [0x140171208]
cmp qword [rdx + 0x10], 0x28
jae 0x140099e07
call fcn.1400dc340
mov rdx, qword [0x140171208]
mov qword [rdx + 0x18], rax
test rax, rax
je 0x140099e42
mov rcx, qword [rdx + 8]
add qword [rdx + 0x10], 0xffffffffffffffd8
lea rax, [rcx + 0x28]
mov qword [0x140171210], rcx
mov qword [rdx + 8], rax
test rcx, rcx
je 0x140099e42
xor esi, esi
lea rax, vtable.Label.0
mov qword [rcx + 8], r14
mov qword [rcx], rax
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], rsi
mov qword [rcx + 0x20], rsi
jmp 0x140099e46
xor esi, esi
mov ecx, esi
mov qword [rbx + 0x6a8], rcx
test rcx, rcx
je 0x14009a3b9
cmp byte [0x14016f9c9], 0
lea rdx, [0x1401380ac]
jne 0x140099e6d
mov rdx, qword [rbx + 0xb80]
mov rcx, rbx
call fcn.14009aa00
cmp eax, 1
jne 0x14009a3b9
lea edx, [rax + 0x67]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call fcn.1400a3000
test eax, eax
je 0x14009a3b9
mov rcx, qword [0x140174cd0]
test rcx, rcx
je 0x140099eb2
mov edx, 1
call fcn.14001ac70
mov rcx, qword [0x140173ed0]
mov qword [0x140174cd0], rsi
mov qword [0x140174cd8], rsi
test rcx, rcx
je 0x140099ee6
mov r8, qword [0x140173ec8]
xor edx, edx
call fcn.14010ec60
mov rcx, qword [0x140173ed0]
call fcn.140108f48
cmp dword [0x140173ee0], 0
mov qword [0x140173ed0], rsi
mov qword [0x140173ec8], rsi
mov dword [0x140173ed8], esi
je 0x140099f1a
call fcn.1400b3d20
mov rsi, qword [rsp + 0x70]
mov r14, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x50
pop rbx
ret
mov rdx, qword [rbx]
mov rcx, rbx
call fcn.14002cb90
test eax, eax
je 0x14009a3b9
mov rdx, qword [rbx]
mov rcx, rbx
mov qword [rsp + 0x68], rbp
call fcn.14002cc80
cmp qword [rbx + 0x10], 0
je 0x140099f61
mov rax, qword [rbx]
mov rcx, qword [rbx + 0x18]
mov qword [rcx + 0x28], rax
mov rcx, qword [rbx]
mov rax, qword [rbx + 0x18]
mov qword [rcx + 0x20], rax
mov rax, qword [rbx + 0x10]
mov qword [rbx], rax
cmp dword [rbx + 0x38], 0
mov qword [rsp + 0x48], rdi
mov ebp, esi
mov qword [rsp + 0x40], r12
jle 0x140099fc5
mov r12, rsi
nop word [rax + rax]
mov rax, qword [rbx + 0x30]
mov rdi, qword [r12 + rax]
cmp byte [rdi + 0x5d], 0
jne 0x140099fba
test byte [rdi + 0x5c], 4
jne 0x140099fba
mov r8, qword [rdi + 0x30]
lea r9, [rdi + 0x48]
mov rdx, rdi
mov rcx, rbx
call fcn.14003e3a0
mov r8, qword [rdi + 0x38]
lea r9, [rdi + 0x50]
mov rdx, rdi
mov rcx, rbx
call fcn.14003e3a0
inc ebp
add r12, 8
cmp ebp, dword [rbx + 0x38]
jl 0x140099f80
cmp qword [rbx + 0x2b0], 0
je 0x140099ff3
mov rcx, rbx
call fcn.140029b90
test eax, eax
je 0x14009a3b4
mov rcx, qword [rbx + 0x2b0]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rbx + 0x2b0], rsi
cmp dword [0x14016f9dc], 0
je 0x14009a004
mov rcx, rbx
call fcn.14003e4a0
mov rcx, qword [0x1401703e0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
inc dword [rbx + 0x2cc]
mov edx, 0x68
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call fcn.1400a3000
test eax, eax
je 0x14009a3b4
mov edx, 0x68
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call fcn.1400a3000
test eax, eax
je 0x14009a3b4
mov rcx, qword [rbx + 0x6a8]
mov rax, qword [rbx + 8]
xor r9d, r9d
mov qword [rcx + 0x10], rax
mov rdx, qword [rbx]
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call fcn.14002cd00
test rax, rax
je 0x14009a3b4
mov rdx, qword [rbx]
mov rcx, rbx
call fcn.14002d140
test rax, rax
je 0x14009a3b4
lea rcx, [0x140133788]
call fcn.1400dd2e0
cmp word [rax], 0
jne 0x14009a0b0
mov rbx, rsi
jmp 0x14009a0c7
mov r9d, 3
xor r8d, r8d
mov rdx, rax
mov rcx, rbx
call fcn.14002be10
mov rbx, rax
mov qword [0x1401703d0], rbx
test rbx, rbx
je 0x14009a3b4
movzx eax, byte [rbx + 0x23]
mov qword [rsp + 0x38], r13
test al, al
jne 0x14009a105
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1401296b4]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
call fcn.1400e9bc0
jmp 0x14009a33e
lea r13, [0x1401296b4]
cmp qword [rbx + 8], r13
jne 0x14009a11b
mov r12, qword [rbx + 0x10]
shr r12, 1
jmp 0x14009a121
mov r12d, 1
lea rcx, [r12 + 1]
lea rbp, [rcx + rcx]
cmp al, 2
jne 0x14009a13e
mov rdx, r12
mov rcx, r13
call fcn.140005910
jmp 0x14009a33e
mov r9, qword [0x140169b08]
cmp rbp, r9
jbe 0x14009a173
cmp rbp, qword [rbx + 0x18]
jbe 0x14009a173
lea rcx, [0x14014bd60]
call fcn.1400dd2e0
lea rcx, [0x1401712e0]
mov r8, r14
mov rdx, rax
call fcn.1400a5580
jmp 0x14009a33e
cmp rcx, 2
jae 0x14009a18d
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 4]
call fcn.1400ea290
jmp 0x14009a33e
movzx eax, byte [rbx + 0x21]
test al, 2
je 0x14009a1aa
mov rcx, qword [rbx]
and al, 0x3d
mov byte [rbx + 0x21], al
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov r9, qword [0x140169b08]
mov rcx, qword [rbx + 0x18]
and byte [rbx + 0x21], 0x82
cmp rbp, rcx
jbe 0x14009a319
movzx r8d, byte [rbx + 0x20]
movzx eax, r8b
cmp r8b, 1
jbe 0x14009a1dd
cmp al, 2
je 0x14009a21a
mov rdi, qword [rsp + 0x60]
mov rax, qword [rsp + 0x60]
jmp 0x14009a30d
mov edi, 0x80
cmp rbp, rdi
ja 0x14009a21a
cmp rbp, 8
ja 0x14009a1f4
mov edi, 8
jmp 0x14009a200
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
cmp rbp, rax
cmovbe rdi, rax
mov rcx, rdi
call fcn.1400dc2b0
test rax, rax
je 0x14009a33e
mov byte [rbx + 0x20], 1
jmp 0x14009a30d
cmp rbp, 0x20
jae 0x14009a22a
mov edi, SafeArrayAllocDescriptor
jmp 0x14009a2d4
mov edi, 0x208
cmp rbp, rdi
jb 0x14009a2d4
cmp rbp, 0x50000
jae 0x14009a290
pxor xmm0, xmm0
cvtsi2sd xmm0, rbp
test rbp, rbp
jns 0x14009a257
addsd xmm0, qword [0x140152fd8]
mulsd xmm0, qword [0x140153040]
movsd xmm1, qword [0x140153038]
xor eax, eax
comisd xmm0, xmm1
jbe 0x14009a286
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x14009a286
movabs rdx, 0x8000000000000000
mov rax, rdx
cvttsd2si rdi, xmm0
add rdi, rax
jmp 0x14009a2d4
cmp rbp, 0x320000
jae 0x14009a2a2
lea rdi, [rbp + 0x8000]
jmp 0x14009a2d4
cmp rbp, 0xc80000
jae 0x14009a2cd
movabs rax, 0x47ae147ae147ae15
mov rdi, rbp
mul rbp
sub rdi, rdx
shr rdi, 1
add rdi, rdx
shr rdi, 6
add rdi, rbp
jmp 0x14009a2d4
lea rdi, [rbp + 0x20000]
cmp rdi, r9
cmova rdi, r9
cmp r8b, 2
jne 0x14009a2f4
test rcx, rcx
je 0x14009a2f4
mov rcx, qword [rbx + 8]
mov bpl, 1
call fcn.140108f48
jmp 0x14009a2f7
xor bpl, bpl
test rdi, rdi
js 0x14009a37b
mov rcx, rdi
call fcn.1401084ac
test rax, rax
je 0x14009a37b
mov byte [rbx + 0x20], 2
and byte [rbx + 0x21], 0x7f
mov qword [rbx + 8], rax
mov qword [rbx + 0x18], rdi
mov rcx, qword [rbx + 8]
cmp rcx, r13
je 0x14009a32e
lea r8, [r12 + r12]
mov rdx, r13
call fcn.140109100
mov rcx, qword [rbx + 8]
lea rdx, [r12 + r12]
mov word [rdx + rcx], si
mov qword [rbx + 0x10], rdx
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [rsp + 0x60]
call fcn.14001aac0
mov r13, qword [rsp + 0x38]
mov eax, 1
mov r12, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov r14, qword [rsp + 0x30]
add rsp, 0x50
pop rbx
ret
test bpl, bpl
je 0x14009a391
lea rax, [0x140171290]
mov qword [rbx + 0x18], rsi
mov qword [rbx + 8], rax
jmp 0x14009a398
mov rax, qword [rbx + 8]
mov word [rax], si
lea rdx, str.Out_of_memory.
lea rcx, [0x1401712e0]
mov r8, r14
mov qword [rbx + 0x10], rsi
call fcn.1400a5580
jmp 0x14009a33e
or eax, 0xffffffff
jmp 0x14009a35c
mov rsi, qword [rsp + 0x70]
mov r14, qword [rsp + 0x30]
or eax, 0xffffffff
add rsp, 0x50
pop rbx
ret
or eax, 0xffffffff
add rsp, 0x50
pop rbx
ret