Function at 0x403870
Capabilities:
Set registry value

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push 0x3f2
call fcn.00412eae
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
lea eax, [esp + 0x14]
push eax
push 0xf003f
push 0
push str.SOFTWARE
push 0x80000002
call esi
lea ecx, [esp + 0x20]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.rcdrvinfo
push eax
call edi
mov ecx, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call ebp
mov edx, dword [esp + 0x14]
push edx
call ebp
lea eax, [esp + 0x14]
push eax
push 0xf003f
push 0
push str.SOFTWARE_rcdrvinfo
push 0x80000002
call esi
lea ecx, [esp + 0x20]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.geniusdog
push eax
call edi
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push 4
push ecx
push 4
push 0
push str.build_no
push edx
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, 0x41c15c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x28]
push ecx
push 1
push eax
push str.product_time
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x10]
push eax
call ebp
mov ecx, dword [esp + 0x14]
push ecx
call ebp
mov edx, dword [0x41d8a8]
lea eax, [edx - 4]
cmp eax, 4
ja case.default.0x4039ab
jmp dword [eax*4 + 0x403c84]
mov eax, dword [esp + 0x128]
push 0
push eax
call fcn.00401870
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 4
mov ecx, dword [esp + 0x128]
push 1
push ecx
call fcn.00401870
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 4
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call esi
mov edx, dword [ebx + 0x1c]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 1
push 0x402
push edx
call edi
push 0x7d0
call esi
mov eax, dword [ebx + 0x1c]
push 0
push 2
push 0x402
push eax
call edi
push 0xbb8
call esi
mov ecx, dword [ebx + 0x1c]
push 0
push 3
push 0x402
push ecx
call edi
push 0xbb8
call esi
mov edx, dword [ebx + 0x1c]
push 0
push 4
push 0x402
push edx
call edi
mov eax, dword [esp + 0x128]
push 0
push eax
call fcn.00401c30
add esp, 8
mov ebp, eax
push 0x7d0
call esi
mov ecx, dword [ebx + 0x1c]
push 0
push 1
push 0x402
push ecx
call edi
push 0x7d0
call esi
mov edx, dword [ebx + 0x1c]
push 0
push 2
push 0x402
push edx
call edi
push 0xbb8
call esi
mov eax, dword [ebx + 0x1c]
push 0
push 3
push 0x402
push eax
call edi
push 0xbb8
call esi
mov ecx, dword [ebx + 0x1c]
push 0
push 4
push 0x402
push ecx
call edi
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 4
mov ebp, dword [esp + 0x128]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
cmp ebp, 2
je 0x403aec
cmp ebp, 3
jne 0x403b44
push 0x7d0
call esi
mov edx, dword [ebx + 0x1c]
push 0
push 1
push 0x402
push edx
call edi
push 0x7d0
call esi
mov eax, dword [ebx + 0x1c]
push 0
push 2
push 0x402
push eax
call edi
push 0xbb8
call esi
mov ecx, dword [ebx + 0x1c]
push 0
push 3
push 0x402
push ecx
call edi
push 0xbb8
call esi
mov edx, dword [ebx + 0x1c]
push 0
push 4
push 0x402
push edx
call edi
push 1
push ebp
call fcn.00401c30
add esp, 8
cmp ebp, 2
mov dword [esp + 0x18], eax
je 0x403bf3
jmp 0x403bea
mov ebp, dword [esp + 0x128]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
cmp ebp, 2
je 0x403b7e
cmp ebp, 3
jne 0x403bd6
push 0x7d0
call esi
mov edx, dword [ebx + 0x1c]
push 0
push 1
push 0x402
push edx
call edi
push 0x7d0
call esi
mov eax, dword [ebx + 0x1c]
push 0
push 2
push 0x402
push eax
call edi
push 0xbb8
call esi
mov ecx, dword [ebx + 0x1c]
push 0
push 3
push 0x402
push ecx
call edi
push 0xbb8
call esi
mov edx, dword [ebx + 0x1c]
push 0
push 4
push 0x402
push edx
call edi
push 2
push ebp
call fcn.00401c30
add esp, 8
cmp ebp, 2
mov dword [esp + 0x18], eax
je 0x403bf3
cmp ebp, 3
jne 0x403c75
mov eax, dword [ebx + 0x1c]
push 0
push 5
push 0x402
push eax
call edi
push 0x7d0
call esi
mov ecx, dword [ebx + 0x1c]
push 0
push 6
push 0x402
push ecx
call edi
push 0x7d0
call esi
mov edx, dword [ebx + 0x1c]
push 0
push 7
push 0x402
push edx
call edi
push 0x7d0
call esi
mov eax, dword [ebx + 0x1c]
push 0
push 8
push 0x402
push eax
call edi
push 0x7d0
call esi
mov ecx, dword [ebx + 0x1c]
push 0
push 9
push 0x402
push ecx
call edi
push 0x7d0
call esi
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 4