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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433aa8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x449620]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x1c], edi
mov ebx, ecx
call fcn.0040cce5
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x40650b
push 0x80004005
call fcn.00403170
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
call fcn.0040cce5
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x406539
push 0x80004005
call fcn.00403170
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
push str.Hook
mov byte [ebp - 4], 1
lea eax, [ebp - 0x20]
push dword [ebx]
push str._s__s.dat
push eax
call fcn.00404ac0
push 0x4405ec
lea ecx, [ebp - 0x24]
call fcn.00405370
add esp, 0x14
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov ecx, dword [eax]
or ebx, 0xffffffff
lea edx, [ecx - 0x10]
cmp edx, esi
je 0x4065ca
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4065bb
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x4065bb
push edx
call fcn.00404d70
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, ebx
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x4065b3
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [ebp - 0x18], eax
jmp 0x4065c7
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x18]
call fcn.004031c0
mov edi, dword [ebp - 0x1c]
mov byte [ebp - 4], 1
mov ecx, ebx
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4065ea
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x20]
lea edx, [ebp - 0x18]
push 0
push ecx
push 1
push 1
push edi
sub esp, 8
mov ecx, ebx
call fcn.00403550
add esp, 0x1c
mov edi, eax
call fcn.0040cce5
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x406623
push 0x80004005
call fcn.00403170
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push edi
push ebx
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
push str.Check_Recovery_Hook_2:__s___d_
push eax
call fcn.00404ac0
mov esi, dword [ebp - 0x14]
mov ecx, 1
add esp, 0x10
sub ecx, dword [esi - 4]
mov eax, dword [esi - 8]
or eax, ecx
jge 0x406666
push 0
lea ecx, [ebp - 0x14]
call fcn.004030c0
mov esi, dword [ebp - 0x14]
push 1
mov edx, str._25_
mov ecx, esi
call fcn.00408070
add esp, 4
test edi, edi
jne 0x4067bd
mov edi, dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
mov byte [ebp - 0xd], al
movzx eax, al
push eax
push edi
lea eax, [ebp - 0x14]
push str.Check_Recovery_Hook_3:__s___d_
push eax
call fcn.00404ac0
mov esi, dword [ebp - 0x14]
mov ecx, 1
add esp, 0x10
sub ecx, dword [esi - 4]
mov eax, dword [esi - 8]
or eax, ecx
jge 0x4066c7
push 0
lea ecx, [ebp - 0x14]
call fcn.004030c0
mov esi, dword [ebp - 0x14]
push 0
mov edx, str._25_
mov ecx, esi
call fcn.00408070
add esp, 4
cmp byte [ebp - 0xd], 0
je 0x4067c0
call fcn.0040cce5
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4066fe
push 0x80004005
call fcn.00403170
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
movzx eax, al
push eax
push edi
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 4
push str._s__d
push eax
call fcn.00404ac0
mov edi, dword [ebp - 0x1c]
mov ecx, 1
add esp, 0x10
sub ecx, dword [edi - 4]
mov eax, dword [edi - 8]
or eax, ecx
jge 0x406747
push 0
lea ecx, [ebp - 0x1c]
call fcn.004030c0
mov edi, dword [ebp - 0x1c]
push 0
push 0
push edi
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x18]
call fcn.00408a70
add esp, 0xc
push dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push str.Check_Recovery_Hook_4:__d__d
push eax
call fcn.00404ac0
mov esi, dword [ebp - 0x14]
mov ecx, 1
add esp, 0x10
sub ecx, dword [esi - 4]
mov eax, dword [esi - 8]
or eax, ecx
jge 0x40678e
push 0
lea ecx, [ebp - 0x14]
call fcn.004030c0
mov esi, dword [ebp - 0x14]
push 0
mov edx, str._25_
mov ecx, esi
call fcn.00408070
add edi, 0xfffffff0
mov byte [ebp - 4], 3
add esp, 4
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4067bd
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x18]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 1
or esi, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4067e0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 0
mov ecx, esi
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4067fd
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x40681b
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret