Function at 0x873ff
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], 0x104
cmp eax, edi
je 0x8741d
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x87426
mov dword [eax], edi
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x87430
mov byte [eax], 0
mov eax, dword [ebp + 0x18]
cmp eax, edi
je 0x8743a
mov byte [eax], 0
call fcn.00086dc2
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x10]
push eax
push 0x20119
push edi
push 0xc8
mov ebx, 0xe4
push ebx
push 0x22
push 0x906e8
mov esi, 0x922f8
push esi
call fcn.00082544
add esp, 0x14
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0x100
push edi
push esi
test eax, eax
jne 0x877f9
call fcn.0008ee2a
add esp, 0xc
push dword [ebp - 0xc]
lea eax, [ebp - 0x228]
push eax
mov dword [ebp - 0x14], edi
push edi
jmp 0x87703
lea eax, [ebp - 0x228]
push eax
call fcn.00086cad
pop ecx
test eax, eax
je 0x876ed
lea eax, [ebp - 0x228]
push eax
call fcn.0008f1a5
xor eax, 0x55555555
pop ecx
cmp eax, dword [ebp - 0x1c]
jne 0x876ed
lea eax, [ebp - 8]
push eax
push 0x101
push edi
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x87727
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x20]
push eax
push edi
push 0xc8
push ebx
push 0xa
push 0x906dc
push esi
call fcn.00082544
add esp, 0x14
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
jne 0x87727
lea eax, [ebp - 0x228]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x8753f
sub eax, edx
cmp dword [ebp - 0xc], eax
jbe 0x87755
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.0008ee95
pop ecx
pop ecx
mov dword [ebp - 4], eax
cmp eax, edi
je 0x87755
push 0xc8
push ebx
push 5
mov edi, 0x90694
push edi
push esi
call fcn.00082544
push eax
push dword [ebp - 4]
call fcn.0008ee95
add esp, 0x1c
test eax, eax
je 0x87753
cmp byte [ebp - 0x124], 0x22
jne 0x875c8
lea eax, [ebp - 0x123]
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.0008ef00
lea eax, [ebp - 0x124]
push 0x22
push eax
call fcn.0008ed03
add esp, 0x10
jmp 0x875d8
lea eax, [ebp - 0x124]
push 0x20
push eax
call fcn.0008ed03
pop ecx
pop ecx
test eax, eax
je 0x875df
mov byte [eax], 0
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.0008ee95
push 0xc8
push ebx
push 5
push edi
push esi
mov dword [ebp - 4], eax
call fcn.00082544
push eax
push dword [ebp - 4]
call fcn.0008ee95
push 0x100
push 0
push esi
mov dword [ebp - 0x18], eax
call fcn.0008ee2a
mov eax, dword [ebp + 8]
add esp, 0x30
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x87626
mov ecx, dword [ebp - 4]
sub eax, edi
mov edi, eax
lea eax, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x87637
sub ecx, eax
cmp edi, ecx
jle 0x8765c
push dword [ebp - 4]
sub edi, ecx
add edi, dword [ebp + 8]
push edi
call fcn.0008ed77
pop ecx
pop ecx
test eax, eax
je 0x87769
mov edi, dword [ebp - 0x18]
push 0x5c
push dword [ebp - 4]
mov byte [edi], 0
call fcn.0008ed23
pop ecx
pop ecx
mov dword [ebp - 4], eax
test eax, eax
jne 0x87680
lea eax, [ebp - 0x124]
mov dword [ebp - 4], eax
jmp 0x87683
inc dword [ebp - 4]
push dword [ebp - 4]
call fcn.00086cad
pop ecx
test eax, eax
je 0x87722
push dword [ebp - 4]
call fcn.0008f1a5
mov edi, eax
mov eax, dword [ebp - 0x18]
xor edi, 0x55555555
mov ebx, edi
shr ebx, 8
push edi
and ebx, 0xff
mov byte [eax], 0x2e
call fcn.00086c96
pop ecx
pop ecx
test eax, eax
jne 0x876d8
lea eax, [ebx - 0x51]
cmp eax, 0x2e
ja 0x876d8
and edi, 0xff
cmp edi, 0x10
jl 0x8777e
mov ebx, 0xe4
xor edi, edi
cmp dword [ebp - 8], edi
je 0x876ed
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x14]
mov eax, 0x104
push eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x874a2
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x87801
mov byte [edi], 0x2e
jmp 0x876dd
cmp eax, 5
jne 0x87755
lea eax, [ebp - 0x228]
push eax
push dword [ebp + 0x14]
call fcn.0008ef00
pop ecx
pop ecx
cmp dword [ebp - 8], edi
je 0x8774b
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 4
pop esi
jmp 0x877ec
xor edi, edi
push 0x100
push edi
push esi
call fcn.0008ee2a
add esp, 0xc
jmp 0x876df
lea eax, [ebp - 0x228]
push eax
push dword [ebp + 0x14]
call fcn.0008ef00
pop ecx
pop ecx
xor esi, esi
jmp 0x877e3
lea eax, [ebp - 0x24c]
push eax
xor edi, edi
push edi
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
test eax, eax
je 0x8779a
inc edi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x877a3
mov dword [eax], ebx
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x877c4
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x124]
sub esi, eax
push esi
push eax
push ebx
call fcn.0008ee08
add esp, 0xc
mov byte [esi + ebx], 0
cmp dword [ebp + 0x18], 0
je 0x877d7
push dword [ebp - 4]
push dword [ebp + 0x18]
call fcn.0008ef00
pop ecx
pop ecx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x877e0
mov dword [eax], edi
push 3
pop esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x87804
call fcn.0008ee2a
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret