Function at 0x140096460
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 [0x1403a0088]
xor rax, rsp
mov qword [rbp], rax
mov rdi, r8
mov rbx, rcx
mov rax, qword [rcx + 0xca8]
cmp byte [rax + 0xae0], 0
je 0x1400966d8
mov rcx, qword [rcx + 0xcd0]
add rcx, 0x5a8
mov rax, qword [rcx]
call qword [rax + Ordinal_26]
test eax, eax
jle 0x1400966d8
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 0x1400964f4
mov rcx, qword [rbx + 0x1b8]
mov rax, qword [rcx]
mov r9d, reloc.WS2_32.dll_setsockopt
lea r8, [rsp + 0x30]
lea rdx, [0x1400c1a90]
call qword [rax + 0x268]
mov rdi, rax
test rax, rax
je 0x1400969af
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.1402767a0
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, [0x14032fb98]
or rcx, 0xffffffffffffffff
movzx eax, word [rdx + rcx*2 + 2]
cmp ax, word [r8 + rcx*2 + 2]
jne 0x14009659c
add rcx, 2
cmp rcx, 0x15
je 0x140096585
movzx eax, word [rdx + rcx*2]
cmp ax, word [r8 + rcx*2]
jne 0x14009659c
jmp 0x140096561
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x1f0]
test rax, rax
je 0x140096602
lea rdx, [rax + 0x34]
jmp 0x1400965e7
mov rdx, qword [rsp + 0x70]
lea r8, [0x14032fb70]
mov rcx, rsi
nop dword [rax + rax]
movzx eax, word [rdx + rcx*2]
cmp ax, word [r8 + rcx*2]
jne 0x140096602
movzx eax, word [rdx + rcx*2 + 2]
cmp ax, word [r8 + rcx*2 + 2]
jne 0x140096602
add rcx, 2
cmp rcx, 0x14
jne 0x1400965b0
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x1f0]
test rax, rax
je 0x140096602
lea rdx, [rax + 0x2c]
lea rax, [rsp + 0x48]
cmp rax, rdx
je 0x140096602
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x48]
call fcn.14004e170
cmp qword [rsp + 0x58], 0
je 0x14009669d
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.1402a6de4
test rax, rax
jne 0x140096656
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.1402a6de4
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.14008c170
nop
lea rax, [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
cmp rcx, rax
je 0x1400966b2
call fcn.14027b988
nop
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x1400969af
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.14004e100
jmp 0x1400969af
mov rax, qword [rbx + 0xcb0]
cmp byte [rax + 0xae0], 0
je 0x1400967d1
mov rcx, qword [rbx + 0xe10]
add rcx, 0x5a8
mov rax, qword [rcx]
call qword [rax + Ordinal_26]
test eax, eax
jle 0x1400967d1
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 + 0xe10]
test rcx, rcx
jne 0x140096737
mov rcx, qword [rbx + 0x1b8]
mov rax, qword [rcx]
mov r9d, reloc.WS2_32.dll_setsockopt
lea r8, [rsp + 0x30]
lea rdx, [0x1400c1a90]
call qword [rax + 0x268]
test rax, rax
je 0x1400969af
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x48]
mov rdi, rax
test rax, rax
je 0x1400969af
xor edx, edx
mov r8d, 0x88
lea rcx, [rsp + 0x70]
call fcn.1402767a0
mov r8, qword [rdi]
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [r8 + 0x190]
nop
mov rcx, qword [rsp + 0x70]
call fcn.14004baa0
mov rsi, rax
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400967cc
mov qword [rsp + 0x20], rdi
mov r9, qword [rbx + 0xe10]
lea r8, [rsp + 0x40]
mov rdx, rsi
mov rcx, rbx
call fcn.14008c2e0
nop
jmp 0x1400968f8
mov rax, qword [rbx + 0xcb8]
cmp byte [rax + 0xae0], 0
je 0x140096915
mov rcx, qword [rbx + 0xe30]
add rcx, 0x5a8
mov rax, qword [rcx]
call qword [rax + Ordinal_26]
test eax, eax
jle 0x140096915
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 + 0xe30]
test rcx, rcx
jne 0x140096830
mov rcx, qword [rbx + 0x1b8]
mov rax, qword [rcx]
mov r9d, reloc.WS2_32.dll_setsockopt
lea r8, [rsp + 0x30]
lea rdx, [0x1400c1a90]
call qword [rax + 0x268]
test rax, rax
je 0x1400969af
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x48]
mov rdi, rax
test rax, rax
je 0x1400969af
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + gethostname]
mov r10, qword [rdi]
xor r9d, r9d
lea r8, [0x14032fb60]
lea rdx, [0x1400c1bd0]
mov rcx, rdi
call qword [r10 + 0x268]
mov rdi, rax
test rax, rax
je 0x1400969af
xor edx, edx
mov r8d, 0x88
lea rcx, [rsp + 0x70]
call fcn.1402767a0
mov r8, qword [rdi]
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [r8 + 0x190]
nop
mov rcx, qword [rsp + 0x70]
call fcn.14004baa0
mov rsi, rax
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400968f8
mov qword [rsp + 0x20], rdi
mov r9, qword [rbx + 0xe30]
lea r8, [rsp + 0x40]
mov rdx, rsi
mov rcx, rbx
call fcn.14008c2e0
nop
lea rax, [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
cmp rcx, rax
je 0x1400969af
call fcn.14027b988
jmp 0x1400969af
mov rax, qword [rbx + 0xcc0]
cmp byte [rax + 0xae0], 0
je 0x1400969af
mov rax, qword [rbx + 0xe70]
cmp byte [rax + 0xae0], 0
je 0x140096942
mov rdx, qword [rbx + 0xe48]
jmp 0x1400969a4
mov rax, qword [rbx + 0xe78]
cmp byte [rax + 0xae0], 0
je 0x14009695b
mov rdx, qword [rbx + 0xe50]
jmp 0x1400969a4
mov rax, qword [rbx + 0xe80]
cmp byte [rax + 0xae0], 0
je 0x140096974
mov rdx, qword [rbx + 0xe58]
jmp 0x1400969a4
mov rax, qword [rbx + 0xe88]
cmp byte [rax + 0xae0], 0
je 0x14009698d
mov rdx, qword [rbx + 0xe60]
jmp 0x1400969a4
mov rax, qword [rbx + 0xe90]
cmp byte [rax + 0xae0], 0
je 0x1400969af
mov rdx, qword [rbx + 0xe68]
mov r8, rdi
mov rcx, rbx
call fcn.1400993e0
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140125a70
mov rbx, qword [rsp + 0x138]
add rsp, 0x110
pop rdi
pop rsi
pop rbp
ret