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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433058
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x448620]
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.0040ca7a
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x4063eb
push 0x80004005
call fcn.00403290
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
call fcn.0040ca7a
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x406419
push 0x80004005
call fcn.00403290
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.004074e0
push 0x43f7a4
lea ecx, [ebp - 0x24]
call fcn.00405250
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 0x4064aa
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40649b
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x40649b
push edx
call fcn.00404c50
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, ebx
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x406493
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 0x4064a7
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x18]
call fcn.004032e0
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 0x4064ca
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 1
push 1
push 1
push edi
sub esp, 8
mov ecx, ebx
call fcn.00403670
add esp, 0x1c
mov edi, eax
call fcn.0040ca7a
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x406504
push 0x80004005
call fcn.00403290
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.004074e0
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 0x406547
push 0
lea ecx, [ebp - 0x14]
call fcn.004031e0
mov esi, dword [ebp - 0x14]
mov edx, str._25_
mov ecx, esi
call fcn.00407970
test edi, edi
jne 0x40668f
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.004074e0
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 0x4065a3
push 0
lea ecx, [ebp - 0x14]
call fcn.004031e0
mov esi, dword [ebp - 0x14]
mov edx, str._25_
mov ecx, esi
call fcn.00407970
cmp byte [ebp - 0xd], 0
je 0x406692
call fcn.0040ca7a
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4065d5
push 0x80004005
call fcn.00403290
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.004074e0
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 0x40661e
push 0
lea ecx, [ebp - 0x1c]
call fcn.004031e0
mov edi, dword [ebp - 0x1c]
push 0
push 0
push edi
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x18]
call fcn.00408800
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.004074e0
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 0x406665
push 0
lea ecx, [ebp - 0x14]
call fcn.004031e0
mov esi, dword [ebp - 0x14]
mov edx, str._25_
mov ecx, esi
call fcn.00407970
add edi, 0xfffffff0
mov byte [ebp - 4], 3
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40668f
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 0x4066b2
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 0x4066cf
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 0x4066ed
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