Function at 0x408550
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4447e4
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x4564c4]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4564c4]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x140], ebx
mov dword [esp + 0x1c], ebx
push 0x103
lea eax, [esp + 0x35]
push ebx
mov byte [esp + 0x148], 1
push eax
mov byte [esp + 0x3c], bl
call fcn.00431520
mov eax, dword [0x45a558]
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [0x457a90]
lea edx, [esp + 0x1c]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push eax
push ecx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x4085ed
mov edx, dword [esp + 0x18]
mov dword [esp + 0x1c], edx
push 0x44b9af
lea ecx, [esp + 0x24]
call fcn.00403330
mov byte [esp + 0x140], 2
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push str.sc_02d
push ecx
call fcn.004033f0
add esp, 0xc
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x34]
push ecx
push ebx
push edx
push eax
mov dword [esp + 0x3c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x40866e
mov eax, dword [esp + 0x2c]
cmp eax, 1
je 0x408658
cmp eax, 2
jne 0x40866e
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x408702
cmp byte [esp + eax + 0x2f], bl
je 0x408706
mov byte [esp + 0x140], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408696
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4086a5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x140], 0xffffffff
mov eax, dword [esp + 0x148]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4086d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.0042dbc0
add esp, 0x130
ret 4
mov byte [esp + 0x30], bl
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x18]
call fcn.00403330
mov byte [esp + 0x140], 3
mov esi, dword [esp + 0x14]
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
mov dword [esp + 0x28], esp
mov ebp, esp
call eax
cmp dword [esi + 0xc], ebx
lea ecx, [esi + 0xc]
jl 0x40874d
cmp eax, dword [esi]
jne 0x40874d
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x408783
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
cmp edi, ebx
je 0x4088cb
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
add eax, 1
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.0042daa5
add esp, 0x10
lea edx, [esp + 0x2c]
add edi, 0x10
push edx
mov dword [ebp], edi
call fcn.00405cd0
mov byte [esp + 0x140], 4
mov ecx, dword [eax]
mov esi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x4087f1
cmp dword [esi + 0xc], ebx
lea edi, [esi + 0xc]
jl 0x4087e3
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4087e3
push eax
call fcn.00403490
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4087da
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x14], ebp
jmp 0x4087f1
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401760
mov byte [esp + 0x140], 3
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408819
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00407350
cmp eax, ebx
jne 0x40882b
xor ecx, ecx
jmp 0x40883b
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
cmp dl, bl
jne 0x408830
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00401760
mov edx, dword [esp + 0x14]
push 0x44b9af
push edx
call fcn.0042f58c
add esp, 8
cmp eax, ebx
setne al
cmp al, bl
je 0x40888a
mov esi, dword [esp + 0x148]
xor eax, eax
cmp esi, ebx
setne al
cmp eax, ebx
je 0x4088d0
mov eax, dword [esp + 0x14]
push esi
push eax
call fcn.0042f58c
add esp, 8
cmp eax, ebx
sete al
cmp al, bl
jne 0x4088da
mov byte [esp + 0x140], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4088b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, 5
mov dword [esp + 0x18], eax
jl 0x408607
jmp 0x40866e
call fcn.00401670
push 0x80004005
call fcn.00401520
mov byte [esp + 0x140], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408902
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x140], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40892a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x408939
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov dword [esp + 0x140], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408960
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4086d8