Function at 0x495980
Capabilities:
Accept command line arguments
Copy file
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f25fb
mov eax, dword fs:[0]
push eax
sub esp, 0x464
mov eax, dword [0x536364]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push edi
push 0x4f9f50
call esi
push eax
call fcn.00490310
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004c10f0
add esp, 0x18
lea eax, [ebp - 0x420]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.Uninst.exe
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x438]
push 0
push eax
call fcn.004841e0
add esp, 8
lea eax, [ebp - 0x438]
cmp dword [ebp - 0x424], 8
jb 0x495a24
mov eax, dword [ebp - 0x438]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.004c44bc
add esp, 8
test eax, eax
je 0x495a65
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
jb 0x495a4d
mov eax, dword [ebp - 0x438]
push 0
lea ecx, [ebp - 0x420]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x495c5c
lea ecx, [ebp - 0x438]
call fcn.00406be0
mov ecx, edi
xor esi, esi
call fcn.00495ea0
test al, al
je 0x495c37
xor eax, eax
mov dword [ebp - method.WTL::CMessageLoop.virtual_0], vtable.WTL::CMessageLoop.0
mov dword [ebp - 0x46c], esi
mov dword [ebp - 0x468], esi
mov dword [ebp - 0x464], esi
mov dword [ebp - 0x460], esi
mov dword [ebp - 0x45c], esi
mov dword [ebp - 0x458], esi
mov dword [ebp - 0x454], eax
mov dword [ebp - 0x450], eax
mov dword [ebp - 0x44c], eax
mov dword [ebp - 0x448], eax
mov dword [ebp - 0x444], eax
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x43c], eax
mov edi, dword [0x53f468]
add edi, 0x10
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x53f4c4]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
mov eax, dword [esi + 8]
push 4
inc eax
push eax
push dword [esi]
call fcn.004c98b7
add esp, 0xc
test eax, eax
je 0x495b55
mov dword [esi], eax
mov eax, dword [esi + 8]
push 4
inc eax
push eax
push dword [esi + 4]
call fcn.004c98b7
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x495b55
mov eax, dword [esi + 8]
mov dword [esi + 4], ecx
lea edx, [eax*4]
mov eax, dword [esi]
add eax, edx
je 0x495b43
mov dword [eax], ebx
mov ecx, dword [esi + 4]
lea eax, [edx + ecx]
test eax, eax
je 0x495b52
lea ecx, [ebp - 0x470]
mov dword [eax], ecx
inc dword [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
xor esi, esi
mov ebx, 1
lea esp, [esp]
test ebx, ebx
je 0x495ba2
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x454]
push eax
call edi
test eax, eax
jne 0x495ba2
mov eax, dword [ebp - 0x470]
lea ecx, [ebp - 0x470]
push esi
inc esi
mov edx, dword [eax + 8]
call edx
test eax, eax
jne 0x495b74
xor ebx, ebx
push 0
push 0
push 0
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
je 0x495b70
test eax, eax
je 0x495c15
mov eax, dword [ebp - 0x470]
lea ecx, [ebp - 0x454]
push ecx
lea ecx, [ebp - 0x470]
call dword [eax + 4]
test eax, eax
jne 0x495bf2
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [ebp - 0x470]
lea ecx, [ebp - 0x454]
push ecx
lea ecx, [ebp - 0x470]
call dword [eax + 0xc]
test eax, eax
je 0x495b70
jmp 0x495b62
mov esi, dword [ebp - 0x44c]
mov ecx, 0x53f490
call fcn.00495850
lea ecx, [ebp - 0x470]
mov dword [ebp - 4], 0xffffffff
call fcn.004956d0
call fcn.00404ac0
call dword [sym.imp.ole32.dll_OleUninitialize]
call fcn.00486320
mov ecx, eax
call fcn.00488430
call fcn.0048c580
call fcn.0048c350
mov eax, esi
jmp 0x495c82
call esi
push 1
push 0
push 0
lea eax, [ebp - 0x420]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x438]
call fcn.00406be0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a1e09
mov esp, ebp
pop ebp
ret 0xc