Function at 0x408bf0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5d6f7f
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x6d26f8]
xor eax, esp
mov dword [esp + 0x274], eax
push ebx
push ebp
push esi
mov eax, dword [0x6d26f8]
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.0040d350
cmp dword [ebp + 0x18], 8
jb 0x408c8f
mov eax, dword [ebp + 4]
jmp 0x408c92
lea eax, [ebp + 4]
mov ecx, eax
lea edx, [ecx + 2]
mov dword [esp + 0x10], edx
jmp 0x408ca0
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x408ca0
sub ecx, dword [esp + 0x10]
sar ecx, 1
push ecx
lea ecx, [esp + 0x64]
call fcn.0040d350
push 1
mov eax, 0x692fe8
lea ecx, [esp + 0x64]
call fcn.0040d350
push ebx
push esi
or eax, 0xffffffff
lea esi, [esp + 0x68]
call fcn.0040d290
cmp dword [esp + 0x78], 8
mov eax, dword [esp + 0x64]
mov dword [esp + 0x18], 0x104
mov dword [esp + 0x1c], ebx
jae 0x408cf4
lea eax, [esp + 0x64]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push ebx
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408e46
mov edx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
push edx
push eax
lea esi, [esp + 0x18]
call fcn.00414070
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 0x408e22
mov eax, dword [esp + 0x1c]
cmp eax, 1
je 0x408d69
cmp eax, 2
jne 0x408e22
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.0040d4e0
mov byte [esp + 0x294], 3
mov ecx, dword [esp + 0x24]
mov ebp, 8
cmp dword [esp + 0x38], ebp
jae 0x408dae
lea ecx, [esp + 0x24]
lea esi, [esp + 0x40]
call fcn.004069d0
mov byte [esp + 0x294], 4
push 0xffffffffffffffff
push ebx
mov ecx, edi
call fcn.0040d430
mov byte [esp + 0x294], 3
cmp dword [esp + 0x58], ebp
jb 0x408de4
mov eax, dword [esp + 0x44]
push eax
call fcn.0059392f
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 0x408e13
mov edx, dword [esp + 0x24]
push edx
call fcn.0059392f
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 0x408f87
push 6
mov eax, str.CLSID_
lea esi, [esp + 0x64]
call fcn.0040d4e0
push ebx
push ebp
or eax, 0xffffffff
call fcn.0040d290
push 0xe
mov eax, 0x69436c
mov ecx, esi
call fcn.0040d350
cmp dword [esp + 0x78], 8
mov eax, dword [esp + 0x64]
jae 0x408e7d
lea eax, [esp + 0x64]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push ebx
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408f87
mov edx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
push edx
push eax
lea esi, [esp + 0x18]
call fcn.00414070
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 0x408f68
mov eax, dword [esp + 0x1c]
cmp eax, 1
je 0x408eee
cmp eax, 2
jne 0x408f68
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.0040d4e0
mov byte [esp + 0x294], 6
cmp dword [esp + 0x38], 8
mov ecx, dword [esp + 0x24]
jae 0x408f2f
lea ecx, [esp + 0x24]
lea esi, [esp + 0x40]
call fcn.004069d0
mov byte [esp + 0x294], 7
push 0xffffffffffffffff
push ebx
mov ecx, edi
call fcn.0040d430
mov byte [esp + 0x294], 6
call fcn.00440d90
mov byte [esp + 0x294], 5
lea esi, [esp + 0x20]
call fcn.00440d90
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 0x408fa2
mov eax, dword [esp + 0x64]
push eax
call fcn.0059392f
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.0059393a
add esp, 0x288
ret