Function at 0x402f35
Capabilities:
Check if file exists
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x414bac
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov dword [esp + 0x3c], ecx
or dword [esp + 0x58], 0xffffffff
xor ebx, ebx
mov dword [esp + 0x4c], 1
mov dword [esp + 0x48], vtable.CFileStream.0
mov dword [esp + 0x54], vtable.CFile.0
mov dword [esp + 0x5c], 3
mov dword [esp + 0x68], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x38], ebx
call fcn.00402c0d
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x402fbc
push 0x80004005
call fcn.00402f1d
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x30], eax
mov byte [esp + 0x78], 1
call fcn.00402c0d
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
je 0x402fb2
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x34], eax
mov byte [esp + 0x78], 2
call fcn.00402c0d
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
je 0x402fb2
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x78], 3
call fcn.0040359c
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x30]
push esi
push str._sHpUpdate
push eax
call fcn.0040353b
add esp, 0xc
mov byte [esp + 0x78], 2
lea ecx, [esi - 0x10]
call fcn.00402dca
mov edi, dword [esp + 0x30]
lea eax, [esp + 0x34]
push edi
push str._sHpUpdate.session
push eax
call fcn.0040353b
mov esi, dword [esp + 0x40]
add esp, 0xc
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x403076
mov ebx, 0x80004005
jmp 0x40324b
cmp dword [esp + 0x5c], 3
je 0x403086
lea ecx, [esp + 0x54]
call fcn.004010c7
push ebx
push 0x8000080
push 3
push ebx
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x58], eax
cmp eax, 0xffffffff
jne 0x4030b1
lea ecx, [esp + 0x54]
call fcn.00401093
jmp 0x4030bf
mov dword [esp + 0x60], 1
mov eax, ebx
mov dword [esp + 0x5c], ebx
test eax, eax
je 0x4030dd
mov eax, dword [esp + 0x68]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x403249
lea eax, [esp + 0x38]
push eax
push 4
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x54]
push eax
call fcn.00404369
mov ebx, eax
test ebx, ebx
js 0x40324b
lea eax, [esp + 0x38]
push eax
push 4
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x54]
push eax
call fcn.00404369
mov ebx, eax
test ebx, ebx
js 0x40324b
and dword [esp + 0x18], 0
lea eax, [esp + 0x48]
mov byte [esp + 0x78], 4
push eax
lea ecx, [esp + 0x1c]
call fcn.0040340b
mov ebx, eax
test ebx, ebx
jns 0x40314a
push dword [esp + 0x18]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x40324b
xor ebx, ebx
mov dword [esp + 0x1c], ebx
lea eax, [esp + 0x48]
mov byte [esp + 0x78], 5
push eax
lea ecx, [esp + 0x20]
call fcn.0040340b
mov dword [esp + 0x14], eax
test eax, eax
jns 0x403186
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [esp + 0x1c]
call ebx
push dword [esp + 0x18]
call ebx
mov ebx, dword [esp + 0x14]
jmp 0x40324b
mov dword [esp + 0x20], ebx
lea eax, [esp + 0x48]
mov byte [esp + 0x78], 6
push eax
lea ecx, [esp + 0x24]
call fcn.0040340b
mov dword [esp + 0x14], eax
test eax, eax
jns 0x4031b3
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [esp + 0x20]
call ebx
jmp 0x403171
mov dword [esp + 0x24], ebx
lea eax, [esp + 0x48]
mov byte [esp + 0x78], 7
push eax
lea ecx, [esp + 0x28]
call fcn.0040340b
mov dword [esp + 0x14], eax
test eax, eax
jns 0x4031e0
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [esp + 0x24]
call ebx
jmp 0x4031ab
mov dword [esp + 0x2c], ebx
lea eax, [esp + 0x48]
mov byte [esp + 0x78], 8
push eax
lea ecx, [esp + 0x30]
call fcn.0040340b
mov dword [esp + 0x14], eax
test eax, eax
jns 0x40320d
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [esp + 0x2c]
call ebx
jmp 0x4031d8
mov dword [esp + 0x28], ebx
lea eax, [esp + 0x48]
mov byte [esp + 0x78], 9
push eax
lea ecx, [esp + 0x2c]
call fcn.0040340b
mov dword [esp + 0x14], eax
push dword [esp + 0x28]
test eax, eax
jns 0x40323a
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call ebx
jmp 0x403205
mov ecx, dword [esp + 0x40]
call fcn.00402d8f
push dword [esp + 0x28]
jmp 0x403230
mov ebx, ecx
lea ecx, [esp + 0x54]
call fcn.004010c7
lea ecx, [esi - 0x10]
call fcn.00402dca
lea ecx, [edi - 0x10]
call fcn.00402dca
lea ecx, [esp + 0x48]
call fcn.00404350
mov eax, ebx
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret