Function at 0x4247a7
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov edx, dword [ebp + 8]
and dword [ebp - 8], 0
push ebx
push esi
mov esi, ecx
mov ebx, 0x80004005
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 8]
jne 0x4247c5
sub ecx, edi
sar ecx, 1
push 0x3a
pop eax
lea edi, [ecx + 1]
mov dword [ebp - 0x20], edi
cmp ax, word [edx + 2]
jne 0x424b85
cmp ax, word [edx + 4]
jne 0x424b85
movzx eax, word [edx]
mov ecx, eax
cmp eax, 0x52
je 0x424805
cmp ecx, 0x72
jne 0x424bfd
xor eax, eax
add edx, 6
mov ecx, edx
mov edi, eax
mov dword [ebp - 0x1c], edi
lea eax, [ecx + 2]
mov dword [ebp - 0x18], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 8]
jne 0x424817
sub ecx, dword [ebp - 0x18]
xor eax, eax
sar ecx, 1
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
test edx, edx
je 0x424a5b
lea edi, [ecx + 1]
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00440dea
mov dword [ebp - 0x14], eax
pop ecx
test eax, eax
je 0x424ae3
mov ecx, dword [ebp + 8]
mov edx, edi
add ecx, 6
mov edi, eax
push ecx
mov ecx, edi
call fcn.0040c040
push 0x2c
push edi
call dword [sym.imp.msvcrt.dll_wcschr]
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x424a4d
push 2
xor eax, eax
pop ecx
mov word [edi], ax
add edi, ecx
push 0x20
pop edx
mov dword [ebp - 0x18], edi
cmp dx, word [edi]
jne 0x4248ab
xor eax, eax
mov word [edi], ax
add edi, ecx
cmp dx, word [edi]
je 0x42489c
mov dword [ebp - 0x18], edi
push 0x2c
push edi
call dword [sym.imp.msvcrt.dll_wcschr]
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x424926
push 2
pop ecx
push 0x20
pop edx
xor eax, eax
mov word [ebx], ax
add ebx, ecx
cmp dx, word [ebx]
je 0x4248c2
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 0x424906
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 0x424906
xor eax, eax
mov word [edi], ax
add edi, ecx
cmp dx, word [edi]
je 0x4248f7
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, word [ebp - 8]
jne 0x42490e
mov edi, dword [ebp - 0x18]
sub ecx, edx
sar ecx, 1
neg ecx
sbb ecx, ecx
and ebx, ecx
push 0x405780
push dword [ebp - 0x14]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x424941
mov eax, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x42494e
mov ecx, dword [ebp - 0x14]
mov edx, SysReAllocStringLen
call fcn.004224d8
lea ecx, [ebp - 0x10]
push ecx
push 1
xor ecx, ecx
push ecx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x424a4a
push 0x208
call fcn.00440dea
mov edi, eax
mov dword [ebp - 0x18], 0x208
pop ecx
test edi, edi
je 0x424a3c
lea eax, [ebp - 0x18]
mov dword [ebp - 8], 1
push eax
push edi
lea eax, [ebp - 8]
push eax
xor eax, eax
push eax
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x424a2c
cmp dword [ebp - 8], 1
je 0x424a04
push 2
pop eax
cmp dword [ebp - 8], eax
je 0x424a04
push 4
pop eax
cmp dword [ebp - 8], eax
jne 0x424a2c
mov dword [ebp - 0x18], eax
xor ecx, ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc], ecx
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ecx
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x424a2c
push dword [ebp - 0xc]
push 0x4043e0
push 0x104
push edi
call fcn.0040c0e1
add esp, 0x10
test eax, eax
js 0x424a2c
xor eax, eax
mov dword [ebp - 0x1c], edi
mov ebx, eax
jmp 0x424a3f
xor eax, eax
mov ebx, eax
cmp dword [ebp - 0xc], eax
je 0x424a25
push edi
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push dword [ebp - 0xc]
mov edx, 0x104
mov ecx, edi
call fcn.0040c075
xor eax, eax
mov dword [ebp - 0x1c], edi
mov edi, eax
jmp 0x424a2f
mov ebx, dword [ebp - 4]
test edi, edi
je 0x424a3f
push edi
call fcn.00440db7
pop ecx
jmp 0x424a3f
mov ebx, dword [ebp - 4]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x424a4d
mov ebx, dword [ebp - 4]
push dword [ebp - 0x14]
call fcn.00440db7
mov edi, dword [ebp - 0x1c]
pop ecx
jmp 0x424a60
mov ebx, 0x8007000e
test ebx, ebx
js 0x424ae3
push 0x4043e8
push edi
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x424a93
cmp dword [esi + 0xc], 0
je 0x424a85
push dword [esi + 0xc]
call fcn.00440db7
pop ecx
push 2
pop eax
mov dword [esi + 0xc], edi
mov dword [esi + 4], eax
jmp 0x424bfd
mov eax, dword [ebp - 0x20]
xor ecx, ecx
push 2
pop edx
mul edx
mov ebx, 0x8007000e
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00440dea
mov dword [esi + 0xc], eax
pop ecx
test eax, eax
je 0x424ad0
push dword [ebp + 8]
mov edx, dword [ebp - 0x20]
mov ecx, eax
call fcn.0040c040
lea ecx, [esi + 0x14]
mov edx, edi
call fcn.0041eb99
mov ebx, eax
test edi, edi
je 0x424bfd
push edi
call fcn.00440db7
jmp 0x424bfc
cmp dword [esi + 4], 3
jne 0x424b80
mov ebx, dword [ebp - 0x20]
xor ecx, ecx
push 2
pop edi
mov eax, ebx
ret
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00440dea
mov dword [esi + 0xc], eax
pop ecx
test eax, eax
je 0x424bca
push dword [ebp + 8]
mov edx, ebx
mov ecx, eax
call fcn.0040c040
add esi, 0x14
je 0x424b76
cmp dword [esi], 0
je 0x424b36
push dword [esi]
call fcn.00440db7
xor ebx, ebx
pop ecx
mov dword [esi], ebx
jmp 0x424b38
xor ebx, ebx
push 4
call fcn.00440dea
mov dword [esi], eax
pop ecx
test eax, eax
je 0x424bca
push 0x405b7c
mov edx, edi
mov ecx, eax
call fcn.0040c040
mov dword [ebp - 0x20], eax
test eax, eax
jns 0x424b6e
cmp dword [esi], 0
je 0x424b6e
push dword [esi]
call fcn.00440db7
pop ecx
mov dword [esi], ebx
mov eax, dword [ebp - 0x20]
jmp 0x424c0f
mov eax, 0x80004003
jmp 0x424c0f
xor ebx, ebx
inc ebx
jmp 0x424bfd
push 2
pop eax
cmp dword [esi + 4], eax
jne 0x424b98
mov eax, 0x104
cmp edi, eax
jae 0x424b98
mov edi, eax
cmp dword [esi + 0xc], 0
je 0x424bac
push dword [esi + 0xc]
call fcn.00440db7
xor eax, eax
pop ecx
mov dword [esi + 0xc], eax
xor ecx, ecx
mov eax, edi
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00440dea
mov dword [esi + 0xc], eax
pop ecx
test eax, eax
jne 0x424bd1
mov eax, 0x8007000e
jmp 0x424c0f
push 2
pop ecx
cmp dword [esi + 4], ecx
jne 0x424c01
push ecx
mov ecx, dword [ebp + 8]
mov edx, eax
push edi
call fcn.00435ac7
test eax, eax
jns 0x424c0d
cmp dword [esi + 0xc], 0
je 0x424bfd
push dword [esi + 0xc]
call fcn.00440db7
xor eax, eax
mov dword [esi + 0xc], eax
pop ecx
mov eax, ebx
jmp 0x424c0f
push dword [ebp + 8]
mov edx, edi
mov ecx, eax
call fcn.0040c040
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4