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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c8b80
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x6385e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x25], 0
push 0
lea ecx, [ebp - 0x24]
call fcn.00430200
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
call fcn.00478880
movzx ecx, al
test ecx, ecx
je 0x4af877
mov dword [ebp - 0x2c], 0
jmp 0x4af793
mov edx, dword [ebp - 0x2c]
add edx, 1
mov dword [ebp - 0x2c], edx
lea ecx, [ebp - 0x24]
call fcn.004b9730
cmp dword [ebp - 0x2c], eax
jge 0x4af877
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x38]
push eax
push 0
lea ecx, [ebp - 0x30]
push ecx
push 0
mov edx, dword [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x24]
call fcn.00430700
mov ecx, eax
call fcn.004553f0
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4af872
mov edx, dword [ebp - 0x38]
push edx
call fcn.0054ea24
add esp, 4
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x4af872
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x24]
call fcn.00430700
mov ecx, eax
call fcn.004553f0
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4af82f
jmp 0x4af866
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
push 0
mov edx, dword [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x24]
call fcn.00430700
mov ecx, eax
call fcn.004553f0
push eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4af866
mov byte [ebp - 0x25], 1
mov edx, dword [ebp - 0x3c]
push edx
call fcn.0054eaee
add esp, 4
jmp 0x4af78a
push 0
lea ecx, [ebp - 0x18]
call fcn.00430200
mov byte [ebp - 4], 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
call fcn.00414060
movzx ecx, al
test ecx, ecx
je 0x4af979
mov dword [ebp - 0x40], 0
jmp 0x4af8ae
mov edx, dword [ebp - 0x40]
add edx, 1
mov dword [ebp - 0x40], edx
lea ecx, [ebp - 0x18]
call fcn.004b9730
cmp dword [ebp - 0x40], eax
jge 0x4af979
push 0
mov eax, dword [ebp - 0x40]
push eax
lea ecx, [ebp - 0x18]
call fcn.00430700
push eax
mov ecx, dword [ebp + 8]
call fcn.00414800
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x4af974
mov ecx, dword [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00430700
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00413d40
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x4af948
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x44]
push eax
call fcn.004af730
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x4af91c
mov byte [ebp - 0x25], 1
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x4af941
push 1
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x4c]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x60], eax
jmp 0x4af948
mov dword [ebp - 0x60], 0
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x54], edx
cmp dword [ebp - 0x54], 0
je 0x4af96d
push 1
mov eax, dword [ebp - 0x54]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x54]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x64], eax
jmp 0x4af974
mov dword [ebp - 0x64], 0
jmp 0x4af8a5
mov cl, byte [ebp - 0x25]
mov byte [ebp - 0x59], cl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00430250
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00430250
mov al, byte [ebp - 0x59]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret