Function at 0x40211c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff4c
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov eax, 0x48a728
call fcn.004696b8
xor edx, edx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], edx
push ecx
lea eax, [ebp - 0x30]
push 0
push eax
push 0
push 0x48ba4c
push esi
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x40216c
or eax, 0xffffffff
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x4024b6
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00468dd0
pop ecx
mov ebx, eax
test eax, eax
jne 0x40218d
or eax, 0xffffffff
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x4024b6
lea ecx, [ebp - 0x34]
lea eax, [ebp - 0x30]
push ecx
push ebx
push eax
push 0
push 0x48ba4e
push esi
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x4021c2
push ebx
call fcn.00468de0
pop ecx
or eax, 0xffffffff
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x4024b6
push edi
lea ecx, [ebp - 0x4c]
push ecx
lea eax, [ebp - 0x6c]
push eax
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x5c]
push ecx
lea eax, [ebp - 0x44]
push eax
lea edx, [ebp - 0x40]
push edx
lea ecx, [ebp - 0x3c]
push ecx
lea eax, [ebp - 0x38]
push eax
mov edx, dword [ebp - 0x34]
push edx
push ebx
call fcn.00401c14
add esp, 0x2c
test eax, eax
je 0x40220b
push ebx
call fcn.00468de0
pop ecx
xor eax, eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x4024b6
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.004020e4
pop ecx
mov eax, dword [ebp - 0x3c]
push eax
call fcn.004020e4
pop ecx
mov edx, dword [ebp - 0x40]
push edx
call fcn.004020e4
pop ecx
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.004020e4
pop ecx
mov eax, dword [ebp - 0x48]
test eax, eax
jle 0x4022b0
xor edx, edx
xor ecx, ecx
mov dl, byte [ebp - 0x4d]
xor eax, eax
push edx
xor edx, edx
mov cl, byte [ebp - 0x4e]
push ecx
xor ecx, ecx
mov al, byte [ebp - 0x4f]
push eax
xor eax, eax
mov dl, byte [ebp - 0x50]
push edx
xor edx, edx
mov cl, byte [ebp - 0x51]
push ecx
xor ecx, ecx
mov al, byte [ebp - 0x52]
push eax
xor eax, eax
mov dl, byte [ebp - 0x53]
push edx
xor edx, edx
mov cl, byte [ebp - 0x54]
push ecx
xor ecx, ecx
mov al, byte [ebp - 0x55]
push eax
xor eax, eax
mov dl, byte [ebp - 0x56]
push edx
xor edx, edx
mov cl, byte [ebp - 0x57]
push ecx
xor ecx, ecx
mov al, byte [ebp - 0x58]
push eax
xor eax, eax
mov dl, byte [ebp - 0x59]
push edx
xor edx, edx
mov cl, byte [ebp - 0x5a]
push ecx
lea ecx, [ebp - 0x90]
mov al, byte [ebp - 0x5b]
push eax
mov dl, byte [ebp - 0x5c]
push edx
push 0x48ba50
push ecx
call sub.USER32.DLL_wsprintfA
add esp, 0x48
jmp 0x4022da
mov eax, dword [ebp - 0x48]
inc eax
jne 0x4022c9
push 0x48ba81
lea edx, [ebp - 0x90]
push edx
call sub.KERNEL32.DLL_lstrcpyA
jmp 0x4022da
push 0x48ba8a
lea ecx, [ebp - 0x90]
push ecx
call sub.KERNEL32.DLL_lstrcpyA
mov eax, dword [ebp - 0x4c]
test eax, eax
jle 0x402357
xor edx, edx
xor ecx, ecx
mov dl, byte [ebp - 0x5d]
xor eax, eax
push edx
xor edx, edx
mov cl, byte [ebp - 0x5e]
push ecx
xor ecx, ecx
mov al, byte [ebp - 0x5f]
push eax
xor eax, eax
mov dl, byte [ebp - 0x60]
push edx
xor edx, edx
mov cl, byte [ebp - 0x61]
push ecx
xor ecx, ecx
mov al, byte [ebp - 0x62]
push eax
xor eax, eax
mov dl, byte [ebp - 0x63]
push edx
xor edx, edx
mov cl, byte [ebp - 0x64]
push ecx
xor ecx, ecx
mov al, byte [ebp - 0x65]
push eax
xor eax, eax
mov dl, byte [ebp - 0x66]
push edx
xor edx, edx
mov cl, byte [ebp - 0x67]
push ecx
xor ecx, ecx
mov al, byte [ebp - 0x68]
push eax
xor eax, eax
mov dl, byte [ebp - 0x69]
push edx
xor edx, edx
mov cl, byte [ebp - 0x6a]
push ecx
lea ecx, [ebp - 0xb4]
mov al, byte [ebp - 0x6b]
push eax
mov dl, byte [ebp - 0x6c]
push edx
push 0x48ba96
push ecx
call sub.USER32.DLL_wsprintfA
add esp, 0x48
jmp 0x402381
mov eax, dword [ebp - 0x4c]
inc eax
jne 0x402370
push 0x48bac7
lea edx, [ebp - 0xb4]
push edx
call sub.KERNEL32.DLL_lstrcpyA
jmp 0x402381
push 0x48bad0
lea ecx, [ebp - 0xb4]
push ecx
call sub.KERNEL32.DLL_lstrcpyA
mov eax, dword [ebp - 0x38]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov esi, eax
lea eax, [ebp - 0x90]
push eax
call sub.KERNEL32.DLL_lstrlenA
add esi, eax
lea edx, [ebp - 0xb4]
push edx
call sub.KERNEL32.DLL_lstrlenA
add esi, eax
mov ecx, dword [ebp - 0x3c]
push ecx
call sub.KERNEL32.DLL_lstrlenA
add esi, eax
mov eax, dword [ebp - 0x40]
push eax
call sub.KERNEL32.DLL_lstrlenA
add esi, eax
mov edx, dword [ebp - 0x44]
push edx
call sub.KERNEL32.DLL_lstrlenA
add esi, eax
mov eax, esi
add eax, 0x40
push eax
call fcn.00468dd0
pop ecx
mov esi, eax
test esi, esi
jne 0x40241b
mov eax, dword [ebp - 0x38]
push eax
call fcn.00468de0
pop ecx
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00468de0
pop ecx
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.00468de0
pop ecx
mov eax, dword [ebp - 0x44]
push eax
call fcn.00468de0
pop ecx
push ebx
call fcn.00468de0
pop ecx
or eax, 0xffffffff
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x4024b6
mov ecx, dword [ebp - 0x44]
push ecx
lea ecx, [ebp - 0xb4]
mov eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x90]
mov edx, dword [ebp - 0x3c]
push edx
push ecx
push eax
push edi
mov edx, dword [ebp - 0x38]
push edx
push 0x48badc
push esi
call sub.USER32.DLL_wsprintfA
mov word [ebp - 0x18], 8
add esp, 0x24
lea eax, [ebp - 4]
mov edx, esi
call fcn.00474b48
inc dword [ebp - 0xc]
mov edx, dword [eax]
mov eax, dword [ebp + 8]
call fcn.004578d8
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00474d44
push esi
call fcn.00468de0
pop ecx
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.00468de0
pop ecx
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00468de0
pop ecx
mov edx, dword [ebp - 0x40]
push edx
call fcn.00468de0
pop ecx
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.00468de0
pop ecx
push ebx
call fcn.00468de0
pop ecx
xor eax, eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret