Function at 0x424241
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x8c
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov ecx, dword [edi + 0xc]
test ecx, ecx
jne 0x424263
xor eax, eax
xor edx, edx
jmp 0x424570
mov eax, dword [edi + 4]
sub eax, esi
je 0x424522
push 2
pop edx
sub eax, edx
je 0x424509
sub eax, 1
jne 0x42456c
push 3
push 0x405a1c
push ecx
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x42456c
mov edi, dword [edi + 0xc]
mov ebx, esi
add edi, 6
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4242a8
sub ecx, edx
mov dword [ebp - 0xc], esi
sar ecx, 1
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], 0x80004005
test edi, edi
je 0x4244d4
lea eax, [ecx + 1]
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 8], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00440dea
mov dword [ebp - 0x1c], eax
pop ecx
test eax, eax
je 0x424568
mov edx, dword [ebp - 8]
mov ecx, eax
push edi
call fcn.0040c040
push 0x2c
push dword [ebp - 0x1c]
call dword [sym.imp.msvcrt.dll_wcschr]
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4244c6
push 2
xor eax, eax
pop ecx
mov word [edi], ax
add edi, ecx
push 0x20
pop edx
mov dword [ebp - 8], edi
cmp dx, word [edi]
jne 0x424338
xor eax, eax
mov word [edi], ax
add edi, ecx
cmp dx, word [edi]
je 0x424329
mov dword [ebp - 8], edi
push 0x2c
push edi
call dword [sym.imp.msvcrt.dll_wcschr]
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x4243b2
push 2
pop ecx
push 0x20
pop edx
xor eax, eax
mov word [ebx], ax
add ebx, ecx
cmp dx, word [ebx]
je 0x42434f
push 0x2c
push ebx
call dword [sym.imp.msvcrt.dll_wcschr]
mov edi, eax
mov dword [ebp - 0xc], edi
pop ecx
pop ecx
test edi, edi
je 0x424393
push 2
xor eax, eax
pop ecx
mov word [edi], ax
add edi, ecx
push 0x20
pop edx
mov dword [ebp - 0xc], edi
cmp dx, word [edi]
jne 0x424393
xor eax, eax
mov word [edi], ax
add edi, ecx
cmp dx, word [edi]
je 0x424384
mov dword [ebp - 0xc], edi
mov ecx, ebx
push 2
pop edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, edi
cmp ax, si
jne 0x42439b
mov edi, dword [ebp - 8]
sub ecx, edx
sar ecx, 1
neg ecx
sbb ecx, ecx
and ebx, ecx
push 0x405780
push dword [ebp - 0x1c]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x4243cd
mov eax, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x4243da
mov ecx, dword [ebp - 0x1c]
mov edx, SysReAllocStringLen
call fcn.004224d8
lea ecx, [ebp - 0x18]
push ecx
push 1
push esi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4244c4
push 0x208
call fcn.00440dea
mov edi, eax
mov dword [ebp - 8], 0x208
pop ecx
test edi, edi
je 0x4244b7
lea eax, [ebp - 8]
mov dword [ebp - 0x14], 1
push eax
push edi
lea eax, [ebp - 0x14]
push eax
push esi
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4244a8
cmp dword [ebp - 0x14], 1
je 0x424484
push 2
pop eax
cmp dword [ebp - 0x14], eax
je 0x424484
push 4
pop eax
cmp dword [ebp - 0x14], eax
jne 0x4244a8
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4244a8
push dword [ebp - 0xc]
push 0x4043e0
push 0x104
push edi
call fcn.0040c0e1
add esp, 0x10
test eax, eax
js 0x4244a8
mov dword [ebp - 0x20], esi
mov ebx, edi
jmp 0x4244b9
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x20], esi
test ebx, ebx
je 0x4244a2
push edi
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push ebx
mov edx, 0x104
mov ecx, edi
call fcn.0040c075
mov ebx, edi
mov edi, esi
jmp 0x4244aa
mov ebx, esi
test edi, edi
je 0x4244b9
push edi
call fcn.00440db7
pop ecx
jmp 0x4244b9
mov ebx, esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4244c6
mov ebx, esi
push dword [ebp - 0x1c]
call fcn.00440db7
mov eax, dword [ebp - 0x20]
pop ecx
jmp 0x4244d9
mov eax, 0x8007000e
test eax, eax
js 0x42456c
push 0x3a
pop eax
mov ecx, ebx
cmp ax, word [ebx + 2]
jne 0x4244f3
call fcn.00420348
jmp 0x4244f8
call fcn.0041ec22
push ebx
mov esi, edx
mov dword [ebp - 4], eax
call fcn.00440db7
pop ecx
mov eax, dword [ebp - 4]
jmp 0x42456e
call fcn.0041f21e
test eax, eax
je 0x42456c
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x42456c
call fcn.00420348
mov esi, edx
jmp 0x42456e
push ecx
push ecx
push ecx
lea ecx, [ebp - 0x88]
call fcn.0042b24c
lea ecx, [ebp - 0x88]
call fcn.0042c2d1
test eax, eax
je 0x42454d
mov ecx, eax
call fcn.0041ec22
mov dword [ebp - 4], eax
mov esi, edx
jmp 0x424550
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x88]
call fcn.0042b2f8
lea ecx, [ebp - 0x88]
call fcn.0042b2f8
jmp 0x424504
mov eax, ebx
jmp 0x42456e
mov eax, esi
mov edx, esi
pop edi
pop esi
pop ebx
leave
ret