Function at 0x14009a5d0
Capabilities:
Check if file exists

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x138], rbx
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rbp], rax
mov rdi, r8
mov rbx, rcx
mov rax, qword [rcx + 0xca8]
cmp byte [rax + 0xae0], 0
je 0x14009a848
mov rcx, qword [rcx + 0xcd0]
add rcx, 0x5a8
mov rax, qword [rcx]
call qword [rax + Ordinal_26]
test eax, eax
jle 0x14009aaf6
movsx eax, di
mov dword [rsp + 0x40], eax
shr rdi, 0x10
movsx eax, di
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov rcx, qword [rbx + 0xcd0]
test rcx, rcx
jne 0x14009a664
mov rcx, qword [rbx + 0x1b8]
mov rax, qword [rcx]
mov r9d, reloc.WS2_32.dll_setsockopt
lea r8, [rsp + 0x30]
lea rdx, [0x1400c6210]
call qword [rax + 0x268]
mov rdi, rax
test rax, rax
je 0x14009aaf6
mov qword [rsp + 0x60], 7
xor esi, esi
mov qword [rsp + 0x58], rsi
mov word [rsp + 0x48], si
xor edx, edx
mov r8d, 0x88
lea rcx, [rsp + 0x70]
call fcn.14027b2c0
mov rax, qword [rdi]
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x70]
lea r8, [0x140336510]
or rcx, 0xffffffffffffffff
movzx eax, word [rdx + rcx*2 + 2]
cmp ax, word [r8 + rcx*2 + 2]
jne 0x14009a70c
add rcx, 2
cmp rcx, 0x15
je 0x14009a6f5
movzx eax, word [rdx + rcx*2]
cmp ax, word [r8 + rcx*2]
jne 0x14009a70c
jmp 0x14009a6d1
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x1f0]
test rax, rax
je 0x14009a772
lea rdx, [rax + 0x34]
jmp 0x14009a757
mov rdx, qword [rsp + 0x70]
lea r8, [0x1403364e8]
mov rcx, rsi
nop dword [rax + rax]
movzx eax, word [rdx + rcx*2]
cmp ax, word [r8 + rcx*2]
jne 0x14009a772
movzx eax, word [rdx + rcx*2 + 2]
cmp ax, word [r8 + rcx*2 + 2]
jne 0x14009a772
add rcx, 2
cmp rcx, 0x14
jne 0x14009a720
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x1f0]
test rax, rax
je 0x14009a772
lea rdx, [rax + 0x2c]
lea rax, [rsp + 0x48]
cmp rax, rdx
je 0x14009a772
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x48]
call fcn.14004e350
cmp qword [rsp + 0x58], 0
je 0x14009a80d
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rdx, qword [rsp + 0x48]
mov rcx, qword [rbx + 0xcd8]
mov rax, qword [rcx]
call qword [rax + 0x58]
mov dword [rsp + 0x20], esi
lea r9, vtable.type_info.0
lea r8, vtable.type_info.0
xor edx, edx
mov rcx, rdi
call fcn.1402ab904
test rax, rax
jne 0x14009a7c6
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x48]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x48]
mov dword [rsp + 0x20], esi
lea r9, vtable.type_info.0
lea r8, vtable.type_info.0
xor edx, edx
mov rcx, rax
call fcn.1402ab904
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rdx, qword [rsp + 0x48]
mov r9, rax
lea r8, [rsp + 0x40]
mov rcx, rbx
call fcn.140090db0
nop
lea rax, [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
cmp rcx, rax
je 0x14009a822
call fcn.1402804a8
nop
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x14009aaf6
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.14004e2e0
jmp 0x14009aaf6
mov rax, qword [rcx + 0xcb0]
cmp byte [rax + 0xae0], 0
je 0x14009a941
mov rcx, qword [rcx + 0xe20]
add rcx, 0x5a8
mov rax, qword [rcx]
call qword [rax + Ordinal_26]
test eax, eax
jle 0x14009aaf6
movsx eax, di
mov dword [rsp + 0x40], eax
shr rdi, 0x10
movsx eax, di
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov rcx, qword [rbx + 0xe20]
test rcx, rcx
jne 0x14009a8a7
mov rcx, qword [rbx + 0x1b8]
mov rax, qword [rcx]
mov r9d, reloc.WS2_32.dll_setsockopt
lea r8, [rsp + 0x30]
lea rdx, [0x1400c6210]
call qword [rax + 0x268]
test rax, rax
je 0x14009aaf6
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x48]
mov rdi, rax
test rax, rax
je 0x14009aaf6
xor edx, edx
mov r8d, 0x88
lea rcx, [rsp + 0x70]
call fcn.14027b2c0
mov r8, qword [rdi]
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [r8 + 0x190]
nop
mov rcx, qword [rsp + 0x70]
call fcn.14004bc80
mov rsi, rax
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14009a93c
mov qword [rsp + 0x20], rdi
mov r9, qword [rbx + 0xe20]
lea r8, [rsp + 0x40]
mov rdx, rsi
mov rcx, rbx
call fcn.140090f20
nop
jmp 0x14009aa45
mov rax, qword [rcx + 0xcb8]
cmp byte [rax + 0xae0], 0
je 0x14009aa62
mov rcx, qword [rcx + 0xe40]
add rcx, 0x5a8
mov rax, qword [rcx]
call qword [rax + Ordinal_26]
test eax, eax
jle 0x14009aaf6
movsx eax, di
mov dword [rsp + 0x40], eax
shr rdi, 0x10
movsx eax, di
mov dword [rsp + 0x44], eax
lea rcx, [rbx + 0x58]
mov r8, qword [rsp + 0x40]
mov rdx, qword [rbx + 0xe40]
call fcn.1400c6130
test rax, rax
je 0x14009aaf6
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x48]
mov rdi, rax
test rax, rax
je 0x14009aaf6
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + gethostname]
mov r10, qword [rdi]
xor r9d, r9d
lea r8, [0x1403365d0]
lea rdx, [0x1400c6350]
mov rcx, rdi
call qword [r10 + 0x268]
mov rdi, rax
test rax, rax
je 0x14009aaf6
xor edx, edx
mov r8d, 0x88
lea rcx, [rsp + 0x70]
call fcn.14027b2c0
mov r8, qword [rdi]
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [r8 + 0x190]
nop
mov rcx, qword [rsp + 0x70]
call fcn.14004bc80
mov rsi, rax
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14009aa45
mov qword [rsp + 0x20], rdi
mov r9, qword [rbx + 0xe40]
lea r8, [rsp + 0x40]
mov rdx, rsi
mov rcx, rbx
call fcn.140090f20
nop
lea rax, [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
cmp rcx, rax
je 0x14009aaf6
call fcn.1402804a8
jmp 0x14009aaf6
mov rax, qword [rcx + 0xcc0]
cmp byte [rax + 0xae0], 0
je 0x14009aaf6
mov rax, qword [rcx + 0xe80]
cmp byte [rax + 0xae0], 0
je 0x14009aa8f
mov rdx, qword [rcx + 0xe58]
jmp 0x14009aaf1
mov rax, qword [rcx + 0xe88]
cmp byte [rax + 0xae0], 0
je 0x14009aaa8
mov rdx, qword [rcx + 0xe60]
jmp 0x14009aaf1
mov rax, qword [rcx + 0xe90]
cmp byte [rax + 0xae0], 0
je 0x14009aac1
mov rdx, qword [rcx + 0xe68]
jmp 0x14009aaf1
mov rax, qword [rcx + 0xe98]
cmp byte [rax + 0xae0], 0
je 0x14009aada
mov rdx, qword [rcx + 0xe70]
jmp 0x14009aaf1
mov rax, qword [rcx + 0xea0]
cmp byte [rax + 0xae0], 0
je 0x14009aaf6
mov rdx, qword [rcx + 0xe78]
call fcn.14009d540
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.14012a2b0
mov rbx, qword [rsp + 0x138]
add rsp, 0x110
pop rdi
pop rsi
pop rbp
ret