Function at 0x140065320
Capabilities:
Create directory

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0xb0
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rbx, rcx
mov rsi, qword [rcx + 0x158]
cmp rsi, qword [rcx + 0x160]
jbe 0x14006535f
call fcn.1400796a8
mov rdx, qword [rbx + 0x140]
xor r12d, r12d
test rdx, rdx
jne 0x140065378
call fcn.1400796a8
mov rdx, r12
jmp 0x14006537b
mov rdx, qword [rdx]
cmp rsi, qword [rdx + 0x20]
jb 0x140065386
call fcn.1400796a8
lea r13, vtable.StringStorage.0
mov qword [rsp + 0x20], r13
mov ecx, 8
call fcn.1400797fc
test rax, rax
je 0x1400653ab
lea rcx, [rsp + 0x28]
mov qword [rax], rcx
jmp 0x1400653ae
mov rax, r12
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r12
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x1400d1b20]
repne scasw ax, word [rdi]
not rcx
mov rdx, rcx
xor r8d, r8d
lea rcx, [rsp + 0x28]
call fcn.14002bfc0
mov rdx, qword [rsp + 0x48]
mov rbp, rdx
mov rdi, qword [rsp + 0x40]
sub rbp, rdi
sar rbp, 1
add rbp, rbp
cmp rdi, rdx
jbe 0x140065405
call fcn.1400796a8
mov rax, qword [rsp + 0x28]
test rax, rax
jne 0x140065419
call fcn.1400796a8
mov rdx, r12
jmp 0x14006541c
mov rdx, qword [rax]
cmp rdi, qword [rdx + 0x20]
jb 0x140065427
call fcn.1400796a8
mov r8, rbp
lea rdx, [0x1400d1b20]
mov rcx, rdi
call fcn.14007ad70
nop
mov rdx, rsi
lea rcx, [rsp + 0x20]
mov rax, qword [rsp + 0x20]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rcx, [rsp + 0x20]
call fcn.140038270
test al, al
je 0x14006546b
lea rcx, [rsp + 0x20]
call fcn.1400383f0
test al, al
jne 0x140065662
mov rdi, qword [rsp + 0x40]
cmp rdi, qword [rsp + 0x48]
jbe 0x14006547c
call fcn.1400796a8
mov rax, qword [rsp + 0x28]
test rax, rax
jne 0x140065490
call fcn.1400796a8
mov r11, r12
jmp 0x140065493
mov r11, qword [rax]
cmp rdi, qword [r11 + 0x20]
jb 0x14006549e
call fcn.1400796a8
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140065662
mov qword [rsp + 0x58], r13
lea ecx, [rax + 8]
call fcn.1400797fc
test rax, rax
je 0x1400654cd
lea rcx, [rsp + 0x60]
mov qword [rax], rcx
jmp 0x1400654d0
mov rax, r12
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x88], r12
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x1400d1b20]
repne scasw ax, word [rdi]
not rcx
mov rdx, rcx
xor r8d, r8d
lea rcx, [rsp + 0x60]
call fcn.14002bfc0
mov rdx, qword [rsp + 0x80]
mov rsi, rdx
mov rdi, qword [rsp + 0x78]
sub rsi, rdi
sar rsi, 1
add rsi, rsi
cmp rdi, rdx
jbe 0x140065530
call fcn.1400796a8
mov rax, qword [rsp + 0x60]
test rax, rax
jne 0x140065544
call fcn.1400796a8
mov rdx, r12
jmp 0x140065547
mov rdx, qword [rax]
cmp rdi, qword [rdx + 0x20]
jb 0x140065552
call fcn.1400796a8
mov r8, rsi
lea rdx, [0x1400d1b20]
mov rcx, rdi
call fcn.14007ad70
nop
mov rdi, qword [rbx + 0x158]
cmp rdi, qword [rbx + 0x160]
jbe 0x14006557a
call fcn.1400796a8
mov rdx, qword [rbx + 0x140]
test rdx, rdx
jne 0x140065590
call fcn.1400796a8
mov rdx, r12
jmp 0x140065593
mov rdx, qword [rdx]
cmp rdi, qword [rdx + 0x20]
jb 0x14006559e
call fcn.1400796a8
mov r8, rdi
lea rdx, str.Error:_failed_to_create_local_folder__s
lea rcx, [rsp + 0x58]
call fcn.14002ecb0
mov rdi, qword [rsp + 0x78]
cmp rdi, qword [rsp + 0x80]
jbe 0x1400655c6
call fcn.1400796a8
mov rax, qword [rsp + 0x60]
test rax, rax
jne 0x1400655da
call fcn.1400796a8
mov r11, r12
jmp 0x1400655dd
mov r11, qword [rax]
cmp rdi, qword [r11 + 0x20]
jb 0x1400655e8
call fcn.1400796a8
mov rdx, rdi
mov rcx, rbx
call fcn.140068b70
mov rcx, rbx
call fcn.140065710
nop
mov qword [rsp + 0x58], r13
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140065610
call fcn.140078e60
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x88], r12
mov rcx, qword [rsp + 0x60]
call fcn.140078e60
nop
mov qword [rsp + 0x20], r13
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140065644
call fcn.140078e60
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r12
mov rcx, qword [rsp + 0x28]
call fcn.140078e60
jmp 0x1400656e4
mov rax, qword [rbx + 0x78]
movzx esi, byte [rax + 0xb8]
mov rdi, qword [rbx + 0x120]
cmp rdi, qword [rbx + 0x128]
jbe 0x140065682
call fcn.1400796a8
mov r11, qword [rbx + 0x108]
test r11, r11
jne 0x140065698
call fcn.1400796a8
mov r11, r12
jmp 0x14006569b
mov r11, qword [r11]
cmp rdi, qword [r11 + 0x20]
jb 0x1400656a6
call fcn.1400796a8
movzx r8d, sil
mov rdx, rdi
mov rcx, qword [rbx + 0x70]
call fcn.140063600
nop
mov qword [rsp + 0x20], r13
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400656cb
call fcn.140078e60
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r12
mov rcx, qword [rsp + 0x28]
call fcn.140078e60
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret