Function at 0x40d730
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x652ca8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x70
mov eax, dword [0x6ee06c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x48]
push eax
call fcn.0040fc20
mov ecx, eax
call fcn.004c047f
mov edi, eax
add esi, 0x50
cmp esi, edi
je 0x40d7b6
mov ecx, esi
call fcn.00401860
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x40d7f0
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d7e6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d99f
push edx
push ecx
call fcn.004244c5
add esp, 8
push 5
push str.Data_
mov ecx, esi
call fcn.00410220
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40d808
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40d856
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], eax
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40d823
mov eax, dword [esi]
lea ecx, [ebp - 0x58]
push ecx
push eax
call fcn.004c0ce1
add esp, 8
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x40d84f
mov edx, dword [ecx]
lea eax, [ebp - 0x58]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x30]
lea eax, [edi + 0x68]
cmp eax, esi
je 0x40d875
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x40d86a
mov ecx, dword [esi]
push dword [esi + 0x10]
push ecx
mov ecx, eax
call fcn.00403400
lea ecx, [edi + 0x80]
cmp ecx, esi
je 0x40d892
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40d889
mov eax, dword [esi]
push dword [esi + 0x10]
push eax
call fcn.00403400
push 0x10
push str.SoftMainUser.ini
lea ecx, [edi + 0x68]
call fcn.00410220
push 0
lea eax, [ebp - 0x2c]
push 0x1a
push eax
call fcn.004c0e43
add esp, 0xc
push 0x15
push str.CloudPDFReaderData_
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 2
call fcn.00410220
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40d91c
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x80]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push ecx
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.004c0ce1
add esp, 8
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x5c]
test ecx, ecx
je 0x40d918
mov edx, dword [ecx]
lea eax, [ebp - 0x80]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov byte [ebp - 4], 2
lea ecx, [edi + 0x98]
lea eax, [ebp - 0x2c]
cmp ecx, eax
je 0x40d93a
cmp dword [ebp - 0x18], 8
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.00403400
mov edx, dword [ebp - 0x18]
mov dword [edi + 0xb0], 0
cmp edx, 8
jb 0x40d97a
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d970
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d9a4
push edx
push ecx
call fcn.004244c5
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00423e75
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.004eb826
call fcn.004eb826
int3