Function at 0x1400826e0
Capabilities:
Get common file path
Set current directory

Disassembly:
push rbx
sub rsp, 0x260
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x140082710
cmp byte [0x140143d28], al
je 0x140082a7c
call fcn.14005ed00
add rsp, 0x260
pop rbx
ret
cmp byte [0x140143d28], 0
mov qword [rsp + 0x288], rdi
lea rax, [0x140140270]
lea rdi, [rsp + 0x40]
mov ecx, 0x104
mov qword [rsp + 0x250], r13
cmovne rdi, rax
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor r13d, r13d
test eax, eax
je 0x1400827a6
cmp word [rbx], r13w
je 0x1400827c0
cmp word [rbx + 2], 0x3a
jne 0x1400827c0
cmp word [rbx + 4], r13w
jne 0x1400827c0
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll__wcsicmp]
test eax, eax
je 0x1400827c0
lea rdx, [0x140123488]
lea rcx, [rsp + 0x30]
mov r8, rbx
call qword [sym.imp.MSVCR100.dll__swprintf]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x1400827c0
mov rdx, rdi
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x1400827c0
mov r8d, 0x103
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll_wcsncpy]
mov word [rdi + 0x206], r13w
cmp byte [0x140143d28], r13b
je 0x140082a6c
mov rbx, qword [0x140140268]
mov qword [rsp + 0x258], r12
movzx eax, byte [rbx + 0x23]
test al, al
jne 0x140082805
mov rcx, qword [rbx + 0x10]
lea rdx, [0x140103674]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
call fcn.1400e6e20
jmp 0x140082a64
lea r12, [0x140103674]
mov qword [rsp + 0x270], rbp
mov qword [rsp + 0x280], rsi
cmp qword [rbx + 8], r12
jne 0x14008282b
mov rbp, qword [rbx + 0x10]
shr rbp, 1
jmp 0x140082830
mov ebp, 1
lea rcx, [rbp + 1]
lea rsi, [rcx + rcx]
cmp al, 2
jne 0x14008284c
mov rdx, rbp
mov rcx, r12
call fcn.140006bc0
jmp 0x140082a54
mov r8, qword [0x14013b0d0]
cmp rsi, r8
jbe 0x14008287d
cmp rsi, qword [rbx + 0x18]
jbe 0x14008287d
lea r8, [0x1401035ac]
lea rdx, [0x140124720]
lea rcx, [0x140143150]
call fcn.14005f7b0
jmp 0x140082a54
cmp rcx, 2
jae 0x140082897
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 3]
call fcn.1400e74d0
jmp 0x140082a54
movzx eax, byte [rbx + 0x21]
test al, 2
je 0x1400828b4
mov rcx, qword [rbx]
and al, 0x3d
mov byte [rbx + 0x21], al
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov r8, qword [0x14013b0d0]
mov rcx, qword [rbx + 0x18]
and byte [rbx + 0x21], 0x82
cmp rsi, rcx
jbe 0x140082a2b
movzx r9d, byte [rbx + 0x20]
movzx eax, r9b
cmp r9b, 1
jbe 0x1400828ed
cmp al, 2
je 0x14008292a
mov rdi, qword [rsp + 0x278]
mov rax, qword [rsp + 0x278]
jmp 0x140082a1f
mov edi, 0x80
cmp rsi, rdi
ja 0x14008292a
cmp rsi, 8
ja 0x140082904
mov edi, 8
jmp 0x140082910
mov eax, reloc.WSOCK32.dll_recv
cmp rsi, rax
cmovbe rdi, rax
mov rcx, rdi
call fcn.1400dd290
test rax, rax
je 0x140082a54
mov byte [rbx + 0x20], 1
jmp 0x140082a1f
cmp rsi, 0x20
jae 0x14008293a
mov edi, SafeArrayAllocDescriptor
jmp 0x1400829e4
mov edi, 0x208
cmp rsi, rdi
jb 0x1400829e4
cmp rsi, 0x50000
jae 0x1400829a0
pxor xmm0, xmm0
cvtsi2sd xmm0, rsi
test rsi, rsi
jns 0x140082967
addsd xmm0, qword [0x1401279a8]
mulsd xmm0, qword [0x1401279e0]
movsd xmm1, qword [0x1401279d8]
xor eax, eax
comisd xmm0, xmm1
jbe 0x140082996
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x140082996
movabs rdx, 0x8000000000000000
mov rax, rdx
cvttsd2si rdi, xmm0
add rdi, rax
jmp 0x1400829e4
cmp rsi, 0x320000
jae 0x1400829b2
lea rdi, [rsi + 0x8000]
jmp 0x1400829e4
cmp rsi, 0xc80000
jae 0x1400829dd
movabs rax, 0x47ae147ae147ae15
mov rdi, rsi
mul rsi
sub rdi, rdx
shr rdi, 1
add rdi, rdx
shr rdi, 6
add rdi, rsi
jmp 0x1400829e4
lea rdi, [rsi + 0x20000]
cmp rdi, r8
cmova rdi, r8
cmp r9b, 2
jne 0x140082a05
test rcx, rcx
je 0x140082a05
mov rcx, qword [rbx + 8]
mov sil, 1
call qword [sym.imp.MSVCR100.dll_free]
jmp 0x140082a08
xor sil, sil
test rdi, rdi
js 0x140082a85
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll_malloc]
test rax, rax
je 0x140082a85
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, r12
je 0x140082a42
lea r8, [rbp + rbp]
mov rdx, r12
call qword [sym.imp.MSVCR100.dll_memmove]
mov rax, qword [rbx + 8]
lea rcx, [rbp + rbp]
mov word [rcx + rax], r13w
mov qword [rbx + 0x10], rcx
mov rsi, qword [rsp + 0x280]
mov rbp, qword [rsp + 0x270]
mov r12, qword [rsp + 0x258]
mov rdi, qword [rsp + 0x288]
mov r13, qword [rsp + 0x250]
add rsp, 0x260
pop rbx
ret
test sil, sil
je 0x140082a9b
lea rax, [0x140141fa8]
mov qword [rbx + 0x18], r13
mov qword [rbx + 8], rax
jmp 0x140082aa3
mov rax, qword [rbx + 8]
mov word [rax], r13w
lea r8, [0x1401035ac]
lea rdx, str.Out_of_memory.
lea rcx, [0x140143150]
mov qword [rbx + 0x10], r13
call fcn.14005f7b0
jmp 0x140082a54