Function at 0x402a20
Capabilities:
Accept command line arguments
Get common file path
Set registry value
Terminate process

Disassembly:
sub esp, 0x120
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
mov dword [esp + 0x20], 0x408ad8
mov dword [esp + 0x24], 0x402560
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x104
push 0x408850
push eax
mov dword [0x408b78], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, str.PrintManager
or ecx, 0xffffffff
xor eax, eax
mov dword [0x408738], ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x408ad8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp dword [esp + 0x14], 1
jbe 0x402b54
mov edx, dword [eax + 4]
push str._chk
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x402b54
mov edi, 0x408850
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x14], ecx
lea eax, [ecx - 1]
cmp eax, ebx
mov dword [esp + 0x10], eax
jbe 0x402b54
cmp byte [eax + 0x408850], 0x5c
jne 0x402b4d
inc eax
mov edi, str.test
mov dword [esp + 0x10], eax
or ecx, 0xffffffff
mov byte [eax + 0x408850], bl
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov esi, edi
mov edx, ecx
mov edi, 0x408850
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x20
mov ecx, edx
push 2
push ebx
and ecx, 3
push ebx
push 0x40000000
push 0x408850
rep movsb byte es:[edi], byte [esi]
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
dec eax
mov dword [esp + 0x10], eax
jne 0x402ae2
push 0x409d90
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
cmp word [0x409d9c], 0x39
lea eax, [esp + 0x1c]
push eax
sbb esi, esi
neg esi
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
call fcn.004026a0
test eax, eax
je 0x402c76
cmp esi, ebx
je 0x402c02
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push edx
push ebx
push 6
push ebx
push ebx
push ebx
push str.SoftwarePrintManager
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402c02
mov ecx, 0x41
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and eax, 0xffff
push eax
lea eax, [esp + 0x30]
push str.szInt_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0x24]
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x2c]
push 4
push ecx
push 4
push ebx
push edx
push eax
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x2c]
mov dword [esp + 0x14], eax
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, str._tpd_520.dat
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x20
mov ecx, edx
push 2
push ebx
and ecx, 3
push ebx
lea eax, [esp + 0x40]
push 0x40000000
rep movsb byte es:[edi], byte [esi]
push eax
call ebp
cmp eax, 0xffffffff
je 0x402c76
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x120
ret 0x10