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

Disassembly:
push 0x22c
mov eax, 0x100075cc
call fcn.1000711d
mov esi, dword [ebp + 0xc]
push 0x78
pop ecx
mov dword [ebp - 0x1e8], ecx
mov dword [ebp - 0x1cc], ecx
push 0x70
lea eax, [ecx + 8]
mov dword [ebp - 0x1f8], 0x77
add ecx, 0x15
mov dword [ebp - 0x1d4], eax
lea edx, [eax + 0x18]
mov dword [ebp - 0x1d0], eax
lea ebx, [eax + 6]
mov dword [ebp - 0x1c8], ecx
lea edi, [eax + 5]
mov dword [ebp - 0x1c0], ecx
lea ecx, [eax + 3]
mov dword [ebp - 0x1b8], eax
mov dword [ebp - 0x1b4], eax
pop eax
sub esp, 0xc
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x198], eax
add eax, 0x1d
mov dword [ebp - 0x1a4], ecx
mov dword [ebp - 0x194], ecx
mov ecx, esp
mov dword [ebp - 0x18c], eax
mov dword [ebp - 0x184], eax
mov dword [ebp - 0x174], eax
lea eax, [ebp - 0x16c]
push ecx
mov dword [ebp - 0x1a8], edx
mov dword [ebp - 0x178], edx
lea edx, [ebp - 0x1f8]
push eax
push edx
mov dword [ebp - 0x1f4], 0x24
mov dword [ebp - 0x1f0], 0x73
mov dword [ebp - 0x1ec], 0x6a
mov dword [ebp - 0x1e4], 0x7b
mov dword [ebp - 0x1e0], 0x65
mov dword [ebp - 0x1dc], 0x76
mov dword [ebp - 0x1d8], 0x69
mov dword [ebp - 0x1c4], ebx
mov dword [ebp - 0x1bc], edi
mov dword [ebp - 0x1b0], 0x9e
mov dword [ebp - 0x1ac], 0x75
mov dword [ebp - 0x1a0], 0x68
mov dword [ebp - 0x190], 0x78
mov dword [ebp - 0x188], ebx
mov dword [ebp - 0x180], edi
mov dword [ebp - 0x17c], 0x92
mov dword [ebp - 0x170], 0x87
call fcn.10004f15
lea ecx, [ebp - 0x210]
call fcn.100054ea
add esp, 0xc
xor ebx, ebx
push 0xf
pop edi
mov dword [ebp - 4], ebx
cmp dword [eax + 0x14], edi
jbe 0x10004c66
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x140]
call fcn.10001aab
lea ecx, [ebp - 0x210]
mov byte [ebp - 4], 2
call fcn.1000154c
mov edx, 0x99
mov dword [ebp - 0x160], 0x27
sub esp, 0xc
mov dword [ebp - 0x164], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x14c], 0x89
lea ecx, [edx - 0xd]
lea eax, [edx - 5]
mov dword [ebp - 0x15c], ecx
mov dword [ebp - 0x154], ecx
lea edx, [ebp - 0x164]
mov dword [ebp - 0x148], ecx
mov ecx, esp
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x150], eax
lea eax, [ebp - 0x140]
push ecx
push eax
push edx
call fcn.10004f15
lea ecx, [ebp - 0x228]
call fcn.100054ea
add esp, 0xc
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], edi
jbe 0x10004cfc
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x128]
call fcn.10001aab
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 5
call fcn.1000154c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x234], 0xff
mov dword [ebp - 0x230], ebx
test eax, eax
jne 0x10004dd5
lea eax, [ebp - 0x140]
cmp dword [ebp - 0x12c], edi
jbe 0x10004d46
mov eax, dword [ebp - 0x140]
lea ecx, [ebp - 0x22c]
push ecx
push 0x20019
push ebx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10004ecc
lea eax, [ebp - 0x128]
cmp dword [ebp - 0x114], edi
jbe 0x10004d7b
mov eax, dword [ebp - 0x128]
lea ecx, [ebp - 0x234]
push ecx
lea ecx, [ebp - 0x110]
push ecx
lea ecx, [ebp - 0x230]
push ecx
push ebx
push eax
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10004ec0
cmp dword [ebp - 0x230], 1
jne 0x10004ec0
lea eax, [ebp - 0x110]
mov byte [0x1000b51c], 1
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
pop ecx
push eax
lea eax, [ebp - 0x110]
push eax
jmp 0x10004eb6
cmp eax, 1
jne 0x10004e4f
lea eax, [ebp - 0x140]
cmp dword [ebp - 0x12c], edi
jbe 0x10004dee
mov eax, dword [ebp - 0x140]
push ebx
lea ecx, [ebp - 0x22c]
push ecx
push ebx
push 0x20006
push ebx
push ebx
push ebx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10004ecc
cmp dword [ebp - 0x114], 0xf
lea edi, [ebp - 0x128]
jbe 0x10004e28
mov edi, dword [ebp - 0x128]
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
push esi
call ebx
pop ecx
inc eax
push eax
push esi
push 1
push 0
push edi
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10004ec0
push esi
call ebx
jmp 0x10004eb3
cmp eax, 2
jne 0x10004ecc
lea eax, [ebp - 0x140]
cmp dword [ebp - 0x12c], edi
jbe 0x10004e68
mov eax, dword [ebp - 0x140]
lea ecx, [ebp - 0x22c]
push ecx
push 2
push ebx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10004ecc
lea eax, [ebp - 0x128]
cmp dword [ebp - 0x114], edi
jbe 0x10004e96
mov eax, dword [ebp - 0x128]
push eax
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x10004ec0
mov esi, 0x10008244
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
pop ecx
push eax
push esi
mov ecx, 0x1000b520
call fcn.10001605
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x128]
call fcn.1000154c
lea ecx, [ebp - 0x140]
call fcn.1000154c
call fcn.100070db
ret 8