Function at 0x14000dc10
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
mov r15, rcx
xor r12d, r12d
mov dword [rsp + 0x50], r12d
lea rax, str.C:LETAKey.ini
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], send
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x78]
call fcn.1400096d0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r12
mov r13d, send
mov qword [rsp + 0x70], r13
mov byte [rsp + 0x58], r12b
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rcx, qword [rsp + 0x78]
mov r9d, 0xffffffff
lea r8d, [r12 + 3]
lea rdx, [rbp + 0xd0]
call fcn.140017ef4
mov edx, eax
test eax, eax
jne 0x14000dd05
mov eax, dword [rbp + 0xe0]
test al, 1
mov ecx, 0x1ff
mov r8d, 0x16d
cmovne ecx, r8d
mov dword [rsp + 0x34], ecx
bt eax, 0xa
jae 0x14000dcf7
mov ecx, dword [rbp + 0xe4]
cmp ecx, 0xa000000c
jne 0x14000dce8
lea eax, [rdx + 4]
jmp 0x14000dd29
cmp ecx, 0xa0000003
jne 0x14000dcf7
mov eax, 0xa
jmp 0x14000dd29
movzx eax, al
and eax, 0x10
or eax, 0x20
shr eax, 4
jmp 0x14000dd29
mov dword [rsp + 0x34], 0xffff
sub eax, 2
je 0x14000dd24
sub eax, 1
je 0x14000dd24
sub eax, 0x32
je 0x14000dd24
cmp eax, 0x46
mov eax, r12d
jne 0x14000dd29
mov eax, 1
mov dword [rsp + 0x30], edx
lea rcx, [0x1400298e8]
mov qword [rsp + 0x38], rcx
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
test eax, eax
je 0x14000e30c
cmp eax, 1
je 0x14000e314
lea rbx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rbx, qword [rsp + 0x78]
lea rax, [0x14001c2a8]
mov qword [rbp - 0x60], rax
lea rcx, [rbp + 0x50]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x50], 6
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x60]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rsi, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x60], rsi
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x64], edx
lea rax, [rbp - 0x50]
mov qword [rbp + 0x128], rax
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x50], rax
mov byte [rbp + 0x2c], 0
mov byte [rbp + 0x21], 0
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x30], r12
mov rax, qword [0x14002c2d0]
mov qword [rbp + 0x24], rax
mov qword [rbp + 0x18], r12
mov r9d, 0x40
lea r8d, [r9 - 0x3f]
mov rdx, rbx
lea rcx, [rbp - 0x50]
call fcn.14000e900
test rax, rax
jne 0x14000de3c
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x60]
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 [rbp - 0x60]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x60], rsi
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x64], edx
cmp qword [rbp + 0x30], 0
je 0x14000e292
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x60]
add rcx, rax
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x60]
call fcn.14000a620
cmp qword [rbp + 0x30], 0
je 0x14000dfb9
mov rax, qword [rbp - 0x38]
lea rcx, [rbp + 0x20]
cmp qword [rax], rcx
jne 0x14000dec1
mov rdx, qword [rbp + 0x40]
mov rcx, qword [rbp + 0x38]
mov qword [rax], rcx
mov rax, qword [rbp - 0x18]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp]
mov dword [rax], edx
cmp qword [rbp + 0x18], 0
je 0x14000df25
cmp byte [rbp + 0x21], 0
je 0x14000df25
mov rax, qword [rbp - 0x50]
mov edx, 0xffffffff
lea rcx, [rbp - 0x50]
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x14000dee7
xor al, al
jmp 0x14000df27
lea rax, [rbp + 0x128]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0xd0]
lea r8, [rbp + 0xb0]
lea rdx, [rbp + 0x24]
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000df71
sub eax, 1
je 0x14000df75
cmp eax, 2
je 0x14000df21
xor al, al
jmp 0x14000df27
mov byte [rbp + 0x21], 0
mov al, 1
lea rbx, [rbp - 0x50]
test al, al
cmove rbx, r12
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test eax, eax
cmovne rbx, r12
mov byte [rbp + 0x2c], 0
mov byte [rbp + 0x21], 0
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x30], r12
mov rax, qword [0x14002c2d0]
mov qword [rbp + 0x24], rax
mov qword [rbp + 0x18], r12
test rbx, rbx
jne 0x14000dffa
jmp 0x14000dfde
mov byte [rbp + 0x21], 0
lea rax, [rbp + 0xb0]
mov rbx, qword [rbp + 0x128]
sub rbx, rax
je 0x14000dfad
mov r9, qword [rbp + 0x30]
mov r8, rbx
mov edx, 1
lea rcx, [rbp + 0xb0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
je 0x14000dfad
xor al, al
jmp 0x14000df27
cmp byte [rbp + 0x21], 0
sete al
jmp 0x14000df27
mov byte [rbp + 0x2c], 0
mov byte [rbp + 0x21], 0
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x30], r12
mov rax, qword [0x14002c2d0]
mov qword [rbp + 0x24], rax
mov qword [rbp + 0x18], r12
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x60]
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 rbx, [rsp + 0x58]
mov rsi, qword [rsp + 0x58]
mov r13, qword [rsp + 0x70]
cmp r13, 0x10
cmovae rbx, rsi
mov r14, qword [rsp + 0x68]
cmp r14, 5
jb 0x14000e2c7
lea rdi, [r14 + rbx]
lea r8, [rdi - 4]
sub r8, rbx
mov edx, 0x4b
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov r9, rax
test rax, rax
je 0x14000e2c7
lea rdx, str.KEY_
nop dword [rax + rax]
mov rcx, r12
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r9 + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x14000e079
cmp rcx, 5
jne 0x14000e060
mov eax, r12d
jmp 0x14000e07e
sbb eax, eax
or eax, 1
test eax, eax
je 0x14000e0ad
inc r9
lea r8, [rdi - 4]
sub r8, r9
mov edx, 0x4b
mov rcx, r9
call sub.VCRUNTIME140.dll_memchr
mov r9, rax
test rax, rax
lea rdx, str.KEY_
jne 0x14000e050
jmp 0x14000e2c7
sub r9, rbx
cmp r9, 0xffffffffffffffff
je 0x14000e2c7
lea rbx, [rsp + 0x58]
cmp r13, 0x10
cmovae rbx, rsi
cmp r14, 3
jb 0x14000e2c7
lea rdi, [r14 + rbx]
lea r8, [rdi - 2]
sub r8, rbx
mov edx, 0x22
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x14000e2c7
cmp byte [rax], 0x22
jne 0x14000e108
cmp byte [rax + 1], 0x7d
jne 0x14000e108
cmp byte [rax + 2], 0x3b
jne 0x14000e108
mov ecx, r12d
jmp 0x14000e10d
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x14000e132
inc rax
lea r8, [rdi - 2]
sub r8, rax
mov edx, 0x22
mov rcx, rax
call sub.VCRUNTIME140.dll_memchr
test rax, rax
jne 0x14000e0f2
jmp 0x14000e2c7
sub rax, rbx
cmp rax, 0xffffffffffffffff
je 0x14000e2c7
lea rdi, [r14 - 8]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
cmp r14, 5
jb 0x14000e3b0
lea rax, [r14 - 5]
cmp rax, rdi
cmovb rdi, rax
lea r12, [rsp + 0x58]
cmp r13, 0x10
cmovae r12, rsi
movabs r14, 0x7fffffffffffffff
cmp rdi, r14
ja 0x14000e3b6
cmp rdi, 0x10
jae 0x14000e1ad
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], send
mov r8, rdi
lea rdx, [r12 + 5]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rdi + 0x30], 0
jmp 0x14000e1fc
mov rax, rdi
or rax, 0xf
cmp rax, r14
ja 0x14000e1c8
mov r14, rax
mov ecx, socket
cmp rax, rcx
cmovb r14, rcx
lea rdx, [r14 + 1]
lea rcx, [rsp + 0x30]
call fcn.140004db0
mov rbx, rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], r14
mov r8, rdi
lea rdx, [r12 + 5]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov byte [rdi + rbx], 0
cmp r13, 0x10
jb 0x14000e236
lea rdx, [r13 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x14000e22e
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000e22e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.140018314
movups xmm1, xmmword [rsp + 0x30]
movups xmm2, xmmword [rsp + 0x40]
movups xmmword [r15], xmm1
movups xmmword [r15 + 0x10], xmm2
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x60], rax
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x64], edx
lea rcx, [rbp - 0x50]
call fcn.14000b630
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x50]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
jmp 0x14000e36b
lea rdx, str._n_Unable_to_open_file_for_reading:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400051c0
mov rcx, rax
lea rdx, [rsp + 0x78]
call fcn.140008f10
lea rdx, [0x140005390]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rsi, qword [rsp + 0x58]
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x60], rax
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x64], edx
lea rcx, [rbp - 0x50]
call fcn.14000b630
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x50]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
jmp 0x14000e319
test edx, edx
jne 0x14000e399
mov rsi, qword [rsp + 0x58]
xorps xmm0, xmm0
movups xmmword [r15], xmm0
mov qword [r15 + 0x10], r12
mov qword [r15 + 0x18], send
mov byte [r15], 0
cmp r13, 0x10
jb 0x14000e36b
lea rdx, [r13 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x14000e362
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000e362
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.140018314
nop
lea rcx, [rsp + 0x78]
call fcn.14000cf10
mov rax, r15
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x30]
lea rcx, str.exists
call fcn.14000cd20
nop
call fcn.14000cfc0
int3
call fcn.140001f20
int3