Function at 0x140005180
Capabilities:
Execute command

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push r13
push r14
push r15
sub rsp, 0x3b0
mov rax, qword [0x14004f040]
xor rax, rsp
mov qword [rsp + 0x3a0], rax
movzx r15d, cl
xor r12d, r12d
mov esi, r12d
mov dword [rsp + 0x30], r12d
lea rcx, [rsp + 0x250]
call fcn.140004860
nop
lea r8d, [r12 + 0xe]
lea rdx, str.Carbon.config
mov rcx, rax
call fcn.140009ef0
xorps xmm0, xmm0
movups xmmword [rsp + 0x230], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x240], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x230], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x240], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], r12b
or esi, 1
mov rdx, qword [rsp + 0x268]
cmp rdx, 0xf
jbe 0x14000526a
inc rdx
mov rcx, qword [rsp + 0x250]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005265
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005265
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140021b80
movdqa xmm0, xmmword [0x140048550]
movdqu xmmword [rsp + 0x260], xmm0
mov byte [rsp + 0x250], 0
lea r14, [rsp + 0x230]
cmp qword [rsp + 0x248], 0xf
cmova r14, qword [rsp + 0x230]
xor eax, eax
mov qword [rsp + 0x88], rax
mov byte [rsp + 0x80], 3
xorps xmm0, xmm0
movups xmmword [rsp + 0x200], xmm0
lea ecx, [rax + 0x20]
call fcn.140021680
mov rbx, rax
lea rax, [rsp + 0x1f0]
mov qword [rsp + 0x200], rax
mov qword [rsp + 0x208], rbx
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], r12
mov r8d, 4
lea rdx, str.name
mov rcx, rbx
call fcn.14000f580
nop
mov qword [rsp + 0x88], rbx
lea rax, [rsp + 0x80]
mov qword [rsp + 0x90], rax
mov byte [rsp + 0x98], 1
xor eax, eax
mov qword [rsp + 0xa8], rax
mov byte [rsp + 0xa0], 3
xorps xmm0, xmm0
movups xmmword [rsp + 0x200], xmm0
lea ecx, [rax + 0x20]
call fcn.140021680
mov rbx, rax
lea rax, [rsp + 0x1f1]
mov qword [rsp + 0x200], rax
mov qword [rsp + 0x208], rbx
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], r12
lea rax, str.CarbonUser
mov rdi, 0xffffffffffffffff
mov r8, rdi
inc r8
cmp byte [rax + r8], 0
jne 0x140005380
mov rdx, rax
mov rcx, rbx
call fcn.14000f580
nop
mov qword [rsp + 0xa8], rbx
lea rax, [rsp + 0xa0]
mov qword [rsp + 0xb0], rax
mov byte [rsp + 0xb8], 1
lea rax, [rsp + 0x80]
mov qword [rsp + 0x200], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x208], rax
lea rdx, [rsp + 0x200]
lea rcx, [rsp + 0xc0]
call fcn.140007c30
lea rax, [rsp + 0xc0]
mov qword [rsp + 0xd0], rax
mov byte [rsp + 0xd8], 1
xor eax, eax
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x40], 3
xorps xmm0, xmm0
movups xmmword [rsp + 0x200], xmm0
lea ecx, [rax + 0x20]
call fcn.140021680
mov rbx, rax
lea rax, [rsp + 0x1f1]
mov qword [rsp + 0x200], rax
mov qword [rsp + 0x208], rbx
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], r12
mov r8d, 4
lea rdx, str.path
mov rcx, rbx
call fcn.14000f580
nop
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x50], rax
mov byte [rsp + 0x58], 1
xor eax, eax
mov qword [rsp + 0x68], rax
mov byte [rsp + 0x60], 3
xorps xmm0, xmm0
movups xmmword [rsp + 0x200], xmm0
lea ecx, [rax + 0x20]
call fcn.140021680
mov rbx, rax
lea rax, [rsp + 0x1f0]
mov qword [rsp + 0x200], rax
mov qword [rsp + 0x208], rbx
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], r12
lea r13, [0x14004fee0]
inc rdi
cmp byte [rdi + r13], 0
jne 0x1400054c4
mov r8, rdi
mov rdx, r13
mov rcx, rbx
call fcn.14000f580
nop
mov qword [rsp + 0x68], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x70], rax
mov byte [rsp + 0x78], 1
lea rax, [rsp + 0x40]
mov qword [rsp + 0x200], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x208], rax
lea rdx, [rsp + 0x200]
lea rcx, [rsp + 0xe0]
call fcn.140007c30
lea rax, [rsp + 0xe0]
mov qword [rsp + 0xf0], rax
mov byte [rsp + 0xf8], 1
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x200], rax
lea rax, [rsp + 0x100]
mov qword [rsp + 0x208], rax
lea rdx, [rsp + 0x200]
lea rcx, [rsp + 0x220]
call fcn.140007c30
nop
lea r9, [fcn.140005d00]
mov edx, 0x20
lea r8d, [rdx - 0x1e]
lea rcx, [rsp + 0xc0]
call fcn.140021868
nop
lea r9, [fcn.140005d00]
mov edx, 0x20
lea r8d, [rdx - 0x1e]
lea rcx, [rsp + 0x40]
call fcn.140021868
nop
lea r9, [fcn.140005d00]
mov edx, 0x20
lea r8d, [rdx - 0x1e]
lea rcx, [rsp + 0x80]
call fcn.140021868
test r15b, r15b
je 0x140005809
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x290]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x140043838]
mov qword [rsp + 0x290], rax
lea rcx, [rsp + 0x338]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
or esi, 2
mov dword [rsp + 0x30], esi
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x298]
lea rcx, [rsp + 0x290]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rsp + 0x290]
movsxd rcx, dword [rax + 4]
lea rbx, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x290], rbx
mov rax, qword [rsp + 0x290]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x28c], edx
lea rcx, [rsp + 0x298]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rsp + 0x298], rax
mov byte [rsp + 0x314], 0
mov byte [rsp + 0x309], 0
lea rcx, [rsp + 0x298]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rsp + 0x318], r12
mov rax, qword [0x14004fec0]
mov qword [rsp + 0x30c], rax
mov qword [rsp + 0x300], r12
mov r8d, 2
mov rdx, r14
lea rcx, [rsp + 0x298]
call fcn.1400095d0
test rax, rax
jne 0x1400056f5
mov rax, qword [rsp + 0x290]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x290]
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
lea rdx, [rsp + 0x220]
lea rcx, [rsp + 0x290]
call fcn.140007640
lea rcx, [rsp + 0x298]
call fcn.140009510
test rax, rax
jne 0x140005740
mov rax, qword [rsp + 0x290]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x290]
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]
lea rcx, str.____Saved_config_file___n
call fcn.140001090
nop
mov rax, qword [rsp + 0x290]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x290], rbx
mov rax, qword [rsp + 0x290]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x28c], edx
lea rcx, [rsp + 0x298]
call fcn.1400074c0
lea rcx, [rsp + 0x2a0]
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 + 0x338]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
movzx edx, byte [rsp + 0x220]
lea rcx, [rsp + 0x228]
call fcn.140009710
nop
mov rdx, qword [rsp + 0x248]
cmp rdx, 0xf
jbe 0x140005cbf
inc rdx
mov rcx, qword [rsp + 0x230]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400057ff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400057ff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140021b80
jmp 0x140005cbf
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x290]
call sub.VCRUNTIME140.dll_memset
mov r8d, 1
mov rdx, r14
lea rcx, [rsp + 0x290]
call fcn.140007530
nop
mov qword [rsp + 0x288], r12
lea rax, [rsp + 0x290]
mov qword [rsp + 0x200], rax
mov rax, qword [rsp + 0x290]
movsxd rcx, dword [rax + 4]
mov rax, qword [rsp + rcx + 0x2d8]
mov qword [rsp + 0x208], rax
lea r8, [rsp + 0x250]
lea rdx, [rsp + 0x200]
lea rcx, [rsp + 0x100]
call fcn.14000efb0
nop
lea r8, [rsp + 0x220]
mov rcx, rax
call fcn.140009230
nop
lea rcx, [rsp + 0x148]
call fcn.1400083c0
mov rcx, qword [rsp + 0x138]
test rcx, rcx
je 0x1400058c6
mov rax, qword [rcx]
lea rdx, [rsp + 0x100]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
lea rcx, [rsp + 0x2a0]
call fcn.140009510
test rax, rax
jne 0x1400058fc
mov rax, qword [rsp + 0x290]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x290]
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]
lea rcx, str.____Loaded_config_file___n
call fcn.140001090
nop
mov rax, qword [rsp + 0x290]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x290], rax
mov rax, qword [rsp + 0x290]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x28c], edx
lea rcx, [rsp + 0x2a0]
call fcn.1400074c0
lea rcx, [rsp + 0x2a8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rsp + 0x340]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rdx, str.name
lea rcx, [rsp + 0x220]
call fcn.14000ec40
lea rdx, [rsp + 0x200]
mov rcx, rax
call fcn.14000ed80
nop
lea rdx, str.path
lea rcx, [rsp + 0x220]
call fcn.14000ec40
lea rdx, [rsp + 0x250]
mov rcx, rax
call fcn.14000ed80
cmp qword [rsp + 0x210], 0x21
jbe 0x140005b0c
lea rcx, str.__x__Name_in_config_file_is_too_long_n
call fcn.140001090
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rdx, qword [rsp + 0x268]
cmp rdx, 0xf
jbe 0x140005a1b
inc rdx
mov rcx, qword [rsp + 0x250]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005a16
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005b9c
call fcn.140021b80
movdqa xmm0, xmmword [0x140048550]
movdqu xmmword [rsp + 0x260], xmm0
mov byte [rsp + 0x250], 0
mov rdx, qword [rsp + 0x218]
cmp rdx, 0xf
jbe 0x140005a77
inc rdx
mov rcx, qword [rsp + 0x200]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005a72
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005bfb
call fcn.140021b80
mov qword [rsp + 0x210], r12
mov qword [rsp + 0x218], 0xf
mov byte [rsp + 0x200], 0
movzx edx, byte [rsp + 0x220]
lea rcx, [rsp + 0x228]
call fcn.140009710
nop
mov rdx, qword [rsp + 0x248]
cmp rdx, 0xf
jbe 0x140005aec
inc rdx
mov rcx, qword [rsp + 0x230]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005ae7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005c73
call fcn.140021b80
movdqa xmm0, xmmword [0x140048550]
movdqu xmmword [rsp + 0x240], xmm0
mov byte [rsp + 0x230], 0
xor al, al
jmp 0x140005cc1
lea rdx, [rsp + 0x200]
cmp qword [rsp + 0x218], 0xf
cmova rdx, qword [rsp + 0x200]
mov r8d, 0x21
lea rcx, str.CarbonUser
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
lea rdx, [rsp + 0x250]
cmp qword [rsp + 0x268], 0xf
cmova rdx, qword [rsp + 0x250]
mov r8d, 0xf0
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov rdx, qword [rsp + 0x268]
cmp rdx, 0xf
jbe 0x140005ba8
inc rdx
mov rcx, qword [rsp + 0x250]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005ba3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005ba3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140021b80
movdqa xmm0, xmmword [0x140048550]
movdqu xmmword [rsp + 0x260], xmm0
mov byte [rsp + 0x250], 0
mov rdx, qword [rsp + 0x218]
cmp rdx, 0xf
jbe 0x140005c07
inc rdx
mov rcx, qword [rsp + 0x200]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005c02
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005c02
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140021b80
mov qword [rsp + 0x210], r12
mov qword [rsp + 0x218], 0xf
mov byte [rsp + 0x200], 0
movzx edx, byte [rsp + 0x220]
lea rcx, [rsp + 0x228]
call fcn.140009710
nop
mov rdx, qword [rsp + 0x248]
cmp rdx, 0xf
jbe 0x140005c7f
inc rdx
mov rcx, qword [rsp + 0x230]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005c7a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005c7a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140021b80
movdqa xmm0, xmmword [0x140048550]
movdqu xmmword [rsp + 0x240], xmm0
mov byte [rsp + 0x230], 0
mov al, 1
jmp 0x140005cc1
xor al, al
mov rcx, qword [rsp + 0x3a0]
xor rcx, rsp
call fcn.140021660
lea r11, [rsp + 0x3b0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret