Function at 0x4092f0
Capabilities:
Check if file exists
Copy file
Create process on windows
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ae4d
mov eax, dword fs:[0]
push eax
sub esp, 0x768
mov eax, dword [0x448050]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x324]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
lea ecx, [ebp - 0x324]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [ebp - 0x52c]
push edx
push 1
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
jns 0x4093a6
mov ebx, dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
push 0x104
lea eax, [ebp - 0x52c]
push eax
push str.USERPROFILE
call ebx
mov esi, eax
test esi, esi
je 0x40938d
push str.Application_Data
lea ecx, [ebp - 0x52c]
push ecx
call edi
jmp 0x4093a2
push 0x104
lea edx, [ebp - 0x52c]
push edx
push str.ProgramFiles
call ebx
mov esi, eax
test esi, esi
je 0x4093b4
push str.PPLiveWebGameClient
lea eax, [ebp - 0x52c]
push eax
call edi
lea eax, [ebp - 0x52c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4093c0
sub eax, edx
lea ecx, [ebp - 0x52c]
sar eax, 1
push ecx
push 0x44c380
mov ebx, eax
call fcn.00405be0
mov esi, dword [0x44c380]
lea ecx, [ebp - 0x324]
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x409416
test dx, dx
je 0x409412
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x409416
add eax, 4
add ecx, 4
test dx, dx
jne 0x4093f0
xor eax, eax
jmp 0x40941b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40971a
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x409444
mov edx, dword [0x44c380]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
jne 0x409717
push 0x104
lea eax, [ebp - 0x324]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
mov ecx, dword [0x44c380]
push ecx
lea edx, [ebp - 0x734]
push edx
call edi
mov eax, dword [0x44c37c]
push eax
lea ecx, [ebp - 0x734]
push ecx
call edi
push 0x103
lea edx, [ebp - 0x11b]
push 0
push edx
mov byte [ebp - 0x11c], 0
call fcn.00427020
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x324]
push ecx
call fcn.004063c0
add esp, 8
lea edx, [ebp - 0x11c]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jle 0x4094c6
xor edi, edi
jmp 0x4094e2
lea eax, [esi + esi]
call fcn.00433400
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x11c]
push ecx
push eax
call fcn.0040c6e0
mov edi, eax
mov eax, dword [0x44c37c]
push 1
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x748], esp
mov esi, esp
call fcn.004054c0
add eax, 0x10
mov dword [esi], eax
push ecx
mov dword [ebp - 4], 0
mov edx, esp
mov dword [ebp - 0x74c], esp
push edx
mov ecx, edi
call fcn.00405cd0
mov byte [ebp - 4], 1
mov eax, dword [0x44c384]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x750], esp
mov esi, esp
call fcn.004054c0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 2
mov eax, dword [0x44c390]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x744], esp
mov esi, esp
call fcn.004054c0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 3
mov eax, dword [0x44c38c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x73c], esp
mov esi, esp
call fcn.004054c0
add eax, 0x10
mov dword [esi], eax
lea esi, [ebp - 0x774]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ddd0
mov ecx, esi
mov dword [ebp - 4], 4
call fcn.0040eae0
mov edi, esi
mov ebx, eax
call fcn.0040e9d0
mov esi, eax
push 0
lea eax, [ebp - 0x734]
push eax
lea ecx, [ebp - 0x324]
push ecx
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
test eax, eax
je 0x40970c
test esi, esi
jne 0x4095d6
test ebx, ebx
je 0x4095d6
push ecx
mov edx, esp
mov dword [ebp - 0x73c], esp
push edx
mov ecx, 0x43f914
jmp 0x4095e5
push ecx
mov eax, esp
mov dword [ebp - 0x73c], esp
push eax
mov ecx, 0x43f91c
call fcn.00405cd0
call fcn.00408bc0
add esp, 4
lea ecx, [ebp - 0x774]
call fcn.00410160
push ecx
mov ecx, esp
mov dword [ebp - 0x73c], esp
push ecx
lea ecx, [ebp - 0x734]
call fcn.00405cd0
lea edx, [ebp - 0x738]
push edx
call fcn.0040a080
add esp, 8
push 4
push 0x43f924
lea ebx, [ebp - 0x738]
mov byte [ebp - 4], 5
call fcn.00405390
lea eax, [ebp - 0x324]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409640
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x324]
push eax
lea ebx, [ebp - 0x738]
call fcn.00405390
push 5
push str.__IB
call fcn.00405390
lea esi, [ebp - 0x740]
call fcn.0040a050
mov byte [ebp - 4], 6
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
call fcn.00405390
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x740]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4096af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp + 8], 0
je 0x4096d4
mov ecx, dword [ebp - 0x738]
push 1
push 0
push ecx
lea edx, [ebp - 0x734]
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x738]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4096fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [ebp - 0x774]
call fcn.0040e190
mov eax, 1
jmp 0x40971a
lea esi, [ebp - 0x774]
call fcn.0040e190
or eax, 0xffffffff
lea esp, [ebp - 0x784]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00424761
mov esp, ebp
pop ebp
ret