Function at 0x40629e
Capabilities:
Accept command line arguments
Create thread
Print debug messages
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 0x4184a0
push 0x64
push dword [ebp + 8]
mov ebx, 0x41ffc8
mov ecx, ebx
mov dword [ebp + 0x10], eax
push 0x4205c0
call fcn.0040663e
mov esi, 0x41e838
lea edi, [ebp - 0xc]
lea eax, [ebp - 0xc]
mov dword [0x420170], 1
movsw word es:[edi], word [esi]
push eax
push dword [ebp + 0x10]
movsb byte es:[edi], byte [esi]
call fcn.00405fd6
xor esi, esi
pop ecx
cmp eax, esi
pop ecx
mov dword [ebp + 0x10], eax
je 0x40634a
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.UnregServer
push dword [ebp + 0x10]
call edi
test eax, eax
je 0x406372
push str.RegServer
push dword [ebp + 0x10]
call edi
test eax, eax
je 0x40637e
push str.Service
push dword [ebp + 0x10]
call edi
test eax, eax
jne 0x406335
push 1
push 1
mov ecx, ebx
call fcn.004064d2
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
call fcn.00405fd6
pop ecx
cmp eax, esi
pop ecx
mov dword [ebp + 0x10], eax
jne 0x406300
push str.OKGSVR
push 1
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
je 0x40638d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40638d
xor eax, eax
jmp 0x4064cb
mov ecx, ebx
call fcn.00406605
jmp 0x4064cb
push esi
push 1
mov ecx, ebx
call fcn.004064d2
jmp 0x4064cb
mov edi, 0x20019
lea ecx, [ebp - 4]
push edi
push str.AppID
push 0x80000000
mov dword [ebp - 4], esi
call fcn.004069f9
cmp eax, esi
mov dword [ebp + 0x10], eax
je 0x4063c5
cmp dword [ebp - 4], esi
je 0x4063bd
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x10]
jmp 0x4064cb
push edi
push str.D8B3816B_85A2_4A55_BD84_3C2DF1B49C9B
push dword [ebp - 4]
lea ecx, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.004069f9
mov edi, eax
cmp edi, esi
je 0x406403
cmp dword [ebp - 8], esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4063f2
push dword [ebp - 8]
call ebx
mov dword [ebp - 8], esi
cmp dword [ebp - 4], esi
je 0x4063fc
push dword [ebp - 4]
call ebx
mov eax, edi
jmp 0x4064cb
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 [0x420170], esi
jne 0x40643f
mov dword [0x420170], 1
lea eax, [ebp + 0x10]
push eax
call fcn.00403d14
pop ecx
mov edi, 0x420198
push eax
mov ecx, edi
call fcn.00410522
lea ecx, [ebp + 0x10]
call fcn.00410479
mov eax, dword [0x420198]
push 0x4205f4
push eax
call fcn.004085a8
pop ecx
test eax, eax
pop ecx
jne 0x406480
push str.public
mov ecx, edi
call fcn.00410572
push dword [0x420198]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push 0x406886
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, ebx
call fcn.00406835
cmp dword [ebp - 8], esi
mov ebx, dword [0x42015c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4064bf
push dword [ebp - 8]
call edi
mov dword [ebp - 8], esi
cmp dword [ebp - 4], esi
je 0x4064c9
push dword [ebp - 4]
call edi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x10