Function at 0x4491f0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4b65d8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e1370]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x64]
mov ebx, dword [ebp + 0x10]
cmp dword [ebp + 0xc], ebx
jbe 0x449228
call fcn.00490387
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp]
cmp esi, dword [ebp + 0x10]
jbe 0x449238
call fcn.00490387
mov eax, dword [ebp]
push ebx
push edi
push esi
push eax
lea eax, [esp + 0x24]
push eax
mov edi, ebp
call fcn.0044e740
lea ecx, [esp + 0x64]
push str.PuritySoft_recovery.dat
push ecx
call fcn.0047b34a
add esp, 8
xor esi, esi
mov dword [esp + 0x5c], esi
mov edx, dword [esp + 0x64]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x44940f
and dword [esp + 0x34], 0xfffffe00
mov dword [esp + 0x38], esi
mov byte [esp + 0x5c], 2
mov ecx, dword [esp + 0x64]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.0047f921
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x60], 3
call fcn.0047fae9
test eax, eax
je 0x4493f8
mov al, byte [esp + 0x34]
test al, al
je 0x4492c1
cmp al, 7
jne 0x4493f8
push str.recovery
lea ecx, [esp + 0x30]
push ecx
call fcn.00474410
mov ecx, ebp
mov edx, eax
call fcn.004499f0
mov edi, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x10]
jbe 0x4492e6
call fcn.00490387
mov esi, dword [ebp]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov ebx, dword [ebp + 0x10]
cmp dword [ebp + 0xc], ebx
jbe 0x4492fe
call fcn.00490387
mov eax, dword [ebp]
test esi, esi
je 0x449309
cmp esi, eax
je 0x44930e
call fcn.00490387
cmp edi, ebx
je 0x4493b2
test esi, esi
jne 0x44938f
call fcn.00490387
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x44932b
call fcn.00490387
cmp dword [edi], 0
je 0x44939b
test esi, esi
jne 0x449393
call fcn.00490387
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x449345
call fcn.00490387
mov edx, dword [edi]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x44939b
test esi, esi
jne 0x449397
call fcn.00490387
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x44936a
call fcn.00490387
mov ebx, dword [edi]
call fcn.0043e410
test eax, eax
jbe 0x44939b
lea edi, [esp + 0x1c]
lea esi, [esp + 0x14]
call fcn.004499b0
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
jmp 0x4492f1
mov eax, dword [esi]
jmp 0x449321
mov eax, dword [esi]
jmp 0x44933b
mov eax, dword [esi]
jmp 0x449360
push edi
push esi
lea edi, [esp + 0x2c]
mov esi, ebp
call fcn.00449930
mov esi, dword [eax]
mov edi, dword [eax + 4]
jmp 0x4492e9
lea esi, [esp + 0x3c]
call fcn.00448980
lea eax, [esp + 0x2c]
mov byte [esp + 0x5c], 0
call fcn.004739d0
mov dword [esp + 0x5c], 0xffffffff
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4493f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x449439
lea esi, [esp + 0x3c]
call fcn.00448980
lea eax, [esp + 0x2c]
mov byte [esp + 0x5c], 0
call fcn.004739d0
mov dword [esp + 0x5c], 0xffffffff
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x449437
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 4