Function at 0x4029a0
Capabilities:
Delete file
Read .ini file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x421f41
mov eax, dword fs:[0]
push eax
sub esp, 0xaa0
mov eax, dword [0x42c2c0]
xor eax, esp
mov dword [esp + 0xa9c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42c2c0]
xor eax, esp
push eax
lea eax, [esp + 0xab4]
mov dword fs:[0], eax
mov eax, dword [esp + 0xac4]
cmp eax, 0x101
je 0x402a02
cmp eax, 0x201
je 0x402a02
cmp eax, 0x301
je 0x402a02
cmp eax, 0x103
jne 0x402d63
lea ecx, [esp + 0x6c]
call fcn.00408af0
xor ebx, ebx
push 0x206
lea ecx, [esp + 0x8ae]
xor eax, eax
push ebx
mov dword [esp + 0xac4], ebx
push ecx
mov word [esp + 0x8b4], ax
call fcn.0040b360
add esp, 0xc
lea ecx, [esp + 0x18]
call fcn.00408af0
mov ebp, 8
cmp dword [eax + 0x18], ebp
jb 0x402a4c
mov eax, dword [eax + 4]
jmp 0x402a4f
add eax, 4
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
push 0x104
lea edx, [esp + 0x8b0]
push edx
push 0x4293c0
push str.LastUpdateVersion
push str.System
call edi
cmp dword [esp + 0x30], ebp
jb 0x402a87
mov eax, dword [esp + 0x1c]
push eax
call fcn.0040a02d
add esp, 4
push 0x206
lea edx, [esp + 0x49e]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x4a4], cx
call fcn.0040b360
lea eax, [esp + 0x8b4]
push eax
push str.http:__photocdn.hd.sohu.com_upgrade_SohuVa_SoHuLiveUpdate__s.exe
lea edx, [esp + 0x4ac]
call fcn.00407b70
add esp, 0x14
xor ecx, ecx
lea eax, [esp + 0x498]
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], cx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402ae0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x49c]
lea esi, [esp + 0x38]
call fcn.00404870
push 0x206
lea eax, [esp + 0x6a6]
xor edx, edx
push ebx
mov byte [esp + 0xac4], 1
push eax
mov word [esp + 0x6ac], dx
call fcn.0040b360
mov ecx, dword [esp + 0x7c]
add esp, 0xc
cmp dword [esp + 0x84], ebp
jae 0x402b39
lea ecx, [esp + 0x70]
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x4c], ebp
jae 0x402b47
lea eax, [esp + 0x38]
push ecx
push 0x104
lea ecx, [esp + 0x6a8]
push ecx
push eax
push str.UpgradeUrl
push str.System
call edi
lea eax, [esp + 0x6a0]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402b70
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x6a4]
lea esi, [esp + 0x38]
call fcn.00404870
mov edi, 0xf
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
mov byte [esp + 0xabc], 2
mov ecx, dword [esp + 0x38]
cmp dword [esp + 0x4c], ebp
jae 0x402bb7
lea ecx, [esp + 0x38]
lea edx, [esp + 0x50]
call fcn.004020b0
test al, al
je 0x402d7f
push 0x206
lea ecx, [esp + 0x8e]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x94], ax
call fcn.0040b360
push 0x206
lea eax, [esp + 0x2a2]
xor edx, edx
push ebx
push eax
mov word [esp + 0x2a8], dx
call fcn.0040b360
add esp, 0x18
push 0x104
lea ecx, [esp + 0x8c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x88]
push 0x5c
push edx
call fcn.0040a67b
lea edx, [esp + 0x90]
xor ecx, ecx
push edx
mov word [eax], cx
lea eax, [esp + 0x29c]
push 0x104
push eax
call fcn.0040a6a7
push str.SoHuLiveUpdate.exe
lea ecx, [esp + 0xa0]
push 0x104
push ecx
call fcn.0040a716
lea edx, [esp + 0xa8]
push ebx
push edx
call fcn.0040a81c
add esp, 0x28
test eax, eax
jne 0x402ca2
push str.SoHuLiveUpdate.bak
lea eax, [esp + 0x294]
push 0x104
push eax
call fcn.0040a716
lea ecx, [esp + 0x29c]
push ecx
lea edx, [esp + 0x98]
push edx
call fcn.0040a834
add esp, 0x14
push 0x4291ac
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], ebx
call fcn.0040a92d
mov ecx, dword [esp + 0x20]
add esp, 0xc
cmp ecx, ebx
je 0x402d67
mov eax, dword [esp + 0x54]
mov esi, 0x10
cmp dword [esp + 0x68], esi
jae 0x402cdf
lea eax, [esp + 0x54]
mov edx, dword [esp + 0x64]
push ecx
push edx
push 1
push eax
call fcn.0040aae2
mov eax, dword [esp + 0x24]
push eax
call fcn.0040abdb
add esp, 0x14
lea ecx, [esp + 0x290]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x68], esi
jb 0x402d1b
mov edx, dword [esp + 0x54]
push edx
call fcn.0040a02d
add esp, 4
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
cmp dword [esp + 0x4c], ebp
jb 0x402d3a
mov eax, dword [esp + 0x38]
push eax
call fcn.0040a02d
add esp, 4
xor ecx, ecx
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], cx
cmp dword [esp + 0x84], ebp
jb 0x402d63
mov edx, dword [esp + 0x70]
push edx
call fcn.0040a02d
add esp, 4
xor eax, eax
jmp 0x402de0
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x294]
push ecx
call fcn.0040a834
add esp, 8
cmp dword [esp + 0x68], 0x10
jb 0x402d93
mov edx, dword [esp + 0x54]
push edx
call fcn.0040a02d
add esp, 4
mov byte [esp + 0x54], bl
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], edi
cmp dword [esp + 0x4c], ebp
jb 0x402db2
mov eax, dword [esp + 0x38]
push eax
call fcn.0040a02d
add esp, 4
xor ecx, ecx
mov word [esp + 0x38], cx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], 7
cmp dword [esp + 0x84], ebp
jb 0x402ddb
mov edx, dword [esp + 0x70]
push edx
call fcn.0040a02d
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0xab4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa9c]
xor ecx, esp
call fcn.0040a038
add esp, 0xaac
ret