Function at 0x1400598a0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x1a0
mov rax, qword [0x1400d8180]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov rsi, rdx
mov r14, rcx
lea rcx, [rsp + 0x50]
call fcn.140057a20
mov rdi, rax
lea rbx, [r14 + 0x88]
cmp rbx, rax
je 0x140059943
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x140059917
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140059912
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140059977
mov rcx, r8
call fcn.1400a874c
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], al
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], al
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x140059983
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005997e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005997e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a874c
lea rcx, str.nidavellir::auth::handle_authentication
call qword [sym.imp.VMProtectSDK64.dll_VMProtectBeginUltra]
cmp qword [rbx + 0x18], 0xf
jbe 0x14005999a
mov rbx, qword [rbx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov rdi, 0xffffffffffffffff
mov r8, rdi
inc r8
cmp byte [rbx + r8], 0
jne 0x1400599b5
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140003090
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
nop
inc rdi
cmp byte [rsi + rdi], 0
jne 0x1400599e0
mov r8, rdi
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.140003090
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.1400795d8
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140059a4a
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140059a45
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140059a45
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a874c
movdqa xmm0, xmmword [0x1400bd200]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x140059a9d
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140059a98
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140059a98
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a874c
call qword [sym.imp.VMProtectSDK64.dll_VMProtectEnd]
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov r8d, 7
lea rdx, str.Success
lea rcx, [rsp + 0x30]
call fcn.140003090
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140063064
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140059b1d
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140059b18
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140059b18
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a874c
movdqa xmm0, xmmword [0x1400bd200]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
cmp qword [rsp + 0x60], 0
je 0x140059d85
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
lea rdx, [0x140100f10]
cmp qword [0x140100f28], 0xf
cmova rdx, qword [0x140100f10]
lea rcx, [rsp + 0x70]
call fcn.140007be0
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rbx, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rbx
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x6c], edx
cmp qword [rsp + 0xf8], 0
je 0x140059c00
mov rdx, rsi
lea rcx, [rsp + 0x70]
call fcn.140008d10
lea rcx, [rsp + 0x78]
call fcn.140008450
test rax, rax
jne 0x140059bdd
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x70]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x70], rbx
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x6c], edx
jmp 0x140059c23
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x70], rbx
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea r8d, [rcx - 0xa8]
mov dword [rsp + rcx + 0x6c], r8d
lea rcx, [rsp + 0x78]
call fcn.140007b70
lea rcx, [rsp + 0x80]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rsp + 0x118]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rdx, rsi
call fcn.1400098e0
mov byte [r14 + 0x42], 1
lea rcx, str.nidavellir::auth::authentication_dialog
call qword [sym.imp.VMProtectSDK64.dll_VMProtectBeginUltra]
cmp byte [r14 + 0x42], 0
jne 0x140059c77
mov rcx, r14
call fcn.140059dd0
jmp 0x140059d1e
lea rcx, [0x140100e70]
cmp qword [0x140100e88], 7
cmova rcx, qword [0x140100e70]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rcx, [0x140100e90]
cmp qword [0x140100ea8], 7
cmova rcx, qword [0x140100e90]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rcx, [0x140100eb0]
cmp qword [0x140100ec8], 7
cmova rcx, qword [0x140100eb0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rcx, [0x140100ed0]
cmp qword [0x140100ee8], 7
cmova rcx, qword [0x140100ed0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rcx, [0x140100ef0]
cmp qword [0x140100f08], 7
cmova rcx, qword [0x140100ef0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rcx, [0x1401003f0]
call fcn.140054fa0
call qword [sym.imp.VMProtectSDK64.dll_VMProtectEnd]
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x140059d5f
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140059d59
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140059db9
call fcn.1400a874c
nop
mov al, 1
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1400a86f0
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1a0
pop r14
pop rdi
pop rsi
ret
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x140059dc5
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140059dc0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140059dc0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a874c
mov al, 1
jmp 0x140059d61