Function at 0x140037ff0
Capabilities:
Set current directory

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x160
lea rsi, [0x140136060]
mov qword [rsp + 0x180], rsi
xorps xmm0, xmm0
movdqa xmmword [0x140136060], xmm0
xor ebx, ebx
mov qword [0x140136070], rbx
mov dword [0x140136078], ebx
mov dword [0x140136098], ebx
mov word [0x14013609c], bx
mov dword [0x1401360a0], ebx
movdqa xmmword [0x1401362d0], xmm0
mov qword [0x1401362e0], rbx
mov qword [0x1401362e8], rbx
mov word [0x1401362f0], 1
movdqa xmmword [0x1401366c0], xmm0
xorps xmm1, xmm1
movdqa xmmword [0x1401366d0], xmm1
movdqa xmmword [0x1401366e0], xmm0
mov qword [0x1401366f0], rbx
mov qword [0x1401366f8], rbx
movdqa xmmword [0x140136730], xmm0
mov qword [0x140136740], rbx
lea rbp, [0x1400f97e4]
mov qword [0x140136b60], rbp
mov qword [0x140136b68], rbp
mov qword [0x140136b70], rbx
mov qword [0x140136b80], rbx
mov qword [0x140136b88], rbx
mov qword [0x140136b98], rbx
mov qword [0x140136ba0], rbx
mov qword [0x140136bb0], rbx
mov qword [0x140136bb8], rbx
movdqa xmmword [0x140136bc0], xmm0
mov byte [0x140136bd0], bl
mov dword [0x140136bd4], ebx
mov qword [0x140136bd8], rbx
mov qword [0x140136be0], rbx
mov qword [0x140136be8], rbx
movdqa xmmword [0x140136bf0], xmm0
mov qword [0x140136c00], rbx
mov dword [0x140136c08], ebx
mov word [0x140136c0c], bx
mov byte [0x140136c0e], bl
mov qword [0x140136c10], rbp
mov qword [0x140136c18], rbp
mov qword [0x140136c20], rbp
mov qword [0x140136c28], rbp
mov qword [0x140136c30], rbp
mov qword [0x140136c38], rbp
mov dword [0x140136c40], ebx
mov dword [0x140136c44], 0xffffffff
mov qword [0x140136c48], rbx
mov qword [0x140136c50], rbx
mov dword [0x140136c58], 0x3e8
mov dword [0x140136c5c], 0xf
lea rax, vtable.CKuStringT_wchar_t__class_CKuStringUtilW_.0
mov qword [0x140136c68], rax
mov qword [0x140136c70], rbx
mov byte [0x140136c78], bl
mov qword [0x140136c80], rax
mov qword [0x140136c88], rbx
mov byte [0x140136c90], bl
mov qword [0x140136c98], rax
mov qword [0x140136ca0], rbx
mov byte [0x140136ca8], bl
movdqa xmmword [0x140136cb0], xmm0
mov qword [0x140136cc0], rbx
mov byte [0x140136cc8], bl
mov qword [0x140136cd0], rbx
mov dword [0x140136cd8], ebx
mov word [0x140136952], bx
mov word [0x140136748], bx
xor edx, edx
mov r8d, 0x3c8
lea rcx, [0x1401362f8]
call sub.VCRUNTIME140.dll_memset
mov qword [0x140136300], rbx
mov ecx, 0xa
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x140038231
mov qword [0x140136ce0], rbx
jmp 0x1400382d5
lea rcx, str.Tray
mov rdx, rdi
sub rdx, rcx
nop
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140038240
mov ecx, 0x58
call fcn.1400f6104
mov rcx, rax
mov qword [rsp + 0x188], rax
mov qword [rax], rdi
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbx
mov byte [rax + 0x20], 0
mov qword [rax + 0x24], 2
mov qword [rax + 0x30], rbx
mov qword [rax + 0x38], rbx
mov dword [rax + 0x40], 1
mov qword [rax + 0x48], rbx
mov dword [rax + 0x50], 0xff000000
cmp qword [0x140136bf0], 0
jne 0x1400382ad
mov qword [0x140136bf0], rax
jmp 0x1400382b8
mov rax, qword [0x140136bf8]
mov qword [rax + 0x30], rcx
mov qword [0x140136bf8], rcx
inc dword [0x140136c00]
mov qword [0x140136ce0], rcx
test rcx, rcx
jne 0x1400383c4
mov r8, rbp
lea rdx, str.No_tray_mem
mov rcx, rsi
call fcn.140064aa0
mov dword [0x140136bd4], 0xfffffffe
cmp byte [0x140138672], 0
jne 0x1400383e7
cmp byte [0x140136c40], 0
je 0x1400383e7
mov dword [0x140138998], ebx
xor r8d, r8d
mov edx, 1
mov rcx, qword [0x140132a80]
call fcn.1400017a0
mov r8d, 0x7f
mov rdx, rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov word [rsp + 0x15e], bx
inc dword [0x140132a88]
mov r8, qword [0x14012f240]
add r8, 0x150
mov qword [0x14012f240], r8
mov rax, r8
lea rcx, [0x140132910]
mov edx, 2
nop dword [rax + rax]
movups xmm0, xmmword [rcx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rax + 0x40], xmm0
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rax + 0x50], xmm1
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rax + 0x60], xmm0
lea rax, [rax + 0x80]
movups xmm1, xmmword [rcx + 0x70]
movups xmmword [rax - 0x10], xmm1
lea rcx, [rcx + 0x80]
sub rdx, 1
je 0x1400383ff
jmp 0x140038370
mov byte [rcx + 0x20], 1
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
nop
mov rax, rsi
mov rbx, qword [rsp + 0x190]
add rsp, 0x160
pop rdi
pop rsi
pop rbp
ret
mov byte [0x140132008], 0
xor r8d, r8d
mov edx, 0xfffffffe
mov rcx, rsi
call fcn.14003a630
int3
movups xmm0, xmmword [rcx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rax + 0x40], xmm0
mov dword [r8 + 0x3c], ebx
xor edx, edx
mov rcx, rsi
call fcn.140039a50
mov qword [0x140136c50], rbx
cmp dword [0x140132aac], 0
je 0x140038466
mov rax, qword [0x140131a50]
lea rcx, [0x1400f98c4]
test rax, rax
je 0x140038460
mov rax, qword [rax]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [0x14012f234], ebx
mov byte [0x140138672], 1
mov rcx, qword [0x1401319a8]
cmp rcx, qword [0x1401319b0]
jne 0x14003848f
call fcn.140007bf0
mov rcx, qword [0x1401319a8]
cmp rcx, qword [0x1401319a0]
jb 0x1400384a9
mov rax, qword [0x140136730]
mov qword [rcx], rax
mov rcx, qword [0x1401319a8]
add rcx, 0x18
mov qword [0x1401319a8], rcx
mov qword [rcx], rbx
lea rax, str.OnExit
mov qword [rcx + 8], rax
mov dword [rcx + 0x10], ebx
mov dil, 1
mov byte [0x140132008], 0
mov r8, qword [0x140136bc0]
test r8, r8
je 0x1400384fc
mov rcx, r8
call fcn.1400018a0
mov r8, qword [0x140136bc0]
test eax, eax
je 0x1400384fc
movzx edi, dil
cmp byte [0x140132008], 0
cmove edi, ebx
mov byte [0x140132008], 1
test dil, dil
je 0x14003854a
mov dword [rsp + 0x30], ebx
call fcn.14007f340
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], 1
movsxd rax, dword [0x140138998]
mov qword [rsp + 0x40], rax
test r8, r8
sete bl
mov r9d, ebx
mov r8d, 2
lea rdx, [rsp + 0x20]
lea rcx, [0x140136b70]
call fcn.1400c4bc0
sub qword [0x1401319a8], 0x18
mov byte [0x140138672], 0
xor r8d, r8d
mov edx, 0xfffffffe
mov rcx, rsi
call fcn.14003a630
int3