Function at 0x40acc0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x378
mov eax, dword [0x4399d0]
xor eax, esp
mov dword [esp + 0x374], eax
push ebx
push ebp
mov ebp, dword [esp + 0x384]
push esi
push edi
xor ebx, ebx
lea eax, [esp + 0x10]
push eax
push ebx
push 0x80000003
mov dword [esp + 0x28], ebx
mov byte [esp + 0x34], bl
mov byte [0x441b10], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edx, dword [esp + 0x10]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x38]
push ecx
push ebx
push ebx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
xor esi, esi
mov dword [esp + 0x20], esi
cmp dword [esp + 0x1c], ebx
jbe 0x40aeac
lea ebx, [ebx]
mov edx, dword [esp + 0x10]
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0xa0]
push ecx
push esi
push edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], 0x1f4
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x40ae9d
lea eax, [esp + 0x8c]
push eax
call fcn.00431112
add esp, 4
xor eax, eax
mov cl, byte [esp + eax + 0x8c]
mov byte [esp + eax + 0x28], cl
inc eax
cmp cl, bl
jne 0x40ad73
lea eax, [esp + 0x8c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40ad90
sub eax, edx
cmp eax, 9
jb 0x40ae9d
lea ecx, [esp + 0x8c]
push str._CLASSES
push ecx
call fcn.0040e750
add esp, 8
test eax, eax
jne 0x40ae9d
cmp byte [esp + 0x390], bl
je 0x40ade1
lea edx, [esp + 0x8c]
push ebp
push edx
call fcn.0040e750
add esp, 8
test eax, eax
jne 0x40aed2
lea edi, [esp + 0x8c]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x40adf0
mov edx, dword [esp + 0x10]
mov ecx, 0xd
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionExplorer
lea eax, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [esp + 0x90]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40ae99
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x284]
push edx
lea ecx, [esp + 0x2c]
push ecx
push ebx
push str.Logon_User_Name
push eax
mov dword [esp + 0x2c], 0x20
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x280]
push eax
call fcn.00431112
add esp, 4
lea ecx, [esp + 0x280]
mov eax, ebp
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40ae90
cmp dl, bl
je 0x40ae8c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40ae90
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x40ae70
xor eax, eax
jmp 0x40ae95
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40aee7
mov esi, dword [esp + 0x20]
inc esi
mov dword [esp + 0x20], esi
cmp esi, dword [esp + 0x1c]
jb 0x40ad30
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [esp + 0x384]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040c71a
add esp, 0x378
ret
xor eax, eax
mov cl, byte [esp + eax + 0x28]
mov byte [eax + 0x441b10], cl
inc eax
cmp cl, bl
jne 0x40aed4
mov al, 1
jmp 0x40aeb9
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x28]
mov byte [eax + 0x441b10], cl
inc eax
cmp cl, bl
jne 0x40aef0
mov al, 1
jmp 0x40aeb9