Function at 0x18002d790
Capabilities:
Check if file exists
Print debug messages

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x328], rbx
mov rax, qword [0x1800ea550]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov r12, r8
mov rbx, rdx
mov rsi, rcx
cmp qword [rdx + 0x10], 0
jne 0x18002d7e0
xor al, al
jmp 0x18002dc62
call fcn.18002fd60
mov rdx, rbx
lea rcx, [rbp + 0x180]
call fcn.180012030
nop
cmp qword [rax + 0x10], 0
jne 0x18002d800
xor al, al
jmp 0x18002d819
cmp qword [rax + 0x18], 8
jb 0x18002d80a
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
sete dil
cmp qword [rbp + 0x198], 8
jb 0x18002d835
mov rcx, qword [rbp + 0x180]
call fcn.18007309c
mov qword [rbp + 0x198], 7
xor r13d, r13d
mov qword [rbp + 0x190], r13
mov word [rbp + 0x180], r13w
lea rcx, [rbp + 0x180]
test dil, dil
je 0x18002d8ae
mov byte [0x1800eea19], 1
mov rdx, rbx
call fcn.180012030
nop
mov rcx, rax
call fcn.18001a580
mov byte [rsi + 0x28], al
cmp qword [rbp + 0x198], 8
jb 0x18002d88f
mov rcx, qword [rbp + 0x180]
call fcn.18007309c
mov qword [rbp + 0x198], 7
mov qword [rbp + 0x190], r13
mov word [rbp + 0x180], r13w
jmp 0x18002dc5e
mov qword [rbp + 0x198], 7
mov qword [rbp + 0x190], r13
mov word [rbp + 0x180], r13w
xor r8d, r8d
lea rdx, [0x1800b6ec4]
call fcn.180007850
nop
lea r8, [rbp + 0x180]
lea rdx, [rbp + 0x158]
lea rcx, [rbp + 0x140]
call fcn.18001d200
nop
cmp qword [rbp + 0x198], 8
jb 0x18002d909
mov rcx, qword [rbp + 0x180]
call fcn.18007309c
mov qword [rbp + 0x198], 7
mov qword [rbp + 0x190], r13
mov word [rbp + 0x180], r13w
mov rcx, r12
call fcn.180003be0
mov r9, rax
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rdi, rax
test rax, rax
je 0x18002d9ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x18002d9ae
lea rcx, str.FXConfigImpl::read_Parse_Mutex_ALREADY_EXISTED
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, 0xbb8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x18002d983
lea rcx, str.FXConfigImpl::read_Parse_WaitForSingleObject_mutex_OK.
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x18002d9ae
cmp eax, 0x102
jne 0x18002d9ae
lea rcx, str.FXConfigImpl::read_TIME_OUT.
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18002dc5e
lea rcx, [rbp + 0x30]
call fcn.18001c0d0
nop
cmp qword [rbx + 0x18], 0x10
jb 0x18002d9c4
mov rdx, qword [rbx]
jmp 0x18002d9c7
mov rdx, rbx
mov r8d, 1
lea rcx, [rbp + 0x40]
call fcn.180005950
test rax, rax
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea rcx, [rbp + rcx + 0x30]
jne 0x18002d9fa
mov edx, dword [rcx + 0x10]
or edx, 2
cmp qword [rcx + 0x48], 0
jne 0x18002da09
or edx, 4
jmp 0x18002da09
mov edx, r13d
mov eax, 4
cmp qword [rcx + 0x48], rdx
cmove edx, eax
xor r8d, r8d
call fcn.1800019c0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbp + 0xd8], 0
jne 0x18002da3b
lea rcx, [rbp + 0x30]
call fcn.180014e20
jmp 0x18002dc5e
lea rcx, [rsp + 0x30]
call fcn.18002e580
nop
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.1800161f0
lea rcx, [rbp + 0x40]
call fcn.180005a40
test rax, rax
jne 0x18002da87
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea rcx, [rbp + rcx + 0x30]
mov edx, dword [rcx + 0x10]
or edx, 2
cmp qword [rcx + 0x48], 0
jne 0x18002da7f
or edx, 4
xor r8d, r8d
call fcn.1800019c0
lea rdx, [rbp + 0x1a8]
lea rcx, [rsp + 0x30]
call fcn.18002e700
nop
lea rdx, [rbp + 0x1a8]
mov rcx, rbx
call fcn.180041330
cmp qword [rbp + 0x1b8], 0
jne 0x18002db25
mov byte [rsi + 0x28], 1
cmp qword [rbp + 0x1c0], 0x10
jb 0x18002dacc
mov rcx, qword [rbp + 0x1a8]
call fcn.18007309c
mov qword [rbp + 0x1c0], 0xf
mov qword [rbp + 0x1b8], r13
mov byte [rbp + 0x1a8], 0
lea rcx, [rbp - 0x38]
call fcn.18002e670
lea r11, [rbp - 0x38]
mov qword [rsp + 0x20], r11
lea rbx, vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x38], rbx
lea rdi, vtable.std::ios_base.0
mov qword [rbp - 0x38], rdi
lea rcx, [rbp - 0x38]
call fcn.1800724a4
nop
lea rcx, [rbp + 0x30]
call fcn.180014e20
jmp 0x18002dc5e
lea rdx, [rbp + 0x1a8]
mov rcx, rsi
call fcn.18002fec0
mov byte [rsi + 0x28], al
cmp qword [rbp + 0x1c0], 0x10
jb 0x18002db4d
mov rcx, qword [rbp + 0x1a8]
call fcn.18007309c
mov qword [rbp + 0x1c0], 0xf
mov qword [rbp + 0x1b8], r13
mov byte [rbp + 0x1a8], 0
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x30], rax
lea rcx, [rsp + 0x48]
call fcn.180004b20
nop
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x30], rax
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x40], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea r12, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x30], r12
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
lea rbx, vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x38], rbx
lea rdi, vtable.std::ios_base.0
mov qword [rbp - 0x38], rdi
lea rcx, [rbp - 0x38]
call fcn.1800724a4
nop
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x30], rax
lea rcx, [rbp + 0x40]
call fcn.180003d50
nop
mov rcx, qword [rbp + 0x30]
movsxd rdx, dword [rcx + 4]
mov qword [rbp + rdx + 0x30], r12
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x20], rax
mov qword [rbp + 0xe0], rbx
mov qword [rbp + 0xe0], rdi
lea rcx, [rbp + 0xe0]
call fcn.1800724a4
movzx eax, byte [rsi + 0x28]
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.180073c80
mov rbx, qword [rsp + 0x328]
add rsp, 0x2e0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret