Function at 0x408fb0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5817df
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x6531f0]
xor eax, esp
mov dword [esp + 0x274], eax
push ebx
push ebp
push esi
mov eax, dword [0x6531f0]
xor eax, esp
push eax
lea eax, [esp + 0x28c]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x294], ebx
mov ebp, dword [esp + 0x29c]
mov esi, ecx
mov dword [esp + 0x3c], ebx
mov ecx, 7
xor eax, eax
mov dword [esp + 0x5c], edi
mov dword [esp + 0x78], ecx
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], ax
mov eax, 1
mov dword [esp + 0x294], eax
mov dword [edi + 0x18], ecx
xor ecx, ecx
mov dword [edi + 0x14], ebx
mov word [edi + 4], cx
mov dword [esp + 0x3c], eax
push 6
mov eax, str.CLSID_
lea ecx, [esp + 0x64]
call fcn.0040e2a0
cmp dword [ebp + 0x18], 8
jb 0x40904f
mov eax, dword [ebp + 4]
jmp 0x409052
lea eax, [ebp + 4]
mov ecx, eax
lea edx, [ecx + 2]
mov dword [esp + 0x10], edx
jmp 0x409060
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x409060
sub ecx, dword [esp + 0x10]
sar ecx, 1
push ecx
lea ecx, [esp + 0x64]
call fcn.0040e2a0
push 1
mov eax, 0x63132c
lea ecx, [esp + 0x64]
call fcn.0040e2a0
push ebx
push esi
or eax, 0xffffffff
lea esi, [esp + 0x68]
call fcn.0040e1e0
cmp dword [esp + 0x78], 8
mov eax, dword [esp + 0x64]
mov dword [esp + 0x18], 0x104
mov dword [esp + 0x1c], ebx
jae 0x4090b4
lea eax, [esp + 0x64]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push ebx
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409206
mov edx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
push edx
push eax
lea esi, [esp + 0x18]
call fcn.004136f0
mov byte [esp + 0x294], 2
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x80]
push edx
lea eax, [esp + 0x24]
push eax
push ebx
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4091e2
mov eax, dword [esp + 0x1c]
cmp eax, 1
je 0x409129
cmp eax, 2
jne 0x4091e2
mov eax, dword [esp + 0x18]
shr eax, 1
xor edx, edx
push eax
lea eax, [esp + 0x80]
lea esi, [esp + 0x24]
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], dx
call fcn.0040e430
mov byte [esp + 0x294], 3
mov ecx, dword [esp + 0x24]
mov ebp, 8
cmp dword [esp + 0x38], ebp
jae 0x40916e
lea ecx, [esp + 0x24]
lea esi, [esp + 0x40]
call fcn.00406eb0
mov byte [esp + 0x294], 4
push 0xffffffffffffffff
push ebx
mov ecx, edi
call fcn.0040e380
mov byte [esp + 0x294], 3
cmp dword [esp + 0x58], ebp
jb 0x4091a4
mov eax, dword [esp + 0x44]
push eax
call fcn.004fdb3f
add esp, 4
mov esi, 7
xor ecx, ecx
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], cx
mov byte [esp + 0x294], 2
cmp dword [esp + 0x38], ebp
jb 0x4091d3
mov edx, dword [esp + 0x24]
push edx
call fcn.004fdb3f
add esp, 4
xor eax, eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], ax
mov byte [esp + 0x294], 1
mov esi, dword [esp + 0x10]
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 4]
push 1
mov ecx, esi
call eax
jmp 0x409347
push 6
mov eax, str.CLSID_
lea esi, [esp + 0x64]
call fcn.0040e430
push ebx
push ebp
or eax, 0xffffffff
call fcn.0040e1e0
push 0xe
mov eax, 0x631394
mov ecx, esi
call fcn.0040e2a0
cmp dword [esp + 0x78], 8
mov eax, dword [esp + 0x64]
jae 0x40923d
lea eax, [esp + 0x64]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push ebx
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409347
mov edx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
push edx
push eax
lea esi, [esp + 0x18]
call fcn.004136f0
mov byte [esp + 0x294], 5
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x80]
push edx
lea eax, [esp + 0x24]
push eax
push ebx
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409328
mov eax, dword [esp + 0x1c]
cmp eax, 1
je 0x4092ae
cmp eax, 2
jne 0x409328
mov eax, dword [esp + 0x18]
shr eax, 1
xor edx, edx
push eax
lea eax, [esp + 0x80]
lea esi, [esp + 0x24]
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], dx
call fcn.0040e430
mov byte [esp + 0x294], 6
cmp dword [esp + 0x38], 8
mov ecx, dword [esp + 0x24]
jae 0x4092ef
lea ecx, [esp + 0x24]
lea esi, [esp + 0x40]
call fcn.00406eb0
mov byte [esp + 0x294], 7
push 0xffffffffffffffff
push ebx
mov ecx, edi
call fcn.0040e380
mov byte [esp + 0x294], 6
call fcn.0042f9c0
mov byte [esp + 0x294], 5
lea esi, [esp + 0x20]
call fcn.0042f9c0
mov byte [esp + 0x294], 1
mov esi, dword [esp + 0x10]
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 4]
push 1
mov ecx, esi
call edx
mov byte [esp + 0x294], bl
cmp dword [esp + 0x78], 8
jb 0x409362
mov eax, dword [esp + 0x64]
push eax
call fcn.004fdb3f
add esp, 4
xor ecx, ecx
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], cx
mov eax, edi
mov ecx, dword [esp + 0x28c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x274]
xor ecx, esp
call fcn.004fdb4a
add esp, 0x288
ret