Function at 0x424601
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 0x424623
xor eax, eax
xor edx, edx
jmp 0x424930
mov eax, dword [edi + 4]
sub eax, esi
je 0x4248e2
push 2
pop edx
sub eax, edx
je 0x4248c9
sub eax, 1
jne 0x42492c
push 3
push 0x405a0c
push ecx
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x42492c
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 0x424668
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 0x424894
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.0044183a
mov dword [ebp - 0x1c], eax
pop ecx
test eax, eax
je 0x424928
mov edx, dword [ebp - 8]
mov ecx, eax
push edi
call fcn.0040c010
push 0x2c
push dword [ebp - 0x1c]
call dword [sym.imp.msvcrt.dll_wcschr]
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x424886
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 0x4246f8
xor eax, eax
mov word [edi], ax
add edi, ecx
cmp dx, word [edi]
je 0x4246e9
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 0x424772
push 2
pop ecx
push 0x20
pop edx
xor eax, eax
mov word [ebx], ax
add ebx, ecx
cmp dx, word [ebx]
je 0x42470f
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 0x424753
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 0x424753
xor eax, eax
mov word [edi], ax
add edi, ecx
cmp dx, word [edi]
je 0x424744
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 0x42475b
mov edi, dword [ebp - 8]
sub ecx, edx
sar ecx, 1
neg ecx
sbb ecx, ecx
and ebx, ecx
push 0x405770
push dword [ebp - 0x1c]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x42478d
mov eax, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x42479a
mov ecx, dword [ebp - 0x1c]
mov edx, SysReAllocStringLen
call fcn.0041fb3c
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 0x424884
push 0x208
call fcn.0044183a
mov edi, eax
mov dword [ebp - 8], 0x208
pop ecx
test edi, edi
je 0x424877
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 0x424868
cmp dword [ebp - 0x14], 1
je 0x424844
push 2
pop eax
cmp dword [ebp - 0x14], eax
je 0x424844
push 4
pop eax
cmp dword [ebp - 0x14], eax
jne 0x424868
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 0x424868
push dword [ebp - 0xc]
push 0x4043d0
push 0x104
push edi
call fcn.0040c0b5
add esp, 0x10
test eax, eax
js 0x424868
mov dword [ebp - 0x20], esi
mov ebx, edi
jmp 0x424879
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x20], esi
test ebx, ebx
je 0x424862
push edi
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push ebx
mov edx, 0x104
mov ecx, edi
call fcn.0040c045
mov ebx, edi
mov edi, esi
jmp 0x42486a
mov ebx, esi
test edi, edi
je 0x424879
push edi
call fcn.00441807
pop ecx
jmp 0x424879
mov ebx, esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x424886
mov ebx, esi
push dword [ebp - 0x1c]
call fcn.00441807
mov eax, dword [ebp - 0x20]
pop ecx
jmp 0x424899
mov eax, 0x8007000e
test eax, eax
js 0x42492c
push 0x3a
pop eax
mov ecx, ebx
cmp ax, word [ebx + 2]
jne 0x4248b3
call fcn.004205d3
jmp 0x4248b8
call fcn.0041ee6a
push ebx
mov esi, edx
mov dword [ebp - 4], eax
call fcn.00441807
pop ecx
mov eax, dword [ebp - 4]
jmp 0x42492e
call fcn.0041f47f
test eax, eax
je 0x42492c
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x42492c
call fcn.004205d3
mov esi, edx
jmp 0x42492e
push ecx
push ecx
push ecx
lea ecx, [ebp - 0x88]
call fcn.0042b6d2
lea ecx, [ebp - 0x88]
call fcn.0042c774
test eax, eax
je 0x42490d
mov ecx, eax
call fcn.0041ee6a
mov dword [ebp - 4], eax
mov esi, edx
jmp 0x424910
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x88]
call fcn.0042b77e
lea ecx, [ebp - 0x88]
call fcn.0041fb3c
jmp 0x4248c4
mov eax, ebx
jmp 0x42492e
mov eax, esi
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret