Function at 0x40b893
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
push esi
push edi
mov byte [ebp - 0x408], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x407]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x810], 0
mov byte [ebp - 0x80c], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x80b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0x400
mov dword [ebp - 0x40c], 0
mov dword [ebp - 0x814], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x50]
push ecx
push 0x4c60f4
lea edx, [ebp - 0x408]
push edx
call fcn.004af408
add esp, 0xc
lea eax, [ebp - 0x818]
push eax
push 0x20007
push 0
push 0x4c6100
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40b9d0
push 0x4c6128
mov ecx, dword [0x4dc70c]
push ecx
call fcn.004aefac
add esp, 8
mov edx, dword [0x4d4ddc]
cmp dword [edx + 0x80], 0
je 0x40b984
xor eax, eax
test eax, eax
je 0x40b984
mov ecx, dword [0x4d4ddc]
mov edx, dword [ecx + 0x80]
mov dword [ebp - 0x820], edx
jmp 0x40b98e
mov dword [ebp - 0x820], 0xffffff86
mov eax, dword [0x4d4ddc]
mov ecx, dword [ebp - 0x820]
mov dword [eax + 0x80], ecx
push 0
push 0xff
push 0
push 0
push 0x24f
push 0xffffffffffffff86
mov edx, dword [0x4d4ddc]
push edx
call fcn.00419110
add esp, 0x1c
mov eax, dword [0x4d4ddc]
mov eax, dword [eax + 0x80]
jmp 0x40bb56
push 0
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x80c]
push edx
mov eax, dword [ebp - 0x810]
mov dword [ebp - 0x824], eax
mov ecx, dword [ebp - 0x824]
push ecx
mov edx, dword [ebp - 0x818]
push edx
mov eax, dword [ebp - 0x810]
add eax, 1
mov dword [ebp - 0x810], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x40bb47
mov ecx, dword [ebp - 4]
mov byte [ebp + ecx - 0x80c], 0
lea edx, [ebp - 0x408]
push edx
call fcn.004aee10
add esp, 4
push eax
lea eax, [ebp - 0x408]
push eax
lea ecx, [ebp - 0x80c]
push ecx
call fcn.004af7d0
add esp, 0xc
test eax, eax
jne 0x40bb3b
mov edx, dword [ebp + 0xc]
add edx, 4
push edx
call fcn.004aee10
add esp, 4
push eax
mov eax, dword [ebp + 0xc]
add eax, 4
push eax
lea ecx, [ebp - 0x80c]
push ecx
call fcn.004aee10
add esp, 4
mov esi, eax
mov edx, dword [ebp + 0xc]
add edx, 4
push edx
call fcn.004aee10
add esp, 4
sub esi, eax
lea eax, [ebp + esi - 0x80c]
push eax
call fcn.004af7d0
add esp, 0xc
test eax, eax
jne 0x40bb3b
mov dword [ebp - 0x814], 0
push 1
lea ecx, [ebp - 0x814]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x80c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00430cf0
add esp, 0x14
cmp dword [ebp - 0x814], 0
je 0x40bb39
mov dword [ebp - 0x81c], 0
mov edx, dword [ebp - 0x81c]
cmp edx, dword [ebp - 0x814]
jae 0x40bb19
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x81c]
mov cl, byte [eax]
xor cl, 0xff
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x81c]
mov byte [edx], cl
mov eax, dword [ebp - 0x81c]
add eax, 2
mov dword [ebp - 0x81c], eax
jmp 0x40bae1
push 1
mov ecx, dword [ebp - 0x814]
push ecx
mov edx, dword [ebp - 8]
push edx
lea eax, [ebp - 0x80c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00430ff8
add esp, 0x14
jmp 0x40bb47
mov dword [ebp - 4], 0x400
jmp 0x40b9d0
mov edx, dword [ebp - 0x818]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret