Function at 0x46665d
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
sub esp, 0x100
lea ebp, [esp - 4]
mov eax, dword [0x4ff5d0]
xor eax, ebp
mov dword [ebp + 0x100], eax
push 0x40
mov eax, 0x4c990d
call fcn.004943c6
mov esi, dword [ebp + 0x10c]
xor ebx, ebx
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 2
call fcn.00472090
lea eax, [ebp + 0x110]
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 3
call fcn.0046663a
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.004723d0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.00472320
cmp byte [ebp - 0x19], 0xff
lea eax, [ebp - 0x20]
jne 0x4666d9
mov eax, dword [ebp - 0x20]
push eax
call fcn.004963f5
pop ecx
mov dword [0x504ae8], eax
cmp eax, ebx
jne 0x466849
lea ecx, [ebp - 0x28]
call fcn.00472090
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 5
call fcn.00472090
lea eax, [ebp + 0x118]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.00472280
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.004720a0
cmp byte [ebp - 0xd], 0xff
lea ecx, [ebp - 0x14]
jne 0x46672c
mov ecx, dword [ebp - 0x14]
cmp byte [ecx + eax - 1], 0x5c
je 0x466740
push 0x4d19a0
lea ecx, [ebp - 0x14]
call fcn.004727a0
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
mov edi, 0x504ae8
push edi
push ecx
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x3c], esp
push eax
mov dword [ebp - 0x38], ebx
call fcn.00472280
call fcn.0040fd40
add esp, 0x18
cmp eax, ebx
jne 0x4667ad
push 0x4d1a1a
mov ecx, esi
call fcn.00472340
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 6
call fcn.00472320
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 5
call fcn.00472320
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00472320
jmp 0x4668a3
cmp byte [ebp - 0x21], 0xff
mov dword [0x504ae8], ebx
lea eax, [ebp - 0x28]
jne 0x4667bf
mov eax, dword [ebp - 0x28]
push edi
push 0x20019
push ebx
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4667e4
push 0x4d1a1a
mov ecx, esi
call fcn.00472340
jmp 0x46677d
push dword [0x504ae8]
lea eax, [ebp - 0x48]
push eax
mov dword [0x504ae4], ebx
call fcn.00437c91
push eax
lea eax, [ebp + 0x110]
push eax
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 8
call fcn.0046660b
add esp, 0x14
lea ecx, [ebp - 0x40]
call fcn.00472320
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 7
call fcn.00472320
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.00472320
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 5
call fcn.00472320
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00472320
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp]
push eax
push dword [0x504ae4]
mov dword [ebp - 0x34], 0xff
push dword [0x504ae8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, ebx
jne 0x46687e
inc dword [0x504ae4]
lea eax, [ebp]
push eax
jmp 0x466895
push dword [0x504ae8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x504ae8], ebx
push 0x4d1a1a
mov ecx, esi
call fcn.00472340
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00472320
lea ecx, [ebp + 0x110]
mov byte [ebp - 4], 1
call fcn.00472320
lea ecx, [ebp + 0x118]
mov byte [ebp - 4], bl
call fcn.00472320
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x100]
xor ecx, ebp
call fcn.00493f43
add ebp, 0x104
leave
ret