Function at 0x408ac1
Capabilities:
Accept command line arguments
Set registry value

Disassembly:
mov eax, 0x45fa63
call fcn.0043c274
sub esp, 0xb4
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x14]
mov edi, 0xf003f
push eax
push edi
push ebx
mov esi, SysReAllocString
push 0x476c1c
push esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x408be9
lea ecx, [ebp - 0x18]
call fcn.00408f03
mov ecx, dword [ebp - 0x14]
cmp eax, ebx
mov dword [ebp - 0x18], ecx
jne 0x408be9
mov ecx, dword [0x47e40c]
lea eax, [ebp - 0x48]
push eax
call fcn.004034e5
lea eax, [ebp - 0x1d]
push ebx
push eax
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 1
mov dword [ebp - 0x98], 0x467594
mov dword [ebp - 0x78], 0x46758c
call fcn.00401c77
mov eax, dword [ebp - 0x40]
mov byte [ebp - 4], 2
cmp eax, ebx
jne 0x408b60
mov eax, 0x467588
push eax
lea eax, [ebp - 0x98]
push 0x476bf8
push eax
call fcn.0040566d
add esp, 0xc
lea ecx, [ebp - 0x70]
push 1
push dword [ebp + 8]
call fcn.0040a501
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x14], 0x467588
cmp eax, ebx
je 0x408b96
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp + 8], 0x4675fc
cmp eax, ebx
je 0x408ba7
mov dword [ebp + 8], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
push 1
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x70]
call fcn.0040604e
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 1
call fcn.0040125c
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.0040125c
mov eax, dword [ebp - 0x1c]
cmp byte [eax + 0x100], bl
jne 0x408c05
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00408f03
jmp 0x408edd
mov dword [ebp - 0x10], ebx
lea eax, [ebp + 8]
mov byte [ebp - 4], 3
push eax
push edi
push ebx
push 0x476b94
push esi
mov dword [ebp + 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x408c37
lea ecx, [ebp - 0x10]
call fcn.00408f03
mov ecx, dword [ebp + 8]
cmp eax, ebx
mov dword [ebp - 0x10], ecx
je 0x408c71
lea eax, [ebp - 0x14]
mov dword [ebp + 8], ebx
push eax
lea eax, [ebp + 8]
push eax
push ebx
push edi
push ebx
push ebx
push ebx
push 0x476b94
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x408ec0
lea ecx, [ebp - 0x10]
call fcn.00408f03
mov ecx, dword [ebp + 8]
cmp eax, ebx
mov dword [ebp - 0x10], ecx
jne 0x408ec0
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x48]
push 0x12
push edx
mov ecx, dword [eax + 0xc8]
mov eax, dword [ecx]
call dword [eax + 0x1c]
cmp dword [ebp - 0x3c], ebx
mov byte [ebp - 4], 4
jne 0x408ca6
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp eax, ebx
jne 0x408c9d
mov eax, 0x47e390
push eax
lea ecx, [ebp - 0x48]
call fcn.00401e12
lea eax, [ebp + 0xb]
push 1
push eax
push 0x476370
lea ecx, [ebp - 0xc0]
call fcn.00401779
lea eax, [ebp - 0xc0]
lea ecx, [ebp - 0x48]
push eax
mov byte [ebp - 4], 5
call fcn.0040a43c
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 4
call fcn.0040125c
mov ecx, dword [0x47e40c]
lea eax, [ebp - 0x70]
push eax
call fcn.00403615
lea eax, [ebp - 0x98]
push ebx
push eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 6
call fcn.00405588
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0x6c]
neg eax
sbb eax, eax
push ebx
and eax, ecx
lea ecx, [ebp - 0x44]
push eax
mov byte [ebp - 4], 7
call fcn.0040b5c3
mov dword [ebp + 8], eax
lea eax, [ebp - 0x98]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x94]
and eax, ecx
push ebx
push eax
lea ecx, [ebp - 0x44]
call fcn.0040b5c3
mov esi, 0x476b88
mov edi, eax
push esi
mov dword [ebp - 0x1c], edi
call fcn.0043c64f
pop ecx
push eax
push ebx
push esi
lea ecx, [ebp - 0x44]
call fcn.00402334
push ebx
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.0040cb96
cmp word [eax], 0x22
je 0x408e16
cmp dword [ebp + 8], ebx
jne 0x408d75
mov edi, dword [ebp - 0x64]
jmp 0x408d92
mov eax, dword [0x4675ac]
cmp eax, edi
je 0x408d88
mov eax, dword [ebp - 0x8c]
add edi, eax
jmp 0x408d92
cmp eax, esi
lea edi, [esi + 4]
jne 0x408d92
mov edi, dword [ebp - 0x3c]
mov esi, 0x476a48
push esi
call fcn.0043c64f
pop ecx
push eax
push esi
push edi
lea ecx, [ebp - 0x44]
call fcn.0040b52f
mov eax, dword [ebp + 8]
cmp dword [0x4675ac], eax
jne 0x408e02
cmp dword [ebp - 0x1c], ebx
jne 0x408e02
mov eax, dword [ebp - 0x64]
lea ecx, [ebp - 0x70]
sub eax, dword [ebp - 0x8c]
push eax
lea eax, [ebp - 0xc0]
push ebx
push eax
call fcn.00401a77
push dword [0x4675ac]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 8
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
push ecx
push ebx
lea ecx, [ebp - 0x44]
call fcn.0040bedb
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 7
call fcn.0040125c
push esi
call fcn.0043c64f
pop ecx
push eax
push esi
push ebx
lea ecx, [ebp - 0x44]
call fcn.0040b52f
jmp 0x408e6f
mov eax, dword [ebp + 8]
cmp dword [0x4675ac], eax
jne 0x408e6f
cmp edi, 1
jne 0x408e6f
mov eax, dword [ebp - 0x64]
lea ecx, [ebp - 0x70]
sub eax, dword [ebp - 0x8c]
push eax
lea eax, [ebp - 0xc0]
push ebx
push eax
call fcn.00401a77
push dword [0x4675ac]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 9
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
push ecx
push edi
lea ecx, [ebp - 0x44]
call fcn.0040bedb
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 7
call fcn.0040125c
mov esi, dword [ebp - 0x40]
cmp esi, ebx
jne 0x408e7b
mov esi, 0x467588
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push ebx
push 0x476b58
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 6
call fcn.0040125c
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 4
call fcn.0040125c
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.0040125c
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x408ed3
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x18], ebx
je 0x408edd
push dword [ebp - 0x18]
call esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4