Function at 0x4183a8
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x25c], ebx
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x41888b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
xor eax, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x20]
call fcn.004191ec
test al, al
je 0x418832
call fcn.0041d8f8
push esi
call sub.KERNEL32.dll_lstrlenW
mov ebx, eax
add ebx, ebx
add ebx, 0x29a
add ebx, 2
push edi
call sub.KERNEL32.dll_lstrlenW
add eax, eax
add ebx, eax
add ebx, 2
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x14]
push eax
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
test ebx, ebx
je 0x418832
mov eax, dword [ebp + 0x18]
cmp eax, dword [0x47dbe4]
jne 0x418470
call fcn.00416ec0
mov dword [ebp + 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx], eax
mov eax, dword [ebp + 0x18]
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [ebx + 0x30], eax
cmp byte [ebp + 0x14], 0
je 0x41848a
or dword [ebx + 0x30], 1
cmp byte [ebp + 0x10], 0
je 0x418494
or dword [ebx + 0x30], 2
mov eax, dword [0x47dc04]
add eax, 0x10000
mov dword [ebx + 0x34], eax
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebx + 0x88]
push eax
call sub.KERNEL32.dll_lstrcpyW
push esi
call sub.KERNEL32.dll_lstrlenW
mov dword [ebx + 0x290], eax
push edi
call sub.KERNEL32.dll_lstrlenW
mov dword [ebx + 0x294], eax
test esi, esi
je 0x4184da
push esi
lea eax, [ebx + 0x298]
push eax
call sub.KERNEL32.dll_lstrcpyW
test edi, edi
je 0x4184f8
push edi
lea eax, [ebx + 0x298]
mov edx, dword [ebx + 0x290]
add edx, edx
add eax, edx
add eax, 2
push eax
call sub.KERNEL32.dll_lstrcpyW
cmp byte [ebp + 0x10], 0
je 0x4187fa
lea eax, [ebp - 0x28]
push eax
push 0xf003f
push 0
lea edx, [ebp - 0x24c]
mov eax, dword [0x47dd40]
call fcn.00406ab4
mov eax, dword [ebp - 0x24c]
call fcn.0040386c
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x41881f
lea eax, [ebp - 0x2c]
push eax
push 0xf003f
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.ADVAPI32.dll_RegOpenKeyExW
test eax, eax
jne 0x4187ef
mov eax, dword [ebx]
push eax
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov esi, eax
mov edi, esi
mov edx, edi
mov eax, ebx
mov ecx, dword [ebx]
call fcn.004025d8
push 0
push 0
lea eax, [ebp - 0x250]
mov edx, dword [ebp - 4]
call fcn.00403b14
mov eax, dword [ebp - 0x250]
mov ecx, edi
mov edx, dword [ebp - 8]
call fcn.00417b0c
mov byte [ebp - 0xd], al
push esi
call sub.KERNEL32.dll_LocalFree
cmp byte [ebp - 0xd], 0
jne 0x4185b3
call fcn.00417ad0
cmp eax, dword [ebp - 8]
jne 0x4187e6
mov edi, 1
lea eax, [ebp - 0x254]
push eax
mov cl, 0x30
mov edx, 3
mov eax, edi
call fcn.0040663c
mov ecx, dword [ebp - 0x254]
lea eax, [ebp - 0x38]
mov edx, 0x4188a8
call fcn.004036b8
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 0x38]
call fcn.0040386c
push eax
mov eax, dword [ebp - 0x2c]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
test eax, eax
jne 0x418789
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebx]
jne 0x4187d9
mov eax, dword [ebp - 0x14]
push eax
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov esi, eax
lea eax, [ebp - 0x14]
push eax
push esi
push 0
push 0
mov eax, dword [ebp - 0x38]
call fcn.0040386c
push eax
mov eax, dword [ebp - 0x2c]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
test eax, eax
sete byte [ebp - 0x21]
cmp byte [ebp - 0x21], 0
je 0x418660
push esi
push edi
lea edi, [esi + 0x18]
lea esi, [ebx + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov ecx, dword [ebx]
mov edx, ebx
mov eax, esi
call fcn.004182b8
mov byte [ebp - 0x21], al
push esi
call sub.KERNEL32.dll_LocalFree
cmp byte [ebp - 0x21], 0
je 0x4187d9
call fcn.00417ad0
cmp eax, dword [ebp - 8]
jne 0x4187e6
mov eax, dword [ebp - 0x38]
call fcn.0040386c
push eax
mov eax, dword [ebp - 0x2c]
push eax
call sub.ADVAPI32.dll_RegDeleteValueA
test eax, eax
jne 0x4187e6
lea eax, [edi + 1]
cmp eax, 0x3e7
ja 0x4187e6
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x258]
push eax
mov cl, 0x30
mov edx, 3
mov eax, dword [ebp - 0x30]
call fcn.0040663c
mov ecx, dword [ebp - 0x258]
lea eax, [ebp - 0x3c]
mov edx, 0x4188a8
call fcn.004036b8
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 0x3c]
call fcn.0040386c
push eax
mov eax, dword [ebp - 0x2c]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
test eax, eax
jne 0x4187e6
mov eax, dword [ebp - 0x14]
push eax
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov esi, eax
lea eax, [ebp - 0x14]
push eax
push esi
push 0
push 0
mov eax, dword [ebp - 0x3c]
call fcn.0040386c
push eax
mov eax, dword [ebp - 0x2c]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
test eax, eax
jne 0x418757
mov eax, dword [ebp - 0x14]
push eax
push esi
push 3
push 0
mov eax, dword [ebp - 0x38]
call fcn.0040386c
push eax
mov eax, dword [ebp - 0x2c]
push eax
call sub.ADVAPI32.dll_RegSetValueExA
test eax, eax
jne 0x418757
mov eax, dword [ebp - 0x3c]
call fcn.0040386c
push eax
mov eax, dword [ebp - 0x2c]
push eax
call sub.ADVAPI32.dll_RegDeleteValueA
test eax, eax
je 0x41875b
xor eax, eax
jmp 0x41875d
mov al, 1
mov byte [ebp - 0x31], al
push esi
call sub.KERNEL32.dll_LocalFree
cmp byte [ebp - 0x31], 0
je 0x4187e6
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 0x3c]
call fcn.004034b0
inc dword [ebp - 0x30]
cmp dword [ebp - 0x30], 0x3e8
jne 0x4186a9
jmp 0x4187e6
call fcn.00417abc
cmp eax, dword [ebp - 8]
jne 0x4187e6
push 0x104
lea eax, [ebp - 0x246]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameW
lea edx, [ebx + 0x18]
lea eax, [ebp - 0x246]
mov ecx, 0x100000
call fcn.004182f8
test al, al
je 0x4187e6
mov eax, dword [ebx]
push eax
push ebx
push 3
push 0
mov eax, dword [ebp - 0x38]
call fcn.0040386c
push eax
mov eax, dword [ebp - 0x2c]
push eax
call sub.ADVAPI32.dll_RegSetValueExA
jmp 0x4187e6
inc edi
cmp edi, 0x3e8
jne 0x4185b8
mov eax, dword [ebp - 0x2c]
push eax
call sub.ADVAPI32.dll_RegCloseKey
mov eax, dword [ebp - 0x28]
push eax
call sub.ADVAPI32.dll_RegCloseKey
jmp 0x41881f
push 0
push 0
lea eax, [ebp - 0x25c]
mov edx, dword [ebp - 4]
call fcn.00403b14
mov eax, dword [ebp - 0x25c]
mov ecx, ebx
mov edx, dword [ebp - 8]
call fcn.00417b0c
mov byte [ebp - 0xd], al
call sub.KERNEL32.dll_GetLastError
mov esi, eax
push ebx
call sub.KERNEL32.dll_LocalFree
push esi
call sub.KERNEL32.dll_SetLastError
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418892
lea eax, [ebp - 0x25c]
call fcn.004039ec
lea eax, [ebp - 0x258]
mov edx, 2
call fcn.0040343c
lea eax, [ebp - 0x250]
call fcn.004039ec
lea eax, [ebp - 0x24c]
call fcn.00403418
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.0040343c
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0040343c
ret