Function at 0x40f7d0
Capabilities:
Check if file exists
Create process on windows
Delete file
Get file attributes

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 0x491372
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x80
push esi
push edi
mov eax, dword [0x4b81bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x20], edi
mov eax, dword [0x4bda58]
test eax, eax
jne 0x40f843
push 0x2c
call fcn.00439955
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0040d140
mov dword [ebp - 4], 0xffffffff
mov dword [0x4bda58], eax
push dword [ebx + 8]
push str.CheckInstall__s_
push str.Update
push eax
call fcn.0040d770
add esp, 0x10
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
call fcn.0040ed00
mov dword [ebp - 4], 1
cmp dword [ebp - 0x34], 0
sete al
or esi, 0xffffffff
test al, al
je 0x40f89d
lea ecx, [ebp - 0x7c]
call fcn.0041f890
lea eax, [edi + 0x88]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x78]
call fcn.00409070
mov dword [ebp - 0x68], 0x10020000
jmp 0x40f90d
push dword [ebx + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40f932
mov eax, dword [0x4bda58]
test eax, eax
jne 0x40f8d8
push 0x2c
call fcn.00439955
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0040d140
mov byte [ebp - 4], 1
mov dword [0x4bda58], eax
push str.Update_Package_File_Not_Exist_
push str.Update
push eax
call fcn.0040d770
add esp, 0xc
lea ecx, [ebp - 0x7c]
call fcn.0041f890
lea eax, [edi + 0x88]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x78]
call fcn.00409070
mov dword [ebp - 0x68], 0x10040000
lea eax, [ebp - 0x7c]
mov edx, 0x4a72b4
push eax
mov ecx, str.update
call fcn.0041fe90
add esp, 4
lea ecx, [ebp - 0x7c]
call fcn.00408700
xor edi, edi
jmp 0x40fceb
push dword [ebx + 8]
lea ecx, [ebp - 0x1c]
xor edi, edi
call fcn.004038a0
lea edx, [ebp - 0x1c]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.00430a80
mov edx, dword [ebp - 0x34]
mov ecx, eax
add edx, 0x1c
call fcn.00410fc0
mov edx, dword [ebp - 0x28]
mov ecx, esi
mov byte [ebp - 0x11], al
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40f978
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f996
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x11], 0
je 0x40f9d8
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x2c]
cmp eax, 3
ja case.default.0x40f9ab
jmp dword [eax*4 + 0x40fd34]
lea eax, [ebp - 0x34]
push eax
push dword [ebx + 8]
call fcn.00410530
mov edi, eax
jmp case.default.0x40f9ab
lea eax, [ebp - 0x34]
push eax
push dword [ebx + 8]
call fcn.00410790
mov edi, eax
jmp case.default.0x40f9ab
lea ecx, [ebp - 0x7c]
call fcn.0041f890
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x78]
add eax, 0x88
mov byte [ebp - 4], 6
push eax
call fcn.00409070
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x68], 0x10050000
push eax
mov edx, 0x4a72b4
mov ecx, str.update
call fcn.0041fe90
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x7c]
call fcn.00408700
mov eax, dword [0x4bda58]
test eax, eax
jne 0x40fa48
push 0x2c
call fcn.00439955
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.0040d140
mov byte [ebp - 4], 1
mov dword [0x4bda58], eax
push str.Check_Update_Package_File_MD5_Failed_
push str.Update
push eax
call fcn.0040d770
add esp, 0xc
mov eax, dword [0x4bda58]
test eax, eax
jne 0x40fa85
push 0x2c
call fcn.00439955
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.0040d140
mov byte [ebp - 4], 1
mov dword [0x4bda58], eax
push edi
push str.UpdatePackage_Result_is__d
push str.Update
push eax
call fcn.0040d770
add esp, 0x10
test edi, edi
je 0x40fca0
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x1c]
mov edx, dword [eax + 0x70]
call fcn.0041eae0
mov byte [ebp - 4], 9
push dword [ebp - 0x1c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40fb3f
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
shr eax, 4
not eax
and eax, 1
je 0x40fb3f
push 0x44
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.0046ce30
add esp, 0xc
mov dword [ebp - 0x90], 0x44
lea eax, [ebp - 0x44]
xorps xmm0, xmm0
movups xmmword [ebp - 0x44], xmm0
push eax
lea eax, [ebp - 0x90]
push eax
mov eax, dword [ebp - 0x34]
push 0
push 0
push 0
push 0
push 0
push 0
push dword [eax + 0x74]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40fb3f
push 0xffffffffffffffff
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x44]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x40]
call esi
or esi, 0xffffffff
mov edx, str.html.zip
lea ecx, [ebp - 0x18]
call fcn.0041eae0
mov edx, str.html
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x28]
call fcn.0041eae0
mov byte [ebp - 4], 0xb
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40fb95
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
shr eax, 4
not eax
and eax, 1
je 0x40fb95
push ecx
push dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
mov edx, 0x4a78a8
call fcn.00421c80
add esp, 8
mov eax, dword [ebp - 0x34]
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jle 0x40fbe0
lea ecx, [ebp - 0x24]
call fcn.004204f0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
call fcn.0042b840
neg eax
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x24]
sbb edi, edi
add edx, 0xfffffff0
inc edi
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fbe0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x7c]
call fcn.0041f890
test edi, edi
je 0x40fc0a
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x78]
add eax, 0x88
mov byte [ebp - 4], 0xd
push eax
call fcn.00409070
mov dword [ebp - 0x68], 0
jmp 0x40fc26
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x78]
add eax, 0x88
mov byte [ebp - 4], 0xe
push eax
call fcn.00409070
mov dword [ebp - 0x68], 0x10070000
lea eax, [ebp - 0x7c]
mov edx, 0x4a72b4
push eax
mov ecx, str.update
call fcn.0041fe90
add esp, 4
lea ecx, [ebp - 0x7c]
call fcn.00408700
mov byte [ebp - 4], 0xa
mov eax, esi
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fc62
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
mov eax, esi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fc80
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fce2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40fce2
lea ecx, [ebp - 0x7c]
call fcn.0041f890
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x78]
add eax, 0x88
mov byte [ebp - 4], 0xf
push eax
call fcn.00409070
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x68], 0x10060000
push eax
mov edx, 0x4a72b4
mov ecx, str.update
call fcn.0041fe90
add esp, 4
lea ecx, [ebp - 0x7c]
call fcn.00408700
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0x10
mov esi, dword [ebp - 0x30]
test esi, esi
je 0x40fd1b
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x40fd1b
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x40fd1b
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8