Function at 0x4018a0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x840
lea eax, [esp]
push eax
push 0xf003f
push 0
push 0x401464
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4018cf
xor eax, eax
add esp, 0x840
ret
push ebx
push ebp
push esi
lea ecx, [esp + 0x10]
push edi
lea edx, [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push 0x40145c
push ecx
mov dword [esp + 0x2c], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, dword [sym.imp.KERNEL32.DLL_SetLastError]
mov esi, eax
push esi
call ebx
test esi, esi
je 0x401916
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0x50]
lea esi, [esp + 0x50]
test al, al
je 0x401949
push 0x401158
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcmpiA]
test eax, eax
je 0x4019e9
push 0
push esi
call sub.MSVCRT.dll_strchr
add esp, 8
inc eax
mov esi, eax
cmp byte [esi], 0
jne 0x401922
mov ebp, dword [sym.imp.KERNEL32.DLL_lstrlenA]
push 0x401158
call ebp
push 0x401158
mov byte [eax + 0x401159], 0
call ebp
mov ecx, eax
mov eax, dword [esp + 0x14]
add ecx, 2
mov esi, 0x401158
mov edx, ecx
lea edi, [esp + eax + 0x4f]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x401158
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebp
mov ecx, dword [esp + 0x14]
lea edx, [eax + ecx + 1]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x50]
push edx
push eax
push 7
push 0
push 0x40145c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x10]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call ebx
push 0x401158
call ebp
inc eax
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
push 0x401158
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x840
ret
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
xor edi, edi
push edi
lea eax, [esp + 0x20]
push 0x40144c
push eax
call ebp
mov al, byte [esp + 0x5c]
add esp, 0xc
test al, al
lea esi, [esp + 0x50]
je 0x401a35
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcmpiA]
test eax, eax
je 0x401a32
push 0
push esi
call sub.MSVCRT.dll_strchr
add esp, 8
inc eax
mov esi, eax
cmp byte [esi], 0
je 0x401a35
jmp 0x401a0d
inc edi
jmp 0x4019f1
mov ebp, dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea edx, [esp + 0x1c]
push edx
call ebp
mov byte [esp + eax + 0x1d], 0
lea eax, [esp + 0x1c]
push eax
call ebp
mov edx, dword [esp + 0x14]
mov ecx, eax
add ecx, 2
lea esi, [esp + 0x1c]
mov eax, ecx
lea edi, [esp + edx + 0x4f]
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 + 0x1c]
push ecx
call ebp
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
lea eax, [eax + edx + 1]
mov edx, dword [esp + 0x10]
push eax
push ecx
push 7
push 0
push 0x40145c
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call ebx
lea ecx, [esp + 0x1c]
push ecx
call ebp
inc eax
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
lea edx, [esp + 0x1c]
mov esi, eax
push edx
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x840
ret