Function at 0x180011a00
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x160
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x50], rdx
xor esi, esi
mov dword [rsp + 0x30], esi
mov qword [rdx + 0x20], reloc.WS2_32.dll_ntohs
mov qword [rdx + 0x18], rsi
lea rbp, [rdx + 8]
mov byte [rbp], sil
mov dword [rsp + 0x30], 1
cmp qword [rcx + 0x1b0], 0x10
jb 0x180011a5f
mov rcx, qword [rcx + 0x198]
jmp 0x180011a66
add rcx, 0x198
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x180011c92
cmp qword [rbx + 0x1b0], 0x10
jb 0x180011a87
mov rdx, qword [rbx + 0x198]
jmp 0x180011a8e
lea rdx, [rbx + 0x198]
mov r9d, 1
lea r8d, [r9 + 0x1f]
lea rcx, [rsp + 0x60]
call fcn.18001b600
nop
mov rcx, qword [rsp + 0x60]
movsxd rax, dword [rcx + 4]
mov r12d, 4
test byte [rsp + rax + 0x70], 6
jne 0x180011b20
movsxd rax, dword [rcx + 4]
mov rcx, qword [rsp + rax + 0xa8]
mov rax, qword [rcx]
mov dword [rsp + 0x20], 1
lea r9d, [r12 - 2]
xor r8d, r8d
lea rdx, [rsp + 0x38]
call qword [rax + 0x48]
movsxd r11, dword [rsp + 0x40]
add r11, qword [rsp + 0x38]
cmp r11, qword [0x1800d6c58]
jne 0x180011b1b
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rcx, [rsp + rcx + 0x60]
mov edx, dword [rcx + 0x10]
or edx, 2
cmp qword [rcx + 0x48], 0
jne 0x180011b11
or edx, r12d
xor r8d, r8d
call fcn.18000e490
jmp 0x180011b3b
mov rcx, qword [rsp + 0x60]
movsxd rax, dword [rcx + 4]
lea rcx, [rsp + rax + 0x60]
mov edx, esi
cmp qword [rcx + 0x48], rdx
cmove edx, r12d
xor r8d, r8d
call fcn.18000e490
mov rcx, qword [rsp + 0x60]
movsxd rax, dword [rcx + 4]
test byte [rsp + rax + 0x70], 6
jne 0x180011b80
mov rcx, qword [rsp + rax + 0xa8]
mov rax, qword [rcx]
mov dword [rsp + 0x20], 1
mov r9d, 1
xor r8d, r8d
lea rdx, [rsp + 0x38]
call qword [rax + 0x48]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
jmp 0x180011b8a
mov rdx, qword [0x1800d6c58]
mov rax, rsi
lea ebx, [rdx + rax]
movsxd rax, dword [rcx + 4]
test byte [rsp + rax + 0x70], 6
jne 0x180011bfd
movsxd rax, dword [rcx + 4]
mov rcx, qword [rsp + rax + 0xa8]
mov rax, qword [rcx]
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x38]
call qword [rax + 0x48]
movsxd r11, dword [rsp + 0x40]
add r11, qword [rsp + 0x38]
cmp r11, qword [0x1800d6c58]
jne 0x180011bf8
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rcx, [rsp + rcx + 0x60]
mov edx, dword [rcx + 0x10]
or edx, 2
cmp qword [rcx + 0x48], 0
jne 0x180011bee
or edx, r12d
xor r8d, r8d
call fcn.18000e490
jmp 0x180011c19
mov rcx, qword [rsp + 0x60]
movsxd rax, dword [rcx + 4]
lea rcx, [rsp + rax + 0x60]
cmp qword [rcx + 0x48], 0
cmove esi, r12d
xor r8d, r8d
mov edx, esi
call fcn.18000e490
lea eax, [rbx + 1]
movsxd rdx, eax
mov rax, qword [rdi + 0x18]
cmp rdx, rax
ja 0x180011c36
or r8, 0xffffffffffffffff
mov rcx, rdi
call fcn.180003900
jmp 0x180011c44
sub rdx, rax
xor r8d, r8d
mov rcx, rdi
call fcn.18000a920
cmp qword [rdi + 0x20], 0x10
jb 0x180011c4f
mov rbp, qword [rbp]
movsxd r9, ebx
or r8, 0xffffffffffffffff
mov rdx, rbp
lea rcx, [rsp + 0x60]
call fcn.1800143a0
nop
lea rcx, [rsp + 0x100]
call fcn.180012fb0
lea r11, vtable.std::ios_base.0
mov qword [rsp + 0x100], r11
lea rcx, [rsp + 0x100]
call fcn.18003096c
mov rax, rdi
jmp 0x180011c95
mov rax, rdi
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret