Function at 0x42e790
Capabilities:
Check if file exists
Copy file
Create process on windows
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c3836
mov eax, dword fs:[0]
push eax
sub esp, 0xe6c
mov eax, dword [0x4f4214]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x422]
push ecx
mov word [ebp - 0x424], ax
call fcn.0049f910
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x62a]
push eax
mov word [ebp - 0x62c], dx
call fcn.0049f910
add esp, 0xc
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [ebp - 0xe2a]
push edx
mov word [ebp - 0xe2c], cx
call fcn.0049f910
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.duoduoupdate.exe
lea ecx, [ebp - 0x424]
push ecx
call esi
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x21a]
push eax
mov word [ebp - 0x21c], dx
call fcn.0049f910
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x62c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
lea eax, [ebp - 0x62c]
push eax
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.duoduoupdate.exe
lea edx, [ebp - 0x62c]
push edx
call esi
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42e8dd
lea ecx, [ebp - 0x424]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea edx, [ebp - 0x424]
push edx
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, str.PCClientUpgrade
call fcn.004346c0
lea ecx, [ebp - 0xe30]
push ecx
mov ebx, eax
call fcn.00435470
add esp, 4
mov dword [ebp - 4], 0
mov ecx, str.UserAgent
call fcn.004346c0
lea edx, [ebp - 0xe38]
push edx
mov ebx, eax
call fcn.00435470
add esp, 4
mov bl, 1
mov byte [ebp - 4], bl
cmp dword [0x4f9fb8], 0
jne 0x42e990
push 0x4f9468
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x4f9fb8], 0
jne 0x42e985
push 0x54
call fcn.0049caff
add esp, 4
mov dword [ebp - 0xe3c], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x42e974
push eax
call fcn.004245b0
mov ecx, eax
jmp 0x42e976
xor ecx, ecx
mov byte [ebp - 4], bl
xchg dword [ebp - 0xe3c], eax
mov dword [0x4f9fb8], ecx
push 0x4f9468
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [0x4f9fb8]
add ebx, 0x20
cmp dword [ebx + 0x14], 0x10
jb 0x42e9a1
mov ebx, dword [ebx]
lea eax, [ebp - 0xe34]
push eax
call fcn.00435470
add esp, 4
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0xe34]
mov edx, dword [ebp - 0xe38]
mov eax, dword [ebp - 0xe30]
push ecx
push 0x4d726c
push edx
push eax
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0xe2c]
push str._s__s__s__s__stevent
push edx
call fcn.0049db5e
add esp, 0x1c
push 0x3c
lea eax, [ebp - 0xe78]
push 0
push eax
call fcn.0049f910
movzx eax, byte [ebp + 8]
add esp, 0xc
neg eax
lea ecx, [ebp - 0x424]
mov dword [ebp - 0xe68], ecx
sbb eax, eax
lea ecx, [ebp - 0xe78]
lea edx, [ebp - 0xe2c]
and eax, 5
push ecx
mov dword [ebp - 0xe6c], str.open
mov dword [ebp - 0xe64], edx
mov dword [ebp - 0xe5c], eax
mov dword [ebp - 0xe78], 0x3c
mov dword [ebp - 0xe74], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xe34]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42ea76
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0xe38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ea9c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xe30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42eac5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049c72a
mov esp, ebp
pop ebp
ret 4