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

Disassembly:
push 0xffffffffffffffff
push 0x48e43e
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x4b5930]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push ebp
push esi
mov eax, dword [0x4b5930]
xor eax, esp
push eax
lea eax, [esp + 0x24c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x25c]
mov dword [esp + 0x20], ebp
mov esi, ecx
lea eax, [esp + 0x18]
push eax
push 0x20019
xor ebx, ebx
mov dword [esp + 0x25c], ebx
mov ecx, dword [esp + 0x268]
push ebx
push ecx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x421170
mov eax, dword [esp + 0x18]
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x20]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp dword [esp + 0x10], ebx
je 0x421170
mov dword [esp + 0x14], ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, 0x104
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], eax
lea edx, [esp + 0x148]
push edx
lea eax, [esp + 0x44]
push eax
mov eax, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x54]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov edx, eax
test edx, edx
mov dword [esp + 0x28], edx
jne 0x42115b
lea eax, [esp + 0x40]
lea ecx, [eax + 1]
mov dword [esp + 0x1c], ecx
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x421014
sub eax, dword [esp + 0x1c]
je 0x42115b
push ebp
push ecx
lea edx, [esp + 0x14c]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.0040aea0
push ecx
lea eax, [esp + 0x4c]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
mov byte [esp + 0x264], 1
call fcn.0040aea0
lea ecx, [esp + 0x3c]
push ecx
mov byte [esp + 0x264], 0
call fcn.00420e10
push eax
mov byte [esp + 0x258], 2
call fcn.004211d0
mov byte [esp + 0x254], 0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42109d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4210bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi + 0x20]
push 0
push 0
push 0x1004
push ecx
call ebx
push 0
push 0
push 0
push 0
push 0x49adb9
push eax
push 1
mov ecx, edi
call fcn.00458b9a
mov eax, dword [edi + 0x20]
lea edx, [esp + 0x40]
push edx
push 1
push 0
push 0
push 0x1004
push eax
call ebx
sub eax, 1
push eax
mov ecx, edi
call fcn.004587cc
mov edx, dword [edi + 0x20]
lea ecx, [esp + 0x144]
push ecx
push 2
push 0
push 0
push 0x1004
push edx
call ebx
sub eax, 1
push eax
mov ecx, edi
call fcn.004587cc
mov ecx, esi
call fcn.00411610
mov ebp, eax
mov ecx, esi
sub ebp, 1
call fcn.00411610
push ebp
push 0
push 0
push 0
push 0
push 4
sub eax, 1
push 0
push eax
mov ecx, edi
call fcn.00458be6
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
add dword [esp + 0x14], 1
test edx, edx
mov dword [esp + 0x10], 0x104
je 0x420fc0
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x254], 0xffffffff
mov eax, dword [esp + 0x260]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4211a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x24c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.0046da06
add esp, 0x248
ret