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

Disassembly:
push 0x68
mov eax, 0x43570a
call fcn.00412414
lea ecx, [ebp - 0x74]
call fcn.00408249
push dword [ebp + 8]
xor ebx, ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.00402503
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00408331
pop ecx
pop ecx
test eax, eax
je 0x4086b6
push dword [ebp - 0x28]
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
call fcn.00406738
push dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
push esi
call fcn.004066d1
add esp, 0x10
mov edi, eax
cmp dword [ebp - 0x10], ebx
je 0x4086ab
cmp edi, ebx
je 0x4086a2
lea ecx, [ebp - 0x24]
call fcn.004024cc
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.004024cc
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x68]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.00407d8c
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x64]
lea ecx, [ebp - 0x44]
call fcn.00407d8c
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x34]
call fcn.004078ac
test al, al
jne 0x40868a
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x34]
call fcn.00407851
push eax
lea ecx, [ebp - 0x24]
call fcn.004021c3
lea ecx, [ebp - 0x24]
call fcn.004021b8
test al, al
jne 0x40865f
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp - 0x20]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40865f
cmp dword [ebp - 0x14], 1
jne 0x40863a
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x10]
call fcn.00406784
add esp, 0xc
test eax, eax
je 0x40865f
push dword [ebp - 0x38]
call fcn.00411ca0
pop ecx
inc eax
push eax
push dword [ebp - 0x38]
push 1
jmp 0x408658
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x10]
call fcn.004067ef
add esp, 0xc
test eax, eax
je 0x40865f
push 4
lea eax, [ebp - 0x18]
push eax
push 4
push ebx
push dword [ebp - 0x20]
push edi
call esi
lea ecx, [ebp - 0x34]
call fcn.0040787d
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x64]
lea ecx, [ebp - 0x44]
call fcn.00407d8c
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x34]
call fcn.004078ac
test al, al
je 0x4085d8
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.00402707
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00402707
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
je 0x4086b6
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x5c]
call fcn.00408249
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.0040842c
pop ecx
pop ecx
test eax, eax
je 0x4087a1
lea ecx, [ebp - 0x24]
call fcn.004024cc
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.004024cc
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.004024cc
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x50]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 7
call fcn.00407d8c
jmp 0x40875e
lea ecx, [ebp - 0x3c]
call fcn.00407851
push eax
lea ecx, [ebp - 0x24]
call fcn.004021c3
lea ecx, [ebp - 0x24]
call fcn.004021b8
test al, al
jne 0x408756
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
call fcn.004064f9
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x20]
push dword [ebp + 0xc]
call fcn.004064f9
push dword [ebp - 0x30]
push dword [ebp - 0x18]
call fcn.0040851a
add esp, 0x20
lea ecx, [ebp - 0x3c]
call fcn.0040787d
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x44]
call fcn.00407d8c
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004078ac
test al, al
je 0x40870d
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.00402707
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.00402707
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call fcn.00402707
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00407f7f
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.00402707
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.00407f7f
xor eax, eax
inc eax
call fcn.004124ec
ret