Function at 0x140005410
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x98]
sub rsp, 0x190
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [0x140065ec0]
xor rax, rsp
mov qword [rbp + 0x80], rax
lea rcx, [rbp]
call fcn.140014fe0
nop
lea rcx, [rbp - 0x28]
call fcn.140014ce0
nop
mov qword [rbp - 0x68], 7
xor edi, edi
mov qword [rbp - 0x70], rdi
mov word [rbp - 0x80], di
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp]
lea rcx, [rbp - 0x80]
call fcn.140003080
lea r11, [rbp - 0x80]
mov qword [rsp + 0x20], r11
mov qword [rbp + 0x48], 7
mov qword [rbp + 0x40], rdi
mov word [rbp + 0x30], di
lea rcx, [rbp + 0x58]
call fcn.140001700
nop
mov dword [rbp + 0x78], edi
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x30]
call fcn.140003080
nop
cmp qword [rbp - 0x68], 8
jb 0x1400054c8
mov rcx, qword [rbp - 0x80]
call fcn.14002747c
mov qword [rbp - 0x68], 7
mov qword [rbp - 0x70], rdi
mov word [rbp - 0x80], di
lea rcx, [rbp + 0x30]
call fcn.140001120
test eax, eax
jne 0x140005526
lea rcx, [rbp + 0x30]
call fcn.140001040
nop
cmp qword [rbp - 0x10], 8
jb 0x1400054ff
mov rcx, qword [rbp - 0x28]
call fcn.14002747c
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], rdi
mov word [rbp - 0x28], di
cmp qword [rbp + 0x18], 8
jb 0x14000551f
mov rcx, qword [rbp]
call fcn.14002747c
xor eax, eax
jmp 0x14000580f
lea rax, [rsp + 0x28]
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], rdi
mov word [rsp + 0x28], di
mov r8d, 7
lea rdx, str.LogSave
lea rcx, [rsp + 0x28]
call fcn.140002b50
nop
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rdi
mov word [rsp + 0x50], di
mov r8d, 0xd
lea rdx, str.PiLogSave.dll
lea rcx, [rsp + 0x50]
call fcn.140002b50
nop
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], rdi
mov word [rbp - 0x50], di
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x50]
call fcn.140003080
nop
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x50]
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x30]
call fcn.140005040
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x28]
call fcn.140014580
lea r8, str.PiLogUpload.exe
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x50]
call fcn.140003c10
cmp qword [rax + 0x18], 8
jb 0x1400055f7
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140005609
mov eax, edi
jmp 0x140005611
shr eax, 4
not eax
and eax, 1
test eax, eax
sete bl
cmp qword [rbp - 0x38], 8
jb 0x140005626
mov rcx, qword [rbp - 0x50]
call fcn.14002747c
test bl, bl
je 0x1400056d4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rdi
mov word [rsp + 0x50], di
mov r8d, 6
lea rdx, str.Upload
lea rcx, [rsp + 0x50]
call fcn.140002b50
nop
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], rdi
mov word [rsp + 0x28], di
mov r8d, 0xf
lea rdx, str.PiLogUpload.exe
lea rcx, [rsp + 0x28]
call fcn.140002b50
nop
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], rdi
mov word [rbp - 0x50], di
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x50]
call fcn.140003080
nop
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x28]
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x30]
call fcn.140005040
lea r8, str.WebServiceInterface.dll
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x50]
call fcn.140003c10
cmp qword [rax + 0x18], 8
jb 0x1400056f2
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140005704
mov eax, edi
jmp 0x14000570c
shr eax, 4
not eax
and eax, 1
test eax, eax
sete bl
cmp qword [rbp - 0x38], 8
jb 0x140005721
mov rcx, qword [rbp - 0x50]
call fcn.14002747c
test bl, bl
je 0x1400057d0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rdi
mov word [rsp + 0x50], di
mov r8d, 0xb
lea rdx, str.WSInterface
lea rcx, [rsp + 0x50]
call fcn.140002b50
nop
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], rdi
mov word [rsp + 0x28], di
mov r8d, 0x17
lea rdx, str.WebServiceInterface.dll
lea rcx, [rsp + 0x28]
call fcn.140002b50
nop
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], rdi
mov word [rbp - 0x50], di
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x50]
call fcn.140003080
nop
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x28]
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x30]
call fcn.140005040
nop
lea rcx, [rbp + 0x30]
call fcn.140001040
nop
cmp qword [rbp - 0x10], 8
jb 0x1400057ea
mov rcx, qword [rbp - 0x28]
call fcn.14002747c
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], rdi
mov word [rbp - 0x28], di
cmp qword [rbp + 0x18], 8
jb 0x14000580a
mov rcx, qword [rbp]
call fcn.14002747c
mov eax, 1
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.1400274a0
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret