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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0bd6
mov eax, dword fs:[0]
push eax
sub esp, 0x880
mov eax, dword [0x520404]
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, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push ecx
push 0x4e8920
call edi
push eax
call fcn.0048ad20
push 0x410
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.004ac800
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004ac800
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x830]
add esp, 0x24
push eax
push 0x208
call esi
lea eax, [ebp - 0x420]
push eax
push 0x208
call esi
push str.Uninst.exe
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x848]
push eax
call fcn.00488f80
add esp, 4
lea eax, [ebp - 0x848]
cmp dword [ebp - 0x834], 8
jb 0x496ea3
mov eax, dword [ebp - 0x848]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.004af5ae
add esp, 8
test eax, eax
je 0x496f1b
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
jb 0x496ecc
mov eax, dword [ebp - 0x848]
push 0
lea ecx, [ebp - 0x420]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x496f1b
push 0x4e89e4
call edi
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
push 1
lea ecx, [ebp - 0x830]
push ecx
push eax
lea eax, [ebp - 0x420]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x848]
call fcn.00407180
xor eax, eax
jmp 0x4972fc
lea ecx, [ebp - 0x848]
call fcn.00407180
push 1
xor esi, esi
call fcn.0047c450
mov ecx, eax
call fcn.0047e740
mov eax, dword fs:[0x2c]
mov ecx, dword [0x528b00]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x52808c]
cmp eax, dword [ecx + 4]
jg 0x49731a
movzx eax, byte [0x528088]
neg eax
sbb eax, eax
and eax, 0x800
push eax
push 0
push 0x4e88a8
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0xa
xor eax, eax
mov dword [ebp - 0x848], esi
push str.resources_
lea ecx, [ebp - 0x848]
mov dword [ebp - 0x838], esi
mov dword [ebp - 0x834], 7
mov word [ebp - 0x848], ax
call fcn.00408960
push 0x4f889b
push 0x4e88d8
push 0x6f
mov dword [ebp - 4], 0
call fcn.0040ac80
add esp, 0xc
lea eax, [ebp - 0x848]
cmp dword [ebp - 0x834], 8
jb 0x496fd5
mov eax, dword [ebp - 0x848]
push 2
push str.langzh_CN
push str.themesdefault
push eax
call fcn.0040aba0
mov edx, dword [ebp - 0x834]
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x497031
mov ecx, dword [ebp - 0x848]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x497027
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x497366
push edx
push ecx
call fcn.004a7d37
add esp, 8
xor eax, eax
mov dword [ebp - 0x838], 0
push eax
mov dword [ebp - 0x834], 7
mov word [ebp - 0x848], ax
call dword [sym.imp.ole32.dll_OleInitialize]
call fcn.00492840
test al, al
je 0x4972e3
xor eax, eax
mov dword [ebp - method.WTL::CMessageLoop.virtual_0], vtable.WTL::CMessageLoop.0
mov dword [ebp - 0x87c], 0
mov dword [ebp - 0x878], 0
mov dword [ebp - 0x874], 0
mov dword [ebp - 0x870], 0
mov dword [ebp - 0x86c], 0
mov dword [ebp - 0x868], 0
mov dword [ebp - 0x864], eax
mov dword [ebp - 0x860], eax
mov dword [ebp - 0x85c], eax
mov dword [ebp - 0x858], eax
mov dword [ebp - 0x854], eax
mov dword [ebp - 0x850], eax
mov dword [ebp - 0x84c], eax
mov ebx, dword [0x528714]
add ebx, 0x10
mov dword [ebp - 4], 1
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [0x52876c]
mov edi, eax
push 4
mov ecx, dword [esi + 8]
inc ecx
push ecx
push dword [esi]
call fcn.004b54b3
add esp, 0xc
test eax, eax
je 0x49714d
mov dword [esi], eax
mov eax, dword [esi + 8]
push 4
inc eax
push eax
push dword [esi + 4]
call fcn.004b54b3
add esp, 0xc
test eax, eax
je 0x49714d
mov ecx, dword [esi + 8]
mov dword [esi + 4], eax
lea edx, [ecx*4]
mov ecx, dword [esi]
add ecx, edx
je 0x49713e
mov dword [ecx], edi
mov eax, dword [esi + 4]
add eax, edx
je 0x49714a
lea ecx, [ebp - 0x880]
mov dword [eax], ecx
inc dword [esi + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
xor esi, esi
mov ebx, 1
test ebx, ebx
je 0x497191
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x864]
push eax
call edi
test eax, eax
jne 0x497191
mov eax, dword [ebp - 0x880]
lea ecx, [ebp - 0x880]
push esi
call dword [eax + 8]
inc esi
test eax, eax
jne 0x497165
xor ebx, ebx
push 0
push 0
push 0
lea eax, [ebp - 0x864]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
je 0x497161
test eax, eax
je 0x497204
lea eax, [ebp - 0x864]
push eax
mov eax, dword [ebp - 0x880]
lea ecx, [ebp - 0x880]
call dword [eax + 4]
test eax, eax
jne 0x4971e1
lea eax, [ebp - 0x864]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x864]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [ebp - 0x864]
push eax
mov eax, dword [ebp - 0x880]
lea ecx, [ebp - 0x880]
call dword [eax + 0xc]
test eax, eax
je 0x497161
jmp 0x49715a
mov ebx, dword [0x528714]
mov eax, dword [ebp - 0x85c]
add ebx, 0x10
mov dword [ebp - 0x884], eax
mov dword [ebp - 0x88c], ebx
push ebx
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x888], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [0x52876c]
xor ecx, ecx
mov esi, dword [edi + 8]
test esi, esi
jle 0x497263
mov edx, dword [edi]
cmp dword [edx], eax
je 0x497256
inc ecx
add edx, 4
cmp ecx, esi
jl 0x497248
jmp 0x497263
cmp ecx, 0xffffffff
je 0x497263
push ecx
mov ecx, edi
call fcn.00496ca0
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x870]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - method.WTL::CMessageLoop.virtual_0], vtable.WTL::CMessageLoop.0
test eax, eax
je 0x497298
push eax
call fcn.004b548d
add esp, 4
mov dword [ebp - 0x870], 0
mov eax, dword [ebp - 0x87c]
mov dword [ebp - 0x86c], 0
mov dword [ebp - 0x868], 0
test eax, eax
je 0x4972c9
push eax
call fcn.004b548d
add esp, 4
mov dword [ebp - 0x87c], 0
mov esi, dword [ebp - 0x884]
mov dword [ebp - 0x878], 0
mov dword [ebp - 0x874], 0
call fcn.0040abc0
call dword [sym.imp.ole32.dll_OleUninitialize]
call fcn.0047c450
mov ecx, eax
call fcn.0047e860
mov eax, esi
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.004a7f4e
mov esp, ebp
pop ebp
ret 0xc
push 0x52808c
call fcn.004a7e78
add esp, 4
cmp dword [0x52808c], 0xffffffff
jne 0x496f56
push str.AddDllDirectory
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
push 0x52808c
setne byte [0x528088]
call fcn.004a7e2e
add esp, 4
jmp 0x496f56
call fcn.004af45f
int3