Function at 0x1400477f0
Capabilities:
Check if file exists

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x318]
sub rsp, 0x418
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x140131088]
xor rax, rsp
mov qword [rbp + 0x300], rax
mov rdi, r9
mov r14, r8
mov r15, rdx
mov rbx, rcx
cmp qword [r8 + 0x10], 0
jne 0x14004783c
xor al, al
jmp 0x140047bc3
lea rsi, [rcx + 0x30]
mov qword [rsp + 0x58], rsi
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
mov byte [rsp + 0x60], 1
mov rdx, r15
lea rcx, [rbp - 0x78]
call fcn.14004a7f0
nop
mov rdx, r14
lea rcx, [rsp + 0x68]
call fcn.14004a7f0
nop
add rbx, 0x10
cmp qword [rbx + 0x18], 8
jb 0x14004787d
mov rdx, qword [rbx]
jmp 0x140047880
mov rdx, rbx
lea rax, [rbp - 0x28]
mov qword [rbp - 0x30], rax
mov r8d, 3
lea rcx, [rbp - 0x30]
call fcn.140020d50
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov r14d, eax
lea rax, [rbp - 0x28]
mov rcx, qword [rbp - 0x30]
cmp rcx, rax
je 0x1400478b6
call fcn.1400a24a4
test r14d, r14d
je 0x140047925
cmp qword [rbx + 0x18], 8
jb 0x1400478c7
mov rdx, qword [rbx]
jmp 0x1400478ca
mov rdx, rbx
lea rax, [rbp - 0x28]
mov qword [rbp - 0x30], rax
mov r8d, 3
lea rcx, [rbp - 0x30]
call fcn.140020d50
cmp qword [rdi + 0x18], 0x10
jb 0x1400478eb
mov rdi, qword [rdi]
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 0x10
cmovae rdx, qword [rsp + 0x68]
lea rcx, [rbp - 0x78]
cmp qword [rbp - 0x60], 0x10
cmovae rcx, qword [rbp - 0x78]
mov r9, qword [rbp - 0x30]
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov edi, eax
lea rax, [rbp - 0x28]
mov rcx, qword [rbp - 0x30]
jmp 0x140047a0c
cmp qword [rdi + 0x18], 0x10
jb 0x14004792f
mov rdi, qword [rdi]
lea rax, [rbp + 0x1f8]
mov qword [rbp + 0x1f0], rax
mov r8d, 3
mov rdx, rdi
lea rcx, [rbp + 0x1f0]
call fcn.14002f170
nop
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 0x10
cmovae rdx, qword [rsp + 0x68]
lea rax, [rbp + 0xe8]
mov qword [rbp + 0xe0], rax
mov r8d, 3
lea rcx, [rbp + 0xe0]
call fcn.14002f170
nop
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], 0x10
cmovae rdx, qword [rbp - 0x78]
lea rax, [rbp - 0x28]
mov qword [rbp - 0x30], rax
mov r8d, 3
lea rcx, [rbp - 0x30]
call fcn.14002f170
cmp qword [rbx + 0x18], 8
jb 0x1400479b5
mov r9, qword [rbx]
jmp 0x1400479b8
mov r9, rbx
mov r8, qword [rbp + 0x1f0]
mov rdx, qword [rbp + 0xe0]
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edi, eax
lea rax, [rbp - 0x28]
mov rcx, qword [rbp - 0x30]
cmp rcx, rax
je 0x1400479e5
call fcn.1400a24a4
nop
lea rax, [rbp + 0xe8]
mov rcx, qword [rbp + 0xe0]
cmp rcx, rax
je 0x1400479fe
call fcn.1400a24a4
nop
lea rax, [rbp + 0x1f8]
mov rcx, qword [rbp + 0x1f0]
cmp rcx, rax
je 0x140047a16
call fcn.1400a24a4
test edi, edi
jne 0x140047ae3
cmp qword [rbx + 0x18], 8
jb 0x140047a28
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rbp - 0x58]
call fcn.140085880
mov rbx, rax
cmp qword [rax + 0x18], 0x10
jb 0x140047a41
mov rbx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x38], rbx
lea r9, str.CIniConfig::SetValue
mov qword [rsp + 0x30], r9
lea rax, str.__s__Write_config_file_failed:__s_last_error:_d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], WSAStartup
lea r8, str...includes_sunloginincludeiniconfig.cpp
mov edx, 4
lea rcx, [0x1401399a0]
call fcn.14007a380
nop
mov rax, qword [rbp - 0x40]
cmp rax, 0x10
jb 0x140047adf
inc rax
mov rcx, qword [rbp - 0x58]
cmp rax, 0x1000
jb 0x140047ada
test cl, 0x1f
je 0x140047aad
call fcn.1400a26d8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140047abc
call fcn.1400a26d8
int3
sub rcx, rax
cmp rcx, 8
jae 0x140047acb
call fcn.1400a26d8
int3
cmp rcx, 0x27
jbe 0x140047ad7
call fcn.1400a26d8
int3
mov rcx, rax
call fcn.14009d844
xor bl, bl
jmp 0x140047ae5
mov bl, 1
mov rax, qword [rbp - 0x80]
cmp rax, 0x10
jb 0x140047b3c
inc rax
mov rcx, qword [rsp + 0x68]
cmp rax, 0x1000
jb 0x140047b37
test cl, 0x1f
je 0x140047b0a
call fcn.1400a26d8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140047b19
call fcn.1400a26d8
int3
sub rcx, rax
cmp rcx, 8
jae 0x140047b28
call fcn.1400a26d8
int3
cmp rcx, 0x27
jbe 0x140047b34
call fcn.1400a26d8
int3
mov rcx, rax
call fcn.14009d844
mov qword [rbp - 0x80], reloc.WS2_32.dll_ntohs
xor edi, edi
mov qword [rsp + 0x78], rdi
mov byte [rsp + 0x68], dil
mov rax, qword [rbp - 0x60]
cmp rax, 0x10
jb 0x140047ba6
inc rax
mov rcx, qword [rbp - 0x78]
cmp rax, 0x1000
jb 0x140047ba1
test cl, 0x1f
je 0x140047b74
call fcn.1400a26d8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140047b83
call fcn.1400a26d8
int3
sub rcx, rax
cmp rcx, 8
jae 0x140047b92
call fcn.1400a26d8
int3
cmp rcx, 0x27
jbe 0x140047b9e
call fcn.1400a26d8
int3
mov rcx, rax
call fcn.14009d844
mov qword [rbp - 0x60], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x68], rdi
mov byte [rbp - 0x78], 0
mov rdx, qword [rsi]
mov rcx, rsi
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
nop
movzx eax, bl
mov rcx, qword [rbp + 0x300]
xor rcx, rsp
call fcn.14009d860
add rsp, 0x418
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret