Function at 0x40d6e0
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 0x652c28
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.0040f9a0
mov ecx, eax
call fcn.004c0e5b
mov edi, eax
add esi, 0x50
cmp esi, edi
je 0x40d766
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 0x40d7a0
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d796
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d94f
push edx
push ecx
call fcn.00424265
add esp, 8
push 5
push str.Data_
mov ecx, esi
call fcn.0040ffa0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40d7b8
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40d806
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], eax
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40d7d3
mov eax, dword [esi]
lea ecx, [ebp - 0x58]
push ecx
push eax
call fcn.004c16bd
add esp, 8
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x40d7ff
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 0x40d825
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x40d81a
mov ecx, dword [esi]
push dword [esi + 0x10]
push ecx
mov ecx, eax
call fcn.00403400
lea ecx, [edi + 0x80]
cmp ecx, esi
je 0x40d842
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40d839
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.0040ffa0
push 0
lea eax, [ebp - 0x2c]
push 0x1a
push eax
call fcn.004c181f
add esp, 0xc
push 0x15
push str.CloudPDFReaderData_
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 2
call fcn.0040ffa0
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 0x40d8cc
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.004c16bd
add esp, 8
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x5c]
test ecx, ecx
je 0x40d8c8
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 0x40d8ea
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 0x40d92a
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d920
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d954
push edx
push ecx
call fcn.00424265
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.00423c15
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.004eb7f6
call fcn.004eb7f6
int3