Function at 0x423f70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x50
mov edi, edx
mov esi, ecx
lea ebx, [ebp - 0x1c]
lea eax, [0x57ceb7]
mov dword [ebp - 0x18], 0x57ce8b
mov dword [ebp - 0x14], eax
mov word [ebp - 0x10], 0
mov dword [ebp - 0x1c], 1
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.004255c0
add esp, 8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], edi
add eax, edi
mov dword [ebp - 0x14], eax
mov word [ebp - 0x10], 0
mov dword [ebp - 0x1c], 1
lea eax, [ebp - 0x50]
push ebx
push eax
call fcn.004255c0
add esp, 8
mov edi, dword [ebp - 0x58]
call fcn.0043d010
mov dword [ebp - 0x1c], eax
push ebx
push 0x20019
push 0
push edi
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x424024
mov dword [esi], 0x80000000
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x42400e
add eax, eax
push 2
push eax
push dword [ebp - 0x4c]
call fcn.0040cd20
add esp, 0xc
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x424259
add eax, eax
push 2
push eax
push edi
jmp 0x424251
mov eax, dword [0x59fb24]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], 0x800
mov ebx, dword [ebp - 0x1c]
movzx eax, byte [eax]
push 1
push 0x800
call fcn.0040cd10
add esp, 8
test eax, eax
je 0x424279
mov esi, dword [ebp - 0x4c]
mov dword [ebp - 0x44], 0x800
mov edi, eax
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push ecx
push edi
push eax
push 0
push esi
mov dword [ebp - 0x30], ebx
push ebx
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x424151
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
push ecx
call fcn.00446800
add esp, 4
cmp eax, 0x800700ea
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x1c], 1
jne 0x4241bc
lea ebx, [ebp - 0x28]
nop dword [eax + eax]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x28], 0x800700ea
mov dword [ebp - 0x24], edx
test ecx, ecx
mov dword [ebp - 0x3c], eax
jne 0x424136
test edx, edx
je 0x4240e7
lea eax, [ebp - 0x24]
push eax
call fcn.004465e0
add esp, 4
mov edi, dword [ebp - 0x40]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x28], 0
push eax
push edi
push ebx
push 0
push esi
push dword [ebp - 0x30]
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x424151
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
push ecx
call fcn.00446800
add esp, 4
cmp eax, 0x800700ea
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x1c], 1
je 0x4240c0
jmp 0x4241bc
push 1
push 1
push ecx
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004183d0
add esp, 0x14
mov edx, dword [ebp - 0x24]
test edx, edx
jne 0x4240db
jmp 0x4240e7
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 0
mov eax, ecx
mov ebx, ecx
shr ecx, 2
and ebx, 0xfffffffe
shr eax, 1
add ebx, edi
sub eax, ecx
jne 0x424261
lea eax, [ebp - 0x28]
mov word [ebp - 0x1c], 0
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00428780
add esp, 8
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
xor edx, edx
test ebx, ebx
je 0x424206
nop word [eax + eax]
cmp byte [ecx + ebx - 1], 0
jne 0x424204
dec ebx
jne 0x4241b0
jmp 0x424206
mov eax, dword [ebp - 0x34]
test edx, edx
mov dword [eax], 0x80000000
je 0x4241d5
lea eax, [ebp - 0x14]
push eax
call fcn.004465e0
add esp, 4
mov eax, dword [ebp - 0x44]
mov esi, dword [ebp - 0x30]
test eax, eax
je 0x4241eb
push 1
push eax
push edi
call fcn.0040cd20
add esp, 0xc
push esi
call sub.advapi32.dll_RegCloseKey
mov edi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x50]
test eax, eax
jne 0x423ffe
jmp 0x42400e
mov edx, ebx
mov ebx, dword [ebp - 0x34]
mov dword [ebx], eax
mov eax, dword [ebp - 0x44]
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
mov ebx, dword [ebp - 0x38]
test eax, eax
je 0x424227
push 1
push eax
push edi
call fcn.0040cd20
add esp, 0xc
push dword [ebp - 0x30]
call sub.advapi32.dll_RegCloseKey
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x424244
add eax, eax
push 2
push eax
push esi
call fcn.0040cd20
add esp, 0xc
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x424259
add eax, eax
push 2
push eax
push ebx
call fcn.0040cd20
add esp, 0xc
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
push 1
push 1
push eax
push 0
lea eax, [ebp - 0x28]
push eax
call fcn.004183d0
add esp, 0x14
jmp 0x42417f
push 0x800
push 1
call fcn.004cf340
nop
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov esi, dword [eax + 4]
mov ebx, dword [eax + 8]
lea eax, [ebp - 0x18]
push dword [ebp + 0xc]
push eax
call fcn.004df640
add esp, 8
test ebx, ebx
je 0x4242d9
lea edi, [ebp - 0x10]
nop word [eax + eax]
mov dword [ebp - 0x10], esi
inc esi
push 0x57bb18
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.004db760
add esp, 0xc
dec ebx
jne 0x4242c0
lea eax, [ebp - 0x18]
push eax
call fcn.004db9b0
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret