Function at 0x40644a
Capabilities:
Accept command line arguments
Create thread
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0x4194a0
push 0x64
push dword [ebp + 8]
mov ebx, 0x420ee0
mov ecx, ebx
mov dword [ebp + 0x10], eax
push 0x4214f8
call fcn.004067e3
mov esi, 0x41f738
lea edi, [ebp - 0xc]
lea eax, [ebp - 0xc]
mov dword [0x421088], 1
movsw word es:[edi], word [esi]
push eax
push dword [ebp + 0x10]
movsb byte es:[edi], byte [esi]
call fcn.00406182
xor esi, esi
pop ecx
cmp eax, esi
pop ecx
mov dword [ebp + 0x10], eax
je 0x4064f6
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.UnregServer
push dword [ebp + 0x10]
call edi
test eax, eax
je 0x40651e
push str.RegServer
push dword [ebp + 0x10]
call edi
test eax, eax
je 0x40652a
push str.Service
push dword [ebp + 0x10]
call edi
test eax, eax
jne 0x4064e1
push 1
push 1
mov ecx, ebx
call fcn.00406677
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
call fcn.00406182
pop ecx
cmp eax, esi
pop ecx
mov dword [ebp + 0x10], eax
jne 0x4064ac
push str.91DOS
push 1
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
je 0x406539
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x406539
xor eax, eax
jmp 0x406670
mov ecx, ebx
call fcn.004067aa
jmp 0x406670
push esi
push 1
mov ecx, ebx
call fcn.00406677
jmp 0x406670
mov edi, 0x20019
lea ecx, [ebp - 4]
push edi
push str.AppID
push 0x80000000
mov dword [ebp - 4], esi
call fcn.00406bfd
cmp eax, esi
mov dword [ebp + 0x10], eax
je 0x406571
cmp dword [ebp - 4], esi
je 0x406569
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x10]
jmp 0x406670
push edi
push str.D8B3816B_85A2_4A55_BD84_3C2DF1B49C9B
push dword [ebp - 4]
lea ecx, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.00406bfd
mov edi, eax
cmp edi, esi
je 0x4065af
cmp dword [ebp - 8], esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40659e
push dword [ebp - 8]
call ebx
mov dword [ebp - 8], esi
cmp dword [ebp - 4], esi
je 0x4065a8
push dword [ebp - 4]
call ebx
mov eax, edi
jmp 0x406670
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x104
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp + 0x10]
push eax
push esi
push str.LocalService
mov dword [ebp + 0x10], esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, esi
mov dword [0x421088], esi
jne 0x4065eb
mov dword [0x421088], 1
lea eax, [ebp + 0x10]
push eax
call fcn.00403daf
pop ecx
mov edi, 0x4210cc
push eax
mov ecx, edi
call fcn.0041057b
lea ecx, [ebp + 0x10]
call fcn.004104d2
mov eax, dword [0x4210cc]
push 0x420ec0
push eax
call fcn.00407fdf
pop ecx
test eax, eax
pop ecx
jne 0x40662c
push str.public
mov ecx, edi
call fcn.004105cb
call fcn.00405358
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push 0x406a2b
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, ebx
call fcn.004069da
cmp dword [ebp - 8], esi
mov ebx, dword [0x421074]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x406664
push dword [ebp - 8]
call edi
mov dword [ebp - 8], esi
cmp dword [ebp - 4], esi
je 0x40666e
push dword [ebp - 4]
call edi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x10