Function at 0x404aa9
Capabilities:
Accept command line arguments
Check if file exists
Create process on windows
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x800]
sub esp, 0x880
mov eax, dword [0x41752c]
xor eax, ebp
mov dword [ebp + 0x7fc], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ebx, ebx
push ebx
mov dword [ebp - 0x18], eax
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x412400
push dword [ebp + 0x808]
mov ecx, 0x418548
push section..data
call fcn.004018f4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x418578], eax
mov esi, 0x412ad8
lea edi, [ebp + 0x7f4]
lea eax, [ebp + 0x7f4]
movsd dword es:[edi], dword [esi]
push eax
push dword [ebp - 0x18]
movsw word es:[edi], word [esi]
mov dword [ebp - 0x24], ebx
call fcn.00401049
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x404fba
mov esi, str.runasAdmin
push str.UnregServer
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x404bbd
push str.RegServer
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x404bde
push str.Embedding
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x404f68
mov eax, dword [0x41705c]
push esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push 0x412a78
push eax
call fcn.00404a2f
mov eax, dword [ebp - 0x1c]
add esp, 0xc
push dword [eax - 8]
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
lea eax, [ebp + 0x7f4]
push eax
push edi
je 0x404d11
call fcn.00401049
pop ecx
pop ecx
lea ecx, [ebp - 0x1c]
mov edi, eax
call fcn.00402090
cmp edi, ebx
jne 0x404b2f
jmp 0x404fba
push ebx
push ebx
push 0x64
mov esi, 0x418548
push esi
call fcn.0040466a
push ebx
push 1
mov ecx, esi
call fcn.00404892
mov dword [ebp - 0x24], eax
jmp 0x404fba
push ebx
push 1
push 0x64
push 0x418548
call fcn.0040466a
mov eax, dword [0x41705c]
mov edi, dword [0x4185b4]
mov esi, 0x800
push esi
push 0x801
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
call fcn.00402b7b
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
or edi, 0xffffffff
push edi
lea ecx, [ebp - 0x10]
call fcn.00403a36
push esi
push ebx
lea ecx, [ebp - 0x10]
call fcn.00402b7b
push eax
push ebx
lea ecx, [ebp - 0x10]
call fcn.00402b7b
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
push edi
lea ecx, [ebp - 0x10]
call fcn.00403a36
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.0040203c
push str.ASBarBroker.exe
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.0040492a
cmp esi, edi
je 0x404ca8
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 8]
sub eax, esi
dec eax
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.004049d8
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403c9b
lea ecx, [ebp - 0x18]
call fcn.00402090
push esi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.00404987
push eax
lea ecx, [ebp - 0x10]
call fcn.00403c9b
lea ecx, [ebp - 0x18]
call fcn.00402090
push dword [ebp - 0x10]
mov edi, str.AppPath
push edi
mov esi, str.SOFTWAREMicrosoftInternet_ExplorerLow_RightsElevationPolicy1DD31B76_C57E_49ba_94BC_BF53F0C82CD4
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00405d2b
push dword [ebp - 0x10]
push edi
push esi
mov edi, SysReAllocString
push edi
call fcn.00405d2b
push dword [ebp - 0x1c]
push str.AppName
push esi
push edi
call fcn.00405d2b
push 3
push str.Policy
push esi
push edi
call fcn.00405ce5
add esp, 0x40
push ebx
push 1
mov ecx, 0x418548
call fcn.0040482d
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x24], eax
call fcn.00402090
lea ecx, [ebp - 0x10]
jmp 0x404f61
call fcn.00401049
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.0040492a
lea eax, [ebp + 0x7f4]
push eax
push dword [ebp - 0x10]
call fcn.00401049
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.0040492a
mov eax, dword [ebp - 0x20]
or edi, 0xffffffff
cmp dword [eax - 8], ebx
je 0x404d85
push ebx
push eax
lea ecx, [ebp - 0x10]
call fcn.0040205e
cmp eax, edi
je 0x404d92
dec eax
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.00404987
push eax
lea ecx, [ebp - 0x10]
call fcn.00403c9b
lea ecx, [ebp - 0x18]
call fcn.00402090
lea ecx, [ebp - 0x10]
call fcn.004039e4
lea ecx, [ebp - 0x10]
call fcn.00403991
jmp 0x404d92
push 0x412934
lea ecx, [ebp - 0x20]
call fcn.00403ceb
call fcn.00405bac
test eax, eax
je 0x404e9e
mov eax, dword [0x41705c]
mov esi, dword [0x4185b4]
push 0x800
push 0x801
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
call fcn.00402b7b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
lea ecx, [ebp - 0x14]
call fcn.00403a36
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.0040203c
cmp eax, edi
je 0x404dfc
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x14]
call fcn.00404987
push eax
lea ecx, [ebp - 0x14]
call fcn.00403c9b
lea ecx, [ebp - 0x28]
call fcn.00402090
push 0x412930
lea ecx, [ebp - 0x14]
call fcn.00402b54
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00404a42
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404e91
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x404e91
cmp dword [ebp - 0x10], ebx
je 0x404e8a
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x404e8a
lea esi, [eax + eax]
mov eax, esi
call fcn.00408090
mov eax, esp
push ebx
push esi
push dword [ebp - 0x10]
push eax
call fcn.00401136
mov esi, eax
cmp esi, ebx
je 0x404e8a
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
cmp al, bl
jne 0x404e6e
sub ecx, edx
je 0x404e8a
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x404e8a
call eax
mov dword [ebp - 0x24], eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x18]
call fcn.00402090
jmp 0x404f46
push 0x7fe
lea eax, [ebp - 0xa]
push ebx
push eax
mov word [ebp - 0xc], bx
call fcn.00407ff0
push dword [ebp - 0x20]
lea eax, [ebp - 0xc]
push dword [ebp - 0x10]
push esi
push str.__s___s___s
push edi
push 0x400
push eax
call fcn.0040806a
mov eax, dword [0x41705c]
mov esi, dword [0x4185b4]
add esp, 0x28
push 0x800
push 0x801
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
call fcn.00402b7b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
lea ecx, [ebp - 0x14]
call fcn.00403a36
push 0x38
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.00407ff0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x50], eax
add esp, 0xc
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x64], 0x3c
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], str.runas
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x44], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea ecx, [ebp - 0x14]
call fcn.00402090
lea ecx, [ebp - 0x20]
call fcn.00402090
lea ecx, [ebp - 0x10]
call fcn.00402090
lea ecx, [ebp - 0x1c]
call fcn.00402090
jmp 0x404fba
mov esi, 0x418548
mov ecx, esi
call fcn.00401b9a
push 1
push 4
mov ecx, esi
call fcn.00401fca
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x404f9b
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x80]
push eax
call edi
test eax, eax
jne 0x404f87
mov ecx, esi
call fcn.0040200c
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x418548
call fcn.00401f78
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x24]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x7fc]
xor ecx, ebp
call fcn.004073a6
add ebp, 0x800
leave
ret 0x10