Function at 0x4017d0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x417d86
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [0x41f1f0]
xor eax, esp
mov dword [esp + 0x2d0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41f1f0]
xor eax, esp
push eax
lea eax, [esp + 0x2e8]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2f8]
push str.LOVEMILF
push str.SoftwareAutobahn
lea eax, [esp + 0xdc]
push str._s_s
push eax
mov esi, ecx
call dword [sym.imp.USER32.dll_wsprintfA]
xor ebx, ebx
add esp, 0x10
mov dword [esp + 0x18], vtable.CGsRegistry.0
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x2f0], ebx
call dword [0x41bd74]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
push ebx
push 0xf003f
push ebx
push 0x41b306
push ebx
lea eax, [esp + 0xf0]
push eax
push 0x80000001
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
je 0x4018ab
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x1c]
push eax
push ebp
push 1
push ebx
push str.Path
push ecx
call edi
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov edx, dword [esp + 0x2fc]
mov dword [esp + 0x14], edx
je 0x4018d0
push 4
lea ecx, [esp + 0x18]
push ecx
push 4
push ebx
push str.Type
push eax
call edi
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov dword [esp + 0x14], 0x10000
je 0x401912
push 4
lea edx, [esp + 0x18]
push edx
push 4
push ebx
push 0x41b2c8
push eax
call edi
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x401912
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [esp + 0x20]
push esi
push 1
push ebx
push str.SavePath
push eax
call edi
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov ecx, dword [esp + 0x30c]
mov dword [esp + 0x14], ecx
je 0x401933
push 4
lea edx, [esp + 0x18]
push edx
push 4
push ebx
push str.SaveType
push eax
call edi
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
push esi
mov byte [esp + 0x2f4], 1
call fcn.0040b0e0
add esp, 4
push eax
push esi
lea ecx, [esp + 0x28]
call fcn.00402b30
push esi
call fcn.0040b0e0
add esp, 4
cmp eax, ebx
je 0x40198f
cmp byte [esi + eax - 1], 0x5c
je 0x40198f
push 0x41b304
call fcn.0040b0e0
add esp, 4
push eax
push 0x41b304
lea eax, [esp + 0x28]
call fcn.00402710
cmp dword [esp + 0x38], 0x10
mov eax, dword [esp + 0x24]
jae 0x40199e
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.imagehlp.dll_MakeSureDirectoryPathExists]
xor eax, eax
cmp dword [esp + 0x300], ebx
je 0x4019b5
mov eax, 1
cmp dword [esp + 0x304], ebx
je 0x4019c1
or eax, 2
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4019e3
push 4
lea ecx, [esp + 0x18]
push ecx
push 4
push ebx
push 0x41b2cc
push eax
call edi
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov edx, dword [esp + 0x308]
mov dword [esp + 0x14], edx
je 0x401a17
push 4
lea ecx, [esp + 0x18]
push ecx
push 4
push ebx
push 0x41b2bc
push eax
call edi
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x401a17
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1c], ebx
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push str.LOVEMILF
push 0x41acfc
lea edx, [esp + 0xdc]
push str._s_s
push edx
call esi
push 0x94
lea eax, [esp + 0x50]
push ebx
push eax
call fcn.0040afd0
add esp, 0x1c
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x40], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x10]
lea ecx, [esp + 0x18]
call eax
cmp dword [esp + 0x4c], 2
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
push ebx
push 0xf003f
push ebx
push 0x41b306
lea eax, [esp + 0xec]
push ebx
mov dword [esp + 0x30], ebx
push eax
jne 0x401a9a
push 0x80000001
jmp 0x401a9f
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp dword [esp + 0x1c], ebx
je 0x401acb
push 0x41af98
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x1c]
push eax
push 0x41af98
push 1
push ebx
push str.DisplayName
push ecx
call edi
push str.LOVEMILF_UNINST.EXE
push ebp
lea edx, [esp + 0x1e4]
push str._s_s
push edx
call esi
mov eax, dword [esp + 0x2c]
add esp, 0x10
cmp eax, ebx
je 0x401b26
lea eax, [esp + 0x1dc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x1e0]
push ecx
push 1
push ebx
push str.UninstallString
push edx
call edi
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x401b26
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x38], 0x10
jb 0x401b3e
mov eax, dword [esp + 0x24]
push eax
call fcn.0040b0cd
mov eax, dword [esp + 0x20]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
mov dword [esp + 0x18], vtable.CGsRegistry.0
je 0x401b61
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0x2e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2d0]
xor ecx, esp
call fcn.0040b16b
add esp, 0x2e0
ret