Function at 0x1400d8fb0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x140611be8]
xor rax, rsp
mov qword [rbp + 0x90], rax
movss xmm0, dword [0x14023801c]
call fcn.14008d8d0
movaps xmm0, xmmword [0x14023d2b0]
movups xmmword [rbp + 0x70], xmm0
lea rdx, [rbp + 0x70]
xor ecx, ecx
call fcn.140089310
lea rcx, str.SERVER_SETTINGS
call fcn.1400bb960
mov ecx, 1
call fcn.140088b30
movss xmm0, dword [0x140233c38]
call fcn.14008d8d0
lea rcx, str.SETTINGS_ARE_SAVED_ON_LEAVE_AND_EXECUTED_ON_NEXT_ROUND
call fcn.1400bb960
mov dword [rbp + 0x70], 0x44480000
mov dword [rbp + 0x74], 0x43e10000
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
lea r9, [rbp + 0x70]
mov r8d, 0x2000
lea rdi, [0x140613990]
mov rdx, rdi
lea rcx, [0x14023b0e8]
call fcn.1400b8c30
mov qword [rbp + 0x70], rbx
lea rdx, [rbp + 0x70]
lea rcx, str._BACK
call fcn.1400b4210
test al, al
je 0x1400d9356
mov dword [0x1406159a8], 1
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], rbx
mov qword [rbp + 0x68], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x50], bl
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rdi + rbx], 0
jne 0x1400d90b0
lea rcx, [rbp + 0x50]
cmp rbx, 0xf
ja 0x1400d90d9
mov qword [rbp + 0x60], rbx
mov r8, rbx
mov rdx, rdi
call sub.VCRUNTIME140.dll_memmove
mov byte [rbp + rbx + 0x50], 0
jmp 0x1400d90ec
mov qword [rsp + 0x20], rbx
mov r9, rdi
xor r8d, r8d
mov rdx, rbx
call fcn.1400c3380
lea rcx, str.ServerSettings.txt
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov dword [rsp + 0x20], 1
mov r9d, 0x40
lea r8d, [r9 - 0x38]
lea rdx, str.ServerSettings.txt
lea rcx, [rsp + 0x40]
call fcn.1400cdef0
nop
lea rdi, [rbp + 0x50]
mov r8, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x68]
cmp rdx, 0x10
cmovae rdi, r8
add rdi, qword [rbp + 0x60]
lea rbx, [rbp + 0x50]
cmp rdx, 0x10
cmovae rbx, r8
add rbx, qword [rbp + 0x60]
lea rcx, [rbp + 0x50]
cmp rdx, 0x10
cmovae rcx, r8
mov r8b, ntohs
mov rdx, rbx
call fcn.140229330
mov r8, rax
cmp rax, rbx
je 0x1400d9186
inc rax
cmp rax, rbx
je 0x1400d9186
nop dword [rax]
movzx ecx, byte [rax]
cmp cl, 0xd
je 0x1400d917e
mov byte [r8], cl
inc r8
inc rax
cmp rax, rbx
jne 0x1400d9170
lea rax, [rbp + 0x50]
cmp qword [rbp + 0x68], 0x10
cmovae rax, qword [rbp + 0x50]
mov r9, r8
sub r9, rax
sub rdi, r8
mov rbx, qword [rbp + 0x60]
mov rax, rbx
sub rax, r9
cmp rax, rdi
cmovb rdi, rax
lea rcx, [rbp + 0x50]
cmp qword [rbp + 0x68], 0x10
cmovae rcx, qword [rbp + 0x50]
add rcx, r9
sub rbx, rdi
mov r8, rbx
sub r8, r9
inc r8
lea rdx, [rcx + rdi]
call sub.VCRUNTIME140.dll_memmove
mov qword [rbp + 0x60], rbx
lea rdx, [rbp + 0x50]
cmp qword [rbp + 0x68], 0x10
cmovae rdx, qword [rbp + 0x50]
mov r8, rbx
lea rcx, [rsp + 0x40]
call fcn.1400c2a40
lea rcx, [rsp + 0x48]
call fcn.1400e95f0
test rax, rax
jne 0x1400d9220
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x40]
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]
xorps xmm0, xmm0
movups xmmword [rbp + 0x70], xmm0
mov qword [rbp + 0x80], 7
mov qword [rbp + 0x88], reloc.WS2_32.dll_ntohs
mov rax, qword [str._SETT__n]
mov dword [rbp + 0x70], eax
movzx eax, word [0x14023b114]
mov word [rbp + 0x74], ax
movzx eax, byte [reloc.WS2_32.dll_ioctlsocket]
mov byte [rbp + 0x76], al
mov byte [rbp + 0x77], 0
lea rdx, [rbp + 0x50]
cmp qword [rbp + 0x68], 0x10
cmovae rdx, qword [rbp + 0x50]
mov r8, qword [rbp + 0x60]
lea rcx, [rbp + 0x70]
call fcn.1400e89d0
cmp qword [rax + 0x18], 0x10
jb 0x1400d9285
mov rax, qword [rax]
mov rcx, rax
call fcn.1400dd830
nop
mov rdx, qword [rbp + 0x88]
cmp rdx, 0x10
jb 0x1400d92d0
inc rdx
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400d92ca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400d92ca
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1402282c8
nop
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x40], rax
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x3c], edx
lea rcx, [rsp + 0x48]
call fcn.1400d0e90
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 0x18]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbp + 0x68]
cmp rdx, 0x10
jb 0x1400d9356
inc rdx
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400d9351
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400d9351
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1402282c8
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.1402283e0
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret