Function at 0x180010820
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 0x18001087f
mov rcx, qword [rcx + 0x198]
jmp 0x180010886
add rcx, 0x198
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x180010ab2
cmp qword [rbx + 0x1b0], 0x10
jb 0x1800108a7
mov rdx, qword [rbx + 0x198]
jmp 0x1800108ae
lea rdx, [rbx + 0x198]
mov r9d, 1
lea r8d, [r9 + 0x1f]
lea rcx, [rsp + 0x60]
call fcn.18001a9b0
nop
mov rcx, qword [rsp + 0x60]
movsxd rax, dword [rcx + 4]
mov r12d, 4
test byte [rsp + rax + 0x70], 6
jne 0x180010940
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 [0x1800d4c58]
jne 0x18001093b
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 0x180010931
or edx, r12d
xor r8d, r8d
call fcn.18000d2f0
jmp 0x18001095b
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.18000d2f0
mov rcx, qword [rsp + 0x60]
movsxd rax, dword [rcx + 4]
test byte [rsp + rax + 0x70], 6
jne 0x1800109a0
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 0x1800109aa
mov rdx, qword [0x1800d4c58]
mov rax, rsi
lea ebx, [rdx + rax]
movsxd rax, dword [rcx + 4]
test byte [rsp + rax + 0x70], 6
jne 0x180010a1d
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 [0x1800d4c58]
jne 0x180010a18
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 0x180010a0e
or edx, r12d
xor r8d, r8d
call fcn.18000d2f0
jmp 0x180010a39
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.18000d2f0
lea eax, [rbx + 1]
movsxd rdx, eax
mov rax, qword [rdi + 0x18]
cmp rdx, rax
ja 0x180010a56
or r8, 0xffffffffffffffff
mov rcx, rdi
call fcn.180003900
jmp 0x180010a64
sub rdx, rax
xor r8d, r8d
mov rcx, rdi
call fcn.180009e40
cmp qword [rdi + 0x20], 0x10
jb 0x180010a6f
mov rbp, qword [rbp]
movsxd r9, ebx
or r8, 0xffffffffffffffff
mov rdx, rbp
lea rcx, [rsp + 0x60]
call fcn.180012fd0
nop
lea rcx, [rsp + 0x100]
call fcn.180011be0
lea r11, vtable.std::ios_base.0
mov qword [rsp + 0x100], r11
lea rcx, [rsp + 0x100]
call fcn.18002f61c
mov rax, rdi
jmp 0x180010ab5
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