Function at 0x140005040
Capabilities:
Check if file exists

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0xc0], rbx
mov rax, qword [0x140121ef0]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x60], rdx
mov r8d, 9
lea rdx, str.logging_
mov rcx, rdi
call fcn.140004d20
lea r15, [rsi + 0x258]
xor r13d, r13d
mov qword [r15 + 0x10], r13
cmp qword [r15 + 0x18], 8
jb 0x1400050aa
mov rax, qword [r15]
jmp 0x1400050ad
mov rax, r15
mov word [rax], r13w
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
mov rcx, r15
call fcn.140004be0
mov r8d, 0x1a
lea rdx, str.alm_service_log_config.cfg
mov rcx, r15
call fcn.140004d20
lea rbx, [rsi + 0x238]
mov qword [rbx + 0x10], r13
cmp qword [rbx + 0x18], 8
jb 0x1400050ef
mov rax, qword [rbx]
jmp 0x1400050f2
mov rax, rbx
mov word [rax], r13w
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call fcn.140004be0
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.alm_service_log.log
mov rcx, rbx
call fcn.140004d20
mov dword [rsi], r13d
mov r12b, 1
lea r14, [rsi + 8]
cmp qword [rbx + 0x18], 8
jb 0x140005133
mov rdx, qword [rbx]
jmp 0x140005136
mov rdx, rbx
mov r9d, 0x40
lea r8d, [r9 - 0x3d]
lea rcx, [r14 + 0x18]
call fcn.1400056f0
xor r8d, r8d
test rax, rax
mov rax, qword [r14]
movsxd rcx, dword [rax + 4]
jne 0x140005167
add rcx, r14
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP110.dll_public:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::setstate_int__bool____ptr64]
jmp 0x140005172
add rcx, r14
xor edx, edx
call qword [sym.imp.MSVCP110.dll_public:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::clear_int__bool____ptr64]
mov rax, qword [r14]
movsxd rcx, dword [rax + 4]
add rcx, 8
add rcx, rsi
call qword [sym.imp.MSVCP110.dll_public:_bool___cdecl_std::ios_base::fail_void_const___ptr64]
test al, al
je 0x1400052b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140005203
cmp qword [rbx + 0x18], 8
jb 0x1400051a5
mov rdx, qword [rbx]
jmp 0x1400051a8
mov rdx, rbx
mov r9d, 0x40
lea r8d, [r9 - 0x3e]
lea rcx, [r14 + 0x18]
call fcn.1400056f0
xor r8d, r8d
test rax, rax
mov rax, qword [r14]
movsxd rcx, dword [rax + 4]
jne 0x1400051d9
add rcx, r14
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP110.dll_public:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::setstate_int__bool____ptr64]
jmp 0x1400051e4
add rcx, r14
xor edx, edx
call qword [sym.imp.MSVCP110.dll_public:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::clear_int__bool____ptr64]
mov rax, qword [rsi + 0x120]
movsxd rcx, dword [rax + 4]
add rcx, 0x120
add rcx, rsi
call qword [sym.imp.MSVCP110.dll_public:_bool___cdecl_std::ios_base::fail_void_const___ptr64]
test al, al
je 0x14000521a
cmp qword [rdi + 0x18], 8
jb 0x140005212
mov rcx, qword [rdi]
call sub.mfc110u.dll_Ordinal_1482
or eax, 0xffffffff
jmp 0x14000548f
xor r12b, r12b
lea rcx, [rsi + 0x18]
mov rdx, qword [sym.imp.MSVCP110.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::endl_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_]
call qword [sym.imp.MSVCP110.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea rcx, [r14 + 0x18]
call fcn.140004eb0
test rax, rax
jne 0x140005253
mov rax, qword [r14]
movsxd rcx, dword [rax + 4]
add rcx, r14
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP110.dll_public:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::setstate_int__bool____ptr64]
cmp qword [rbx + 0x18], 8
jb 0x14000525d
mov rbx, qword [rbx]
mov r9d, 0x40
lea r8d, [r9 - 0x3d]
mov rdx, rbx
lea rcx, [r14 + 0x18]
call fcn.1400056f0
xor r8d, r8d
test rax, rax
mov rax, qword [r14]
movsxd rcx, dword [rax + 4]
jne 0x140005291
add rcx, r14
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP110.dll_public:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::setstate_int__bool____ptr64]
jmp 0x14000529c
add rcx, r14
xor edx, edx
call qword [sym.imp.MSVCP110.dll_public:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::clear_int__bool____ptr64]
mov rax, qword [r14]
movsxd rdx, dword [rax + 4]
lea rcx, [rsi + 8]
add rcx, rdx
call qword [sym.imp.MSVCP110.dll_public:_bool___cdecl_std::ios_base::fail_void_const___ptr64]
test al, al
jne 0x1400053f9
lea rbx, [rsi + 0x120]
cmp qword [r15 + 0x18], 8
jb 0x1400052cb
mov rdx, qword [r15]
jmp 0x1400052ce
mov rdx, r15
mov r9d, 0x40
lea r8d, [r9 - 0x3d]
lea rcx, [rbx + 0x18]
call fcn.1400056f0
xor r8d, r8d
test rax, rax
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
jne 0x1400052ff
add rcx, rbx
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP110.dll_public:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::setstate_int__bool____ptr64]
jmp 0x14000530a
add rcx, rbx
xor edx, edx
call qword [sym.imp.MSVCP110.dll_public:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::clear_int__bool____ptr64]
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, 0x120
add rcx, rsi
call qword [sym.imp.MSVCP110.dll_public:_bool___cdecl_std::ios_base::fail_void_const___ptr64]
test al, al
je 0x140005409
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140005203
cmp qword [r15 + 0x18], 8
jb 0x140005344
mov rdx, qword [r15]
jmp 0x140005347
mov rdx, r15
mov r9d, 0x40
lea r8d, [r9 - 0x3e]
lea rcx, [rbx + 0x18]
call fcn.1400056f0
xor r8d, r8d
test rax, rax
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
jne 0x140005378
add rcx, rbx
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP110.dll_public:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::setstate_int__bool____ptr64]
jmp 0x140005383
add rcx, rbx
xor edx, edx
call qword [sym.imp.MSVCP110.dll_public:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::clear_int__bool____ptr64]
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, 0x120
add rcx, rsi
call qword [sym.imp.MSVCP110.dll_public:_bool___cdecl_std::ios_base::fail_void_const___ptr64]
test al, al
jne 0x1400053f9
lea rcx, [rsi + 0x130]
mov edx, dword [rsi]
call qword [sym.imp.MSVCP110.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___int____ptr64]
mov rcx, rax
mov rdx, qword [sym.imp.MSVCP110.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::endl_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_]
call qword [sym.imp.MSVCP110.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rcx, rbx
call fcn.140004f40
mov r9d, 0x40
lea r8d, [r9 - 0x3d]
mov rdx, r15
mov rcx, rbx
call fcn.1400057e0
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, 0x120
add rcx, rsi
call qword [sym.imp.MSVCP110.dll_public:_bool___cdecl_std::ios_base::fail_void_const___ptr64]
test al, al
je 0x14000547e
mov rcx, rdi
call fcn.140001ec0
or eax, 0xffffffff
jmp 0x14000549f
test r12b, r12b
je 0x140005427
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.MSVCP110.dll_public:_class_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__::operator___int____ptr64____ptr64]
cmp dword [rsi], 0x989680
jle 0x14000547e
mov dword [rsi], r13d
jmp 0x14000547e
mov qword [rsp + 0x20], r13
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x30], r13d
movups xmm0, xmmword [rsp + 0x20]
movaps xmmword [rsp + 0x40], xmm0
movsd xmm1, qword [rsp + 0x30]
movsd qword [rsp + 0x50], xmm1
lea rdx, [rsp + 0x40]
lea rcx, [rsi + 0x130]
call qword [sym.imp.MSVCP110.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::seekp_class_std::fpos_int_____ptr64]
mov edx, dword [rsi]
lea rcx, [rsi + 0x130]
call qword [sym.imp.MSVCP110.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___int____ptr64]
mov rcx, rax
mov rdx, qword [sym.imp.MSVCP110.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::endl_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_]
call qword [sym.imp.MSVCP110.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
nop
cmp qword [rdi + 0x18], 8
jb 0x14000548d
mov rcx, qword [rdi]
call sub.mfc110u.dll_Ordinal_1482
xor eax, eax
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r13
mov word [rdi], r13w
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400bb310
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret