Function at 0x408a80
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x121c
call fcn.00408f10
mov eax, dword [0x40feb8]
mov dword [ebp - 0xc], eax
push edi
mov word [ebp - 0x1218], 0
mov ecx, 0x14
xor eax, eax
lea edi, [ebp - 0x1216]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x11b8], 1
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0xfa0]
push ecx
call fcn.00404360
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x408ade
mov eax, dword [ebp - 8]
jmp 0x408ce1
cmp dword [ebp + 0xc], 1
jne 0x408af7
lea edx, [ebp - 0xfa0]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.00403990
add esp, 8
lea ecx, [ebp - 0x11b4]
push ecx
push 0x20019
push 0
mov edx, dword [ebp + 0x10]
add edx, 0x618
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x408b3d
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004048c0
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebp - 0x11b8], 0
jmp 0x408ba5
mov dword [ebp - 0x121c], 0x50
lea edx, [ebp - 0x121c]
push edx
lea eax, [ebp - 0x1218]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push str.objectGUID
mov edx, dword [ebp - 0x11b4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x408b9c
mov eax, dword [ebp - 0x11b4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004048c0
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebp - 0x11b8], 0
mov word [ebp - 0x11c8], 0
cmp dword [ebp - 8], 0
jne 0x408cde
push str.LDAP:___GUID
lea edx, [ebp - 0x11a8]
push edx
call sub.MSVCR71.dll_wcscpy
add esp, 8
cmp dword [ebp - 0x11b8], 1
jne 0x408be4
lea eax, [ebp - 0x1218]
push eax
lea ecx, [ebp - 0x11a8]
push ecx
call sub.MSVCR71.dll_wcscat
add esp, 8
jmp 0x408bfd
mov edx, dword [ebp + 0x10]
add edx, 0xc30
push edx
lea eax, [ebp - 0x11a8]
push eax
call sub.MSVCR71.dll_wcscat
add esp, 8
push 0x40cdc4
lea ecx, [ebp - 0x11a8]
push ecx
call sub.MSVCR71.dll_wcscat
add esp, 8
lea edx, [ebp - 0x11b0]
push edx
push 0x40df00
lea eax, [ebp - 0x11a8]
push eax
call dword [0x410510]
mov dword [ebp - 0x11ac], eax
cmp dword [ebp - 0x11ac], 0
jl 0x408cbf
mov dword [ebp - 0x11bc], 1
lea ecx, [ebp - 0x11bc]
push ecx
mov edx, dword [ebp - 0x11bc]
push edx
push 0x40fbd0
mov eax, dword [ebp - 0x11b0]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x11b0]
push edx
call dword [ecx + 0x14]
mov dword [ebp - 0x11ac], eax
cmp dword [ebp - 0x11ac], 0
jge 0x408cab
mov eax, dword [ebp - 0x11b0]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x11b0]
push edx
call dword [ecx + 8]
cmp dword [ebp - 0x11b8], 1
jne 0x408ca3
mov eax, dword [ebp - 0x11b4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x11ac]
jmp 0x408ce1
mov ecx, dword [ebp - 0x11b0]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x11b0]
push eax
call dword [edx + 8]
jmp 0x408cc8
mov ecx, dword [ebp - 0x11ac]
mov dword [ebp - 8], ecx
cmp dword [ebp - 0x11b8], 1
jne 0x408cde
mov edx, dword [ebp - 0x11b4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
call fcn.00408ef1
pop edi
mov esp, ebp
pop ebp
ret