Function at 0x180004790
Capabilities:
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x1050
call fcn.180073760
sub rsp, rax
mov rax, qword [0x1800ff400]
xor rax, rsp
mov qword [rsp + 0x1040], rax
xor esi, esi
cmp qword [0x180103218], rsi
jne 0x1800049c2
xor edx, edx
mov r8d, 0x1000
lea rcx, [rsp + 0x40]
call fcn.18009fbb0
mov r8d, 0x1000
lea rdx, [rsp + 0x40]
mov rcx, qword [0x180103210]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, 0x5c
lea rcx, [rsp + 0x40]
call fcn.180074790
test rax, rax
je 0x180004815
mov word [rax], si
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, 0x30
call fcn.18007329c
mov rbx, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x180004857
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
mov rcx, rax
call fcn.1800192b0
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
xorps xmm0, xmm0
movups xmmword [rbx + 0x20], xmm0
jmp 0x18000485a
mov rbx, rsi
mov rdi, qword [0x180103218]
mov qword [0x180103218], rbx
test rdi, rdi
je 0x18000489c
cmp dword [rdi + 0x28], 0
jne 0x1800049e7
lea rcx, [rdi + 8]
call fcn.180002c90
mov rcx, rdi
call fcn.180019f80
mov edx, 0x30
mov rcx, rdi
call fcn.1800732d8
mov rbx, qword [0x180103218]
lea rcx, [rsp + 0x20]
call fcn.180006b40
mov r8, rax
mov rdx, qword [rbx + 0x10]
cmp rdx, qword [rbx + 0x18]
je 0x1800048d6
mov qword [rdx], rsi
mov qword [rdx + 8], rsi
mov rax, qword [rax]
mov qword [rdx], rax
mov rax, qword [r8 + 8]
mov qword [rdx + 8], rax
mov qword [r8], rsi
mov qword [r8 + 8], rsi
add qword [rbx + 0x10], 0x10
jmp 0x1800048e0
lea rcx, [rbx + 8]
call fcn.180001540
nop
mov edi, 0xffffffff
mov rbx, qword [rsp + 0x28]
test rbx, rbx
je 0x180004918
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x180004918
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x180004918
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + ioctlsocket]
mov rbx, qword [0x180103218]
lea rcx, [rsp + 0x30]
call fcn.18000bca0
mov r8, rax
mov rdx, qword [rbx + 0x10]
cmp rdx, qword [rbx + 0x18]
je 0x180004959
mov qword [rdx], rsi
mov qword [rdx + 8], rsi
mov rax, qword [rax]
mov qword [rdx], rax
mov rax, qword [r8 + 8]
mov qword [rdx + 8], rax
mov qword [r8], rsi
mov qword [r8 + 8], rsi
add qword [rbx + 0x10], 0x10
jmp 0x180004963
lea rcx, [rbx + 8]
call fcn.180001540
nop
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x180004994
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x180004994
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x180004994
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + ioctlsocket]
call fcn.180005200
mov rax, qword [0x180103218]
mov rdi, qword [rax + 0x10]
mov rbx, qword [rax + 8]
cmp rbx, rdi
je 0x1800049c2
nop dword [rax]
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
add rbx, 0x10
cmp rbx, rdi
jne 0x1800049b0
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1800737c0
lea r11, [rsp + 0x1050]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call fcn.180083408
int3