Function at 0x410b72
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 0x410e5f
mov eax, dword [esi + 4]
cmp eax, 4
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
jne 0x410bee
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 0x410e5e
mov edx, dword [ebp - 8]
cmp edx, ebx
jbe 0x410c54
lea eax, [esi + 0x44]
call fcn.00405e60
lea eax, [ebp - 8]
push eax
lea eax, [esi + 0x44]
call fcn.00405eaf
push eax
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0xc]
push dword [esi + 0x84]
call edi
test eax, eax
jmp 0x410c57
cmp eax, 5
jne 0x410e5e
push dword [ebp + 0xc]
lea edi, [esi + 0x30]
push edi
call fcn.0040602d
mov eax, edi
call fcn.00405eaf
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 0x410e5e
mov edx, dword [ebp - 8]
cmp edx, ebx
jbe 0x410c54
lea eax, [esi + 0x44]
call fcn.00405e60
lea eax, [ebp - 8]
push eax
lea eax, [esi + 0x44]
call fcn.00405eaf
push eax
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp - 0xc]
jmp 0x410be2
cmp dword [ebp - 4], ebx
jne 0x410e5e
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.00405eaf
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 0x412820
jne 0x410d78
call fcn.00405ebb
mov ebx, dword [ebp + 0xc]
mov eax, edi
call fcn.00410ada
or ebx, 0xffffffff
push 0x4136cc
mov eax, ebx
call fcn.00405f13
push 0x412820
mov eax, ebx
call fcn.00405f13
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 0x410d0a
push dword [ebp - 0xc]
lea eax, [ebp - 0x3c]
push eax
call fcn.00405fe6
mov eax, dword [ebp - 0x3c]
test eax, eax
mov dword [ebp + 0xc], 0x412535
je 0x410d0a
mov dword [ebp + 0xc], eax
cmp dword [esi + 4], 4
jne 0x410d16
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 0x410d5c
mov eax, dword [ebp + 0xc]
mov al, byte [esi + eax]
cmp al, 0x22
jne 0x410d39
push 0x4136c0
jmp 0x410d4f
cmp al, 0x5c
jne 0x410d44
push 0x4136c4
jmp 0x410d4f
mov byte [ebp - 0xc], al
lea eax, [ebp - 0xc]
mov byte [ebp - 0xb], 0
push eax
mov eax, ebx
call fcn.00405f13
inc esi
cmp esi, dword [ebp - 0x10]
jl 0x410d28
push 0x412820
mov eax, ebx
call fcn.00405f13
lea esi, [ebp - 0x3c]
call fcn.00405e96
mov esi, dword [ebp + 8]
jmp 0x410e45
cmp dword [ebp - 4], 4
jne 0x410dc2
call fcn.00405ebb
mov ebx, dword [ebp + 0xc]
mov eax, edi
call fcn.00410ada
or ebx, 0xffffffff
push str._dword:
mov eax, ebx
call fcn.00405f13
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.00405f13
jmp 0x410e45
call fcn.00405ebb
mov ebx, dword [ebp + 0xc]
mov eax, edi
call fcn.00410ada
or ebx, 0xffffffff
push str._hex_
mov eax, ebx
call fcn.00405f13
lea eax, [ebp - 0x28]
push eax
mov eax, ebx
call fcn.00405f13
push 0x4136ec
mov eax, ebx
call fcn.00405f13
and dword [ebp + 0xc], 0
cmp dword [ebp - 8], 0
jbe 0x410e45
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 0x410e2f
push 0x412824
mov eax, ebx
call fcn.00405f13
lea eax, [ebp - 0x1c]
push eax
mov eax, ebx
call fcn.00405f13
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 8]
jb 0x410e01
push 0x412c10
mov eax, ebx
call fcn.00405f13
mov eax, edi
call fcn.00405eaf
push eax
call fcn.00410852
pop edi
pop esi
pop ebx
leave
ret 8