Function at 0x404636
Capabilities:
Accept command line arguments
Create process on windows
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x7f8]
sub esp, 0x878
mov eax, dword [0x416450]
xor eax, ebp
mov dword [ebp + 0x7f4], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0
mov dword [ebp - 0x18], eax
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x4113f8
push dword [ebp + 0x800]
mov ebx, 0x417488
push section..data
mov ecx, ebx
call fcn.004018d5
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, 0x411998
lea edi, [ebp + 0x7ec]
movsd dword es:[edi], dword [esi]
mov dword [0x4174b8], eax
lea eax, [ebp + 0x7ec]
push eax
push dword [ebp - 0x18]
movsw word es:[edi], word [esi]
xor esi, esi
mov dword [ebp - 0x20], esi
call fcn.00401049
pop ecx
pop ecx
mov edi, eax
jmp 0x404738
push str.UnregServer
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x404745
push str.RegServer
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x404761
push str.Embedding
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4048c2
mov eax, dword [0x41605c]
push str.runasAdmin
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push 0x411938
push eax
call fcn.004045b2
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 + 0x7ec]
push eax
push edi
je 0x404778
call fcn.00401049
pop ecx
pop ecx
lea ecx, [ebp - 0x1c]
mov edi, eax
call fcn.00401ff8
cmp edi, esi
jne 0x4046b7
jmp 0x40490f
push esi
push esi
push 0x64
push ebx
call fcn.00404325
push esi
push 1
mov ecx, ebx
call fcn.0040454d
mov dword [ebp - 0x20], eax
jmp 0x40490f
push esi
push 1
push 0x64
push ebx
call fcn.00404325
push esi
push 1
mov ecx, ebx
call fcn.004044e8
jmp 0x404759
call fcn.00401049
pop ecx
mov edi, eax
pop ecx
mov dword [ebp - 0x28], edi
call fcn.004051be
test eax, eax
je 0x404833
lea eax, [ebp - 0x18]
push str.AddressBar.dll
push eax
call fcn.0040505e
pop ecx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004045c5
lea ecx, [ebp - 0x18]
call fcn.00401ff8
push dword [ebp - 0x24]
call fcn.00404e9d
test eax, eax
pop ecx
je 0x40482b
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, esi
mov dword [ebp - 0x18], eax
je 0x40482b
cmp edi, esi
je 0x404822
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x404822
lea edi, [eax + eax]
mov eax, edi
call fcn.004068c0
mov eax, esp
push esi
push edi
push dword [ebp - 0x28]
push eax
call fcn.00401136
mov edi, eax
cmp edi, esi
je 0x404822
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404804
sub ecx, edx
je 0x404822
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x404822
call eax
mov dword [ebp - 0x20], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x24]
jmp 0x4048b3
push 0x7fe
lea eax, [ebp - 0x12]
push esi
push eax
mov word [ebp - 0x14], si
call fcn.00406820
push edi
push str.runasAdmin
push str.__s___s
push 0xffffffffffffffff
lea eax, [ebp - 0x14]
push 0x400
push eax
call fcn.0040689a
lea eax, [ebp - 0x18]
push eax
call fcn.004050b8
push 0x38
lea eax, [ebp - 0x60]
push esi
push eax
call fcn.00406820
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x50], eax
add esp, 0x34
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x64], 0x3c
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], str.runas
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x44], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea ecx, [ebp - 0x18]
call fcn.00401ff8
lea ecx, [ebp - 0x1c]
call fcn.00401ff8
jmp 0x40490f
mov ecx, ebx
call fcn.00401b56
push 1
push 4
mov ecx, ebx
call fcn.00401f86
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x4048f0
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 esi
push esi
push esi
lea eax, [ebp - 0x80]
push eax
call edi
test eax, eax
jne 0x4048dc
mov ecx, ebx
call fcn.00401fc8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebx
call fcn.00401f34
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x20]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x7f4]
xor ecx, ebp
call fcn.00405c36
add ebp, 0x7f8
leave
ret 0x10