Function at 0x410a06
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x84]
xor ebx, ebx
cmp ecx, ebx
je 0x410cf3
mov eax, dword [esi + 4]
cmp eax, 4
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
jne 0x410a82
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0xc]
push ecx
call edi
test eax, eax
jne 0x410cf2
mov edx, dword [ebp - 8]
cmp edx, ebx
jbe 0x410ae8
lea eax, [esi + 0x44]
call fcn.00405d07
lea eax, [ebp - 8]
push eax
lea eax, [esi + 0x44]
call fcn.00405d56
push eax
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0xc]
push dword [esi + 0x84]
call edi
test eax, eax
jmp 0x410aeb
cmp eax, 5
jne 0x410cf2
push dword [ebp + 0xc]
lea edi, [esi + 0x30]
push edi
call fcn.00405ed4
mov eax, edi
call fcn.00405d56
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 8]
push ecx
push ebx
lea ecx, [ebp - 4]
push ecx
push ebx
push eax
push dword [esi + 0x84]
mov dword [ebp - 0xc], eax
call edi
test eax, eax
jne 0x410cf2
mov edx, dword [ebp - 8]
cmp edx, ebx
jbe 0x410ae8
lea eax, [esi + 0x44]
call fcn.00405d07
lea eax, [ebp - 8]
push eax
lea eax, [esi + 0x44]
call fcn.00405d56
push eax
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp - 0xc]
jmp 0x410a76
cmp dword [ebp - 4], ebx
jne 0x410cf2
xor eax, eax
mov byte [ebp - 0x28], bl
lea edi, [ebp - 0x27]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp - 0x1c], bl
lea edi, [ebp - 0x1b]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esi + 0x44]
call fcn.00405d56
mov dword [ebp - 0xc], eax
push 0xa
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call sub.msvcrt.dll__ultoa
xor eax, eax
inc eax
add esp, 0xc
cmp dword [ebp - 4], eax
mov dword [esi + 0x64], eax
lea edi, [esi + 0x58]
push 0x412804
jne 0x410c0c
call fcn.00405d62
mov ebx, dword [ebp + 0xc]
mov eax, edi
call fcn.0041096e
or ebx, 0xffffffff
push 0x4136b4
mov eax, ebx
call fcn.00405dba
push 0x412804
mov eax, ebx
call fcn.00405dba
xor eax, eax
cmp dword [esi + 4], 5
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x2c], 0x100
mov dword [ebp - 0x34], eax
jne 0x410b9e
push dword [ebp - 0xc]
lea eax, [ebp - 0x3c]
push eax
call fcn.00405e8d
mov eax, dword [ebp - 0x3c]
test eax, eax
mov dword [ebp + 0xc], 0x412535
je 0x410b9e
mov dword [ebp + 0xc], eax
cmp dword [esi + 4], 4
jne 0x410baa
mov eax, dword [ebp - 0xc]
mov dword [ebp + 0xc], eax
push dword [ebp + 0xc]
call sub.msvcrt.dll_strlen
xor esi, esi
test eax, eax
pop ecx
mov dword [ebp - 0x10], eax
jle 0x410bf0
mov eax, dword [ebp + 0xc]
mov al, byte [esi + eax]
cmp al, 0x22
jne 0x410bcd
push 0x4136a8
jmp 0x410be3
cmp al, 0x5c
jne 0x410bd8
push 0x4136ac
jmp 0x410be3
mov byte [ebp - 0xc], al
lea eax, [ebp - 0xc]
mov byte [ebp - 0xb], 0
push eax
mov eax, ebx
call fcn.00405dba
inc esi
cmp esi, dword [ebp - 0x10]
jl 0x410bbc
push 0x412804
mov eax, ebx
call fcn.00405dba
lea esi, [ebp - 0x3c]
call fcn.00405d3d
mov esi, dword [ebp + 8]
jmp 0x410cd9
cmp dword [ebp - 4], 4
jne 0x410c56
call fcn.00405d62
mov ebx, dword [ebp + 0xc]
mov eax, edi
call fcn.0041096e
or ebx, 0xffffffff
push str._dword:
mov eax, ebx
call fcn.00405dba
mov eax, dword [ebp - 0xc]
push dword [eax]
lea eax, [ebp - 0x1c]
push str._8.8x
push eax
call sub.msvcrt.dll_sprintf
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
mov eax, ebx
call fcn.00405dba
jmp 0x410cd9
call fcn.00405d62
mov ebx, dword [ebp + 0xc]
mov eax, edi
call fcn.0041096e
or ebx, 0xffffffff
push str._hex_
mov eax, ebx
call fcn.00405dba
lea eax, [ebp - 0x28]
push eax
mov eax, ebx
call fcn.00405dba
push 0x4136d4
mov eax, ebx
call fcn.00405dba
and dword [ebp + 0xc], 0
cmp dword [ebp - 8], 0
jbe 0x410cd9
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
movzx eax, byte [ecx + eax]
push eax
lea eax, [ebp - 0x1c]
push str._2.2x
push eax
call sub.msvcrt.dll_sprintf
add esp, 0xc
cmp dword [ebp + 0xc], 0
jbe 0x410cc3
push 0x412808
mov eax, ebx
call fcn.00405dba
lea eax, [ebp - 0x1c]
push eax
mov eax, ebx
call fcn.00405dba
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 8]
jb 0x410c95
push 0x412bf8
mov eax, ebx
call fcn.00405dba
mov eax, edi
call fcn.00405d56
push eax
call fcn.004106e6
pop edi
pop esi
pop ebx
leave
ret 8