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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov qword [rbp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x348], rbx
mov rax, qword [0x1801c2938]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov r12, r8
mov rbx, rdx
mov rsi, rcx
xor r13d, r13d
mov dword [rsp + 0x28], r13d
cmp qword [rdx + 0x10], r13
jne 0x18002223a
xor al, al
jmp 0x180022785
call fcn.180026fe0
mov rdx, rbx
lea rcx, [rbp + 0x190]
call fcn.1800347f0
nop
cmp qword [rax + 0x10], 0
jne 0x18002225a
xor al, al
jmp 0x180022273
cmp qword [rax + 0x18], 8
jb 0x180022264
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 + 0x1a8], 8
jb 0x18002228f
mov rcx, qword [rbp + 0x190]
call fcn.1800be828
mov qword [rbp + 0x1a8], 7
mov qword [rbp + 0x1a0], r13
mov word [rbp + 0x190], r13w
lea rcx, [rbp + 0x190]
test dil, dil
je 0x180022305
mov byte [0x1801d98a3], 1
mov rdx, rbx
call fcn.1800347f0
nop
mov rcx, rax
call fcn.18002c5b0
mov byte [rsi + 0x28], al
cmp qword [rbp + 0x1a8], 8
jb 0x1800222e6
mov rcx, qword [rbp + 0x190]
call fcn.1800be828
mov qword [rbp + 0x1a8], 7
mov qword [rbp + 0x1a0], r13
mov word [rbp + 0x190], r13w
jmp 0x180022781
mov qword [rbp + 0x1a8], 7
mov qword [rbp + 0x1a0], r13
mov word [rbp + 0x190], r13w
xor r8d, r8d
lea rdx, [0x1801483a0]
call fcn.18001c940
nop
lea r8, [rbp + 0x190]
lea rdx, [rbp + 0x168]
lea rcx, [rbp + 0x150]
call fcn.18002f130
nop
cmp qword [rbp + 0x1a8], 8
jb 0x180022360
mov rcx, qword [rbp + 0x190]
call fcn.1800be828
mov qword [rbp + 0x1a8], 7
mov qword [rbp + 0x1a0], r13
mov word [rbp + 0x190], r13w
mov rcx, r12
call fcn.1800144b0
mov r9, rax
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x150]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rdi, rax
test rax, rax
je 0x180022405
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x180022405
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 0x1800223da
lea rcx, str.FXConfigImpl::read_Parse_WaitForSingleObject_mutex_OK.
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x180022405
cmp eax, 0x102
jne 0x180022405
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 0x180022781
lea rcx, [rbp + 0x40]
call fcn.180025370
nop
cmp qword [rbx + 0x18], 0x10
jb 0x18002241b
mov rdx, qword [rbx]
jmp 0x18002241e
mov rdx, rbx
mov r8d, 1
lea rcx, [rbp + 0x50]
call fcn.1800263a0
test rax, rax
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rax + 4]
lea rcx, [rbp + rcx + 0x40]
jne 0x180022451
mov edx, dword [rcx + 0x10]
or edx, 2
cmp qword [rcx + 0x48], 0
jne 0x180022460
or edx, 4
jmp 0x180022460
mov edx, r13d
mov eax, 4
cmp qword [rcx + 0x48], rdx
cmove edx, eax
xor r8d, r8d
call fcn.1800058d0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbp + 0xe8], 0
jne 0x180022492
lea rcx, [rbp + 0x40]
call fcn.180023ec0
jmp 0x180022781
lea rax, [0x18014a728]
mov qword [rsp + 0x30], rax
lea rax, [0x18014a730]
mov qword [rsp + 0x40], rax
lea r12, vtable.std::ios_base.0
mov qword [rbp - 0x38], r12
lea r14, vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x38], r14
mov dword [rsp + 0x28], 1
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea r15, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x30], r15
mov qword [rsp + 0x38], r13
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rdi, [rsp + rcx + 0x30]
mov rcx, rdi
call fcn.180005a40
lea rax, [rsp + 0x48]
mov qword [rdi + 0x48], rax
mov qword [rdi + 0x50], r13
mov dl, 0x20
mov rcx, rdi
call fcn.18001f310
mov byte [rdi + 0x58], al
cmp qword [rdi + 0x48], 0
jne 0x18002252b
mov edx, dword [rdi + 0x10]
or edx, 4
xor r8d, r8d
mov rcx, rdi
call fcn.1800058d0
nop
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], 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 rax, vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x30], rdi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x48]
call fcn.18001c730
nop
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + 0x48], rax
mov qword [rbp - 0x48], r13
mov dword [rbp - 0x40], r13d
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x40]
call fcn.180023ff0
lea rcx, [rbp + 0x50]
call fcn.180019ea0
test rax, rax
jne 0x1800225de
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rax + 4]
lea rcx, [rbp + rcx + 0x40]
mov edx, dword [rcx + 0x10]
or edx, 2
cmp qword [rcx + 0x48], 0
jne 0x1800225d6
or edx, 4
xor r8d, r8d
call fcn.1800058d0
lea rdx, [rbp + 0x1b8]
lea rcx, [rsp + 0x30]
call fcn.180016110
nop
lea rdx, [rbp + 0x1b8]
mov rcx, rbx
call fcn.18002b4b0
cmp qword [rbp + 0x1c8], 0
jne 0x18002266e
mov byte [rsi + 0x28], 1
cmp qword [rbp + 0x1d0], 0x10
jb 0x180022623
mov rcx, qword [rbp + 0x1b8]
call fcn.1800be828
mov qword [rbp + 0x1d0], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rbp + 0x1c8], r13
mov byte [rbp + 0x1b8], 0
lea rcx, [rbp - 0x38]
call fcn.180016090
lea r11, [rbp - 0x38]
mov qword [rsp + 0x20], r11
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x38], r12
lea rcx, [rbp - 0x38]
call fcn.1800bc93c
nop
lea rcx, [rbp + 0x40]
call fcn.180023ec0
jmp 0x180022781
lea rdx, [rbp + 0x1b8]
mov rcx, rsi
call fcn.180027140
mov byte [rsi + 0x28], al
cmp qword [rbp + 0x1d0], 0x10
jb 0x180022696
mov rcx, qword [rbp + 0x1b8]
call fcn.1800be828
mov qword [rbp + 0x1d0], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rbp + 0x1c8], r13
mov byte [rbp + 0x1b8], 0
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x30], rdi
lea rcx, [rsp + 0x48]
call fcn.180014700
nop
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]
mov qword [rsp + rcx + 0x30], r15
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x38], r12
lea rcx, [rbp - 0x38]
call fcn.1800bc93c
nop
lea rax, [rbp + 0xf0]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x40], rax
lea rcx, [rbp + 0x50]
call fcn.180016180
nop
mov rcx, qword [rbp + 0x40]
movsxd rdx, dword [rcx + 4]
mov qword [rbp + rdx + 0x40], r15
lea rax, [rbp + 0xf0]
mov qword [rsp + 0x20], rax
mov qword [rbp + 0xf0], r14
mov qword [rbp + 0xf0], r12
lea rcx, [rbp + 0xf0]
call fcn.1800bc93c
movzx eax, byte [rsi + 0x28]
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.1800bdf20
mov rbx, qword [rsp + 0x348]
add rsp, 0x2f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret