Function at 0x4044ea
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x1a4
mov eax, dword [0x517490]
xor eax, esp
mov dword [esp + 0x1a0], eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea eax, [esp + 8]
push ebp
push esi
push edi
push eax
push dword [0x529b30]
mov ebp, ecx
push 0x80000001
mov esi, ebp
call ebx
test eax, eax
jne 0x4046cc
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0x7070615b
mov edx, ebp
mov word [esp + 0x20], 0x5d
mov eax, ecx
xor edi, edi
sub edx, eax
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x404541
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0xb0]
push eax
lea eax, [esp + 0x20]
push eax
push 0
lea eax, [esp + 0x20]
push eax
lea esi, [ebp + 5]
lea eax, [esp + 0x40]
mov word [esi], 0xa0d
push eax
add esi, 2
push 0
jmp 0x40469d
mov eax, dword [esp + 0x18]
test eax, eax
je 0x404671
cmp eax, 2
jbe 0x4045f6
cmp eax, 4
jne 0x404671
mov eax, dword [esp + 0x10]
lea ecx, [ebp + 0x5000]
add eax, 0xd
add eax, esi
cmp eax, ecx
ja 0x4048c0
lea ecx, [esp + 0x2c]
mov edx, esi
mov eax, ecx
sub edx, eax
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x4045b6
lea ecx, [esp + 0x2c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4045c7
sub ecx, edx
add esi, ecx
push 0xa
mov byte [esi], 0x3d
inc esi
push esi
push dword [esp + 0xb4]
call fcn.004ba1ee
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4045ed
jmp 0x404665
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
add ecx, 3
add eax, ecx
lea ecx, [ebp + 0x5000]
add eax, esi
cmp eax, ecx
ja 0x4048c0
lea ecx, [esp + 0x2c]
mov edx, esi
mov eax, ecx
sub edx, eax
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x40461d
lea ecx, [esp + 0x2c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40462e
sub ecx, edx
add esi, ecx
lea ecx, [esp + 0xac]
mov eax, ecx
mov byte [esi], 0x3d
inc esi
mov edx, esi
sub edx, eax
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x40464a
lea ecx, [esp + 0xac]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40465e
sub ecx, edx
add esi, ecx
mov word [esi], 0xa0d
add esi, 2
lea eax, [esp + 0x1c]
xor ecx, ecx
push eax
lea eax, [esp + 0xb0]
mov byte [esp + 0x30], cl
push eax
lea eax, [esp + 0x20]
mov byte [esp + 0xb4], cl
push eax
push ecx
lea eax, [esp + 0x20]
inc edi
push eax
lea eax, [esp + 0x40]
push eax
push edi
push dword [esp + 0x30]
mov dword [esp + 0x30], 0x80
mov dword [esp + 0x3c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x40457b
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x4ee5d0
push 0xaee0441
mov edx, 0xe914c043
mov ecx, 0xf8c212c4
call fcn.004010f9
pop ecx
push eax
lea eax, [esp + 0xb4]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0xb0]
push eax
push 0x80000002
call ebx
test eax, eax
jne 0x4048c0
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0x7379735b
xor ebx, ebx
mov word [esp + 0x28], 0x5d
lea edx, [esi + 2]
mov word [esi], 0xa0d
mov eax, ecx
mov edi, ebx
sub edx, eax
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x404737
lea eax, [esp + 0x1c]
mov word [esi + 7], 0xa0d
push eax
lea eax, [esp + 0xb0]
add esi, 9
push eax
lea eax, [esp + 0x20]
push eax
push ebx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x40]
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
jmp 0x404895
mov eax, dword [esp + 0x18]
test eax, eax
je 0x404869
cmp eax, 2
jbe 0x4047ee
cmp eax, 4
jne 0x404869
mov eax, dword [esp + 0x10]
lea ecx, [ebp + 0x5000]
add eax, 0xd
add eax, esi
cmp eax, ecx
ja 0x4048c0
lea ecx, [esp + 0x2c]
mov edx, esi
mov eax, ecx
sub edx, eax
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x4047ae
lea ecx, [esp + 0x2c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4047bf
sub ecx, edx
add esi, ecx
push 0xa
mov byte [esi], 0x3d
inc esi
push esi
push dword [esp + 0xb4]
call fcn.004ba1ee
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4047e5
jmp 0x40485d
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
add ecx, 3
add eax, ecx
lea ecx, [ebp + 0x5000]
add eax, esi
cmp eax, ecx
ja 0x4048c0
lea ecx, [esp + 0x2c]
mov edx, esi
mov eax, ecx
sub edx, eax
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x404815
lea ecx, [esp + 0x2c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404826
sub ecx, edx
add esi, ecx
lea ecx, [esp + 0xac]
mov eax, ecx
mov byte [esi], 0x3d
inc esi
mov edx, esi
sub edx, eax
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x404842
lea ecx, [esp + 0xac]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404856
sub ecx, edx
add esi, ecx
mov word [esi], 0xa0d
add esi, 2
lea eax, [esp + 0x1c]
xor ecx, ecx
push eax
lea eax, [esp + 0xb0]
mov byte [esp + 0x30], cl
push eax
lea eax, [esp + 0x20]
mov byte [esp + 0xb4], cl
push eax
push ecx
lea eax, [esp + 0x20]
inc edi
push eax
lea eax, [esp + 0x40]
push eax
push edi
push dword [esp + 0x30]
mov dword [esp + 0x30], 0x80
mov dword [esp + 0x3c], 0x104
call ebx
cmp eax, 0x103
jne 0x404773
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1b0]
sub esi, ebp
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b94b6
add esp, 0x1a4
ret