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

Disassembly:
sub esp, 0x9a0
mov eax, dword [esp + 0x9a8]
push ebx
push ebp
xor ebx, ebx
xor ebp, ebp
dec eax
cmp eax, 6
push esi
push edi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], 0xff
ja case.default.0x404476
movzx eax, byte [eax + 0x404858]
jmp dword [eax*4 + 0x404850]
mov esi, 0x412a00
jmp 0x40449c
mov ecx, 0xb
mov esi, 0x412a50
lea edi, [esp + 0x1b0]
jmp 0x4044a8
mov esi, 0x412a80
lea edi, [esp + 0x1b0]
mov ecx, 0x13
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [esp + 0x9bc]
xor eax, eax
mov ecx, 0x1e
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x9c4]
mov ecx, 0x1e
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push ebx
lea edx, [esp + 0x1bc]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404843
push ebx
push ebx
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x1c]
push ecx
push ebx
push ebx
push ebx
lea edx, [esp + 0x48]
push edx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x404829
mov ebp, dword [esp + 0x2c]
dec ebp
cmp ebp, ebx
mov dword [esp + 0x24], ebp
jl 0x404829
jmp 0x404530
mov eax, dword [esp + 0x1c]
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0xc4]
push edx
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x404701
mov dword [esp + 0x10], ebx
mov dword [esp + 0x28], 0xff
mov cl, byte [esp + eax + 0x1b0]
mov byte [esp + eax + 0x5b0], cl
inc eax
cmp cl, bl
jne 0x404561
mov eax, 0x412ad0
mov edx, eax
jmp 0x404580
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404580
lea edi, [esp + 0x5b0]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x404591
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0xb0]
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4045b2
lea edi, [esp + 0x5b0]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x4045c5
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push ebx
lea edx, [esp + 0x5bc]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404701
mov edi, dword [esp + 0x9b4]
add edi, 0x20
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404610
sub eax, edx
add eax, 2
push 1
push eax
call fcn.004084a9
mov ebp, eax
mov eax, edi
add esp, 8
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x404630
mov edx, dword [esp + 0x10]
sub eax, ecx
add eax, 2
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push ebp
lea ecx, [esp + 0x20]
push ecx
push ebx
push 0x412ad4
push edx
mov dword [esp + 0x30], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4046e9
mov esi, ebp
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x404694
cmp cl, bl
je 0x404690
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x404694
add eax, 2
add esi, 2
cmp cl, bl
jne 0x404670
xor eax, eax
jmp 0x404699
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4046e9
mov ecx, dword [esp + 0x9b4]
lea eax, [esp + 0x70]
push eax
push ecx
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0x78
call fcn.00404380
mov eax, dword [esp + 0x9c4]
add esp, 8
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebx
push 0x412ae0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x404726
push ebp
call fcn.004081c0
mov eax, dword [esp + 0x14]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, dword [esp + 0x24]
dec ebp
mov dword [esp + 0x24], ebp
jns 0x404530
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9a0
ret
xor eax, eax
mov ecx, 0x10
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x20]
push eax
push ebx
push 0x412ae8
push ecx
mov dword [esp + 0x30], 1
mov dword [esp + 0x2c], 0x40
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404829
lea esi, [esp + 0x30]
lea eax, [esp + 0x70]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x404797
cmp cl, bl
je 0x404793
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x404797
add eax, 2
add esi, 2
cmp cl, bl
jne 0x404773
xor eax, eax
jmp 0x40479c
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x404825
cmp dword [esp + 0x9c0], ebx
jne 0x4047cf
mov ecx, dword [esp + 0x1c]
push ecx
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9a0
ret
mov ecx, dword [esp + 0x9c4]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
push ebx
push str.FriendlyName
push eax
mov dword [esp + 0x30], 1
mov dword [esp + 0x2c], 0x78
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x1c]
neg eax
sbb eax, eax
inc eax
push ecx
mov dword [esp + 0x24], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9a0
ret
mov dword [esp + 0x20], ebx
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9a0
ret
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x9a0
ret