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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c899f
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x4fad60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x64]
call fcn.00450270
lea eax, [ebp - 0x2c]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0044f1d0
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x9c], esp
push ebx
lea eax, [ebp - 0x64]
mov edi, 7
xor edx, edx
push eax
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
or eax, 0xffffffff
mov word [ecx], dx
call fcn.00404570
lea esi, [ebp - 0x94]
call fcn.00401110
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00401a20
cmp eax, ebx
jne 0x40d550
mov ecx, esi
push ecx
mov byte [ebp - 4], 1
call fcn.004011f0
mov esi, 8
cmp dword [ebp - 0x18], esi
jb 0x40d52c
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00490a16
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
cmp dword [ebp - 0x50], esi
jb 0x40d549
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.00490a16
add esp, 4
xor eax, eax
jmp 0x40d7e6
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x9c], esp
xor edx, edx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
push edi
mov eax, str.LogSave
mov word [esi], dx
call fcn.00403e70
sub esp, 0x1c
mov esi, esp
mov byte [ebp - 4], 3
xor eax, eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov dword [ebp - 0xa4], esp
mov word [esi], ax
push 0xd
mov eax, str.PiLogSave.dll
call fcn.00403e70
sub esp, 0x1c
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp - 0xa0], esp
push ebx
lea eax, [ebp - 0x2c]
xor edx, edx
push eax
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
or eax, 0xffffffff
mov word [ecx], dx
call fcn.00404570
lea ecx, [ebp - 0x94]
push ecx
mov byte [ebp - 4], 2
call fcn.0040d0e0
lea edx, [ebp - 0x2c]
push edx
mov ecx, edx
call fcn.0044dcc0
add esp, 0x5c
push str.PiLogUpload.exe
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
push ecx
call fcn.00407fa0
mov esi, 8
add esp, 0xc
cmp dword [eax + 0x14], esi
jb 0x40d5fd
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40d60d
xor eax, eax
jmp 0x40d615
shr eax, 4
not eax
and eax, 1
cmp eax, ebx
sete byte [ebp - 0x95]
cmp dword [ebp - 0x34], esi
jb 0x40d62f
mov edx, dword [ebp - 0x48]
push edx
call fcn.00490a16
add esp, 4
cmp byte [ebp - 0x95], bl
je 0x40d6c2
sub esp, 0x1c
mov esi, esp
xor eax, eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov dword [ebp - 0xa0], esp
mov word [esi], ax
push 6
mov eax, str.Upload
call fcn.00403e70
sub esp, 0x1c
mov byte [ebp - 4], 5
mov esi, esp
mov dword [ebp - 0xa4], esp
xor ecx, ecx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
push 0xf
mov eax, str.PiLogUpload.exe
mov word [esi], cx
call fcn.00403e70
sub esp, 0x1c
mov byte [ebp - 4], 6
mov ecx, esp
mov dword [ebp - 0x9c], esp
push ebx
lea eax, [ebp - 0x2c]
xor edx, edx
push eax
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
or eax, 0xffffffff
mov word [ecx], dx
call fcn.00404570
lea ecx, [ebp - 0x94]
push ecx
mov byte [ebp - 4], 2
call fcn.0040d0e0
add esp, 0x58
mov esi, 8
push str.WebServiceInterface.dll
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.00407fa0
add esp, 0xc
cmp dword [eax + 0x14], esi
jb 0x40d6de
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40d6ee
xor eax, eax
jmp 0x40d6f6
shr eax, 4
not eax
and eax, 1
cmp eax, ebx
sete byte [ebp - 0x95]
cmp dword [ebp - 0x34], esi
jb 0x40d710
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00490a16
add esp, 4
cmp byte [ebp - 0x95], bl
je 0x40d7a3
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0xa0], esp
xor edx, edx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
push 0xb
mov eax, str.WSInterface
mov word [esi], dx
call fcn.00403e70
sub esp, 0x1c
mov esi, esp
mov byte [ebp - 4], 7
xor eax, eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov dword [ebp - 0xa4], esp
mov word [esi], ax
push 0x17
mov eax, str.WebServiceInterface.dll
call fcn.00403e70
sub esp, 0x1c
mov byte [ebp - 4], 8
mov ecx, esp
mov dword [ebp - 0x9c], esp
push ebx
lea eax, [ebp - 0x2c]
xor edx, edx
push eax
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
or eax, 0xffffffff
mov word [ecx], dx
call fcn.00404570
lea ecx, [ebp - 0x94]
push ecx
mov byte [ebp - 4], 2
call fcn.0040d0e0
add esp, 0x58
mov esi, 8
lea edx, [ebp - 0x94]
push edx
mov byte [ebp - 4], 1
call fcn.004011f0
cmp dword [ebp - 0x18], esi
jb 0x40d7c4
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00490a16
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x50], esi
jb 0x40d7e1
mov edx, dword [ebp - 0x64]
push edx
call fcn.00490a16
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00490a21
mov esp, ebp
pop ebp
ret