Function at 0x408ba0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x60a0ef
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x711ab8]
xor eax, esp
mov dword [esp + 0x274], eax
push ebx
push ebp
push esi
mov eax, dword [0x711ab8]
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.0040d660
cmp dword [ebp + 0x18], 8
jb 0x408c3f
mov eax, dword [ebp + 4]
jmp 0x408c42
lea eax, [ebp + 4]
mov ecx, eax
lea edx, [ecx + 2]
mov dword [esp + 0x10], edx
jmp 0x408c50
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x408c50
sub ecx, dword [esp + 0x10]
sar ecx, 1
push ecx
lea ecx, [esp + 0x64]
call fcn.0040d660
push 1
mov eax, 0x6ca140
lea ecx, [esp + 0x64]
call fcn.0040d660
push ebx
push esi
or eax, 0xffffffff
lea esi, [esp + 0x68]
call fcn.0040d5a0
cmp dword [esp + 0x78], 8
mov eax, dword [esp + 0x64]
mov dword [esp + 0x18], 0x104
mov dword [esp + 0x1c], ebx
jae 0x408ca4
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 0x408df6
mov edx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
push edx
push eax
lea esi, [esp + 0x18]
call fcn.00414060
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 0x408dd2
mov eax, dword [esp + 0x1c]
cmp eax, 1
je 0x408d19
cmp eax, 2
jne 0x408dd2
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.0040d7f0
mov byte [esp + 0x294], 3
mov ecx, dword [esp + 0x24]
mov ebp, 8
cmp dword [esp + 0x38], ebp
jae 0x408d5e
lea ecx, [esp + 0x24]
lea esi, [esp + 0x40]
call fcn.00406980
mov byte [esp + 0x294], 4
push 0xffffffffffffffff
push ebx
mov ecx, edi
call fcn.0040d740
mov byte [esp + 0x294], 3
cmp dword [esp + 0x58], ebp
jb 0x408d94
mov eax, dword [esp + 0x44]
push eax
call fcn.005c396f
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 0x408dc3
mov edx, dword [esp + 0x24]
push edx
call fcn.005c396f
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 0x408f37
push 6
mov eax, str.CLSID_
lea esi, [esp + 0x64]
call fcn.0040d7f0
push ebx
push ebp
or eax, 0xffffffff
call fcn.0040d5a0
push 0xe
mov eax, 0x6cb494
mov ecx, esi
call fcn.0040d660
cmp dword [esp + 0x78], 8
mov eax, dword [esp + 0x64]
jae 0x408e2d
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 0x408f37
mov edx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
push edx
push eax
lea esi, [esp + 0x18]
call fcn.00414060
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 0x408f18
mov eax, dword [esp + 0x1c]
cmp eax, 1
je 0x408e9e
cmp eax, 2
jne 0x408f18
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.0040d7f0
mov byte [esp + 0x294], 6
cmp dword [esp + 0x38], 8
mov ecx, dword [esp + 0x24]
jae 0x408edf
lea ecx, [esp + 0x24]
lea esi, [esp + 0x40]
call fcn.00406980
mov byte [esp + 0x294], 7
push 0xffffffffffffffff
push ebx
mov ecx, edi
call fcn.0040d740
mov byte [esp + 0x294], 6
call fcn.0044df60
mov byte [esp + 0x294], 5
lea esi, [esp + 0x20]
call fcn.0044df60
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 0x408f52
mov eax, dword [esp + 0x64]
push eax
call fcn.005c396f
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.005c397a
add esp, 0x288
ret