Function at 0x408430
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x10b
push 0
push 0
dec ecx
jne 0x408438
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4087aa
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00405c60
mov edi, eax
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x1c], 0x7ff
lea eax, [ebp - 0x14]
push eax
push 0x4087b8
push 0x80000002
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x40849b
lea eax, [ebp - 0x14]
push eax
push 0x4087b8
push 0x80000001
call sub.advapi32.dll_RegSetValueExA
test eax, eax
jne 0x40866c
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x4087dc
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_CharNextA
test eax, eax
jne 0x4084f8
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x828]
lea edx, [ebp - 0x820]
mov ecx, 0x800
call fcn.00403238
mov eax, dword [ebp - 0x828]
mov ecx, dword [ebp - 0x1c]
xor edx, edx
call fcn.0040347c
mov edx, dword [ebp - 0x824]
mov eax, edi
call fcn.00405c80
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x4087ec
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_CharNextA
test eax, eax
jne 0x408555
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x830]
lea edx, [ebp - 0x820]
mov ecx, 0x800
call fcn.00403238
mov eax, dword [ebp - 0x830]
mov ecx, dword [ebp - 0x1c]
xor edx, edx
call fcn.0040347c
mov edx, dword [ebp - 0x82c]
mov eax, edi
call fcn.00405c80
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x4087fc
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_CharNextA
test eax, eax
jne 0x4085b2
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x838]
lea edx, [ebp - 0x820]
mov ecx, 0x800
call fcn.00403238
mov eax, dword [ebp - 0x838]
mov ecx, dword [ebp - 0x1c]
xor edx, edx
call fcn.0040347c
mov edx, dword [ebp - 0x834]
mov eax, edi
call fcn.00405c80
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x40880c
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_CharNextA
test eax, eax
jne 0x40860f
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x840]
lea edx, [ebp - 0x820]
mov ecx, 0x800
call fcn.00403238
mov eax, dword [ebp - 0x840]
mov ecx, dword [ebp - 0x1c]
xor edx, edx
call fcn.0040347c
mov edx, dword [ebp - 0x83c]
mov eax, edi
call fcn.00405c80
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x40881c
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_CharNextA
test eax, eax
jne 0x40866c
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0x848]
lea edx, [ebp - 0x820]
mov ecx, 0x800
call fcn.00403238
mov eax, dword [ebp - 0x848]
mov ecx, dword [ebp - 0x1c]
xor edx, edx
call fcn.0040347c
mov edx, dword [ebp - 0x844]
mov eax, edi
call fcn.00405c80
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegOpenKeyA
cmp dword [edi + 0x1c], 1
jge 0x408687
mov eax, edi
call fcn.004049c8
jmp 0x408784
call fcn.00405c60
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x1c]
dec eax
test eax, eax
jb 0x40877c
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0x84c]
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405cec
mov eax, dword [ebp - 0x84c]
lea edx, [ebp - 8]
call fcn.00408078
test al, al
je 0x408770
mov eax, dword [ebp - 8]
mov esi, dword [eax + 0x1c]
dec esi
test esi, esi
jb 0x408770
inc esi
xor ebx, ebx
lea ecx, [ebp - 0x850]
mov eax, dword [ebp - 8]
mov edx, ebx
call fcn.00405cec
mov eax, dword [ebp - 0x850]
push eax
lea ecx, [ebp - 0x854]
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405cec
mov eax, dword [ebp - 0x854]
lea ecx, [ebp - 0x10]
pop edx
call fcn.0040780c
mov eax, dword [ebp - 0x10]
call fcn.00403274
test eax, eax
jle 0x408768
push 0x408834
lea ecx, [ebp - 0x85c]
mov eax, dword [ebp - 8]
mov edx, ebx
call fcn.00405cec
push dword [ebp - 0x85c]
push 0x408848
push 0x408854
push dword [ebp - 0x10]
lea eax, [ebp - 0x858]
mov edx, 5
call fcn.00403334
mov edx, dword [ebp - 0x858]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00405c80
inc ebx
dec esi
jne 0x4086de
inc dword [ebp - 0xc]
dec dword [ebp - 0x20]
jne 0x4086a6
mov eax, dword [ebp - 8]
call fcn.004049c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4087b1
lea eax, [ebp - 0x85c]
mov edx, 0xf
call fcn.004030f8
lea eax, [ebp - 0x10]
call fcn.004030d4
ret