Function at 0x421e60
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 ebx, ecx
lea eax, [0x571a27]
mov dword [ebp - 0x2c], 0x5719fb
mov dword [ebp - 0x28], eax
mov word [ebp - 0x24], 0
mov dword [ebp - 0x30], 1
lea esi, [ebp - 0x30]
lea eax, [ebp - 0x5c]
push esi
push eax
call fcn.00418970
add esp, 8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], edi
add eax, edi
mov edi, esi
mov dword [ebp - 0x28], eax
mov word [ebp - 0x24], 0
mov dword [ebp - 0x30], 1
lea eax, [ebp - 0x50]
push esi
push eax
call fcn.00418970
add esp, 8
mov esi, dword [ebp - 0x58]
call fcn.00444d40
mov dword [ebp - 0x30], eax
push edi
push 0x20019
push 0
push esi
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x421f16
mov dword [ebx], 0x80000000
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x421f00
add eax, eax
push 2
push eax
push dword [ebp - 0x4c]
call main
add esp, 0xc
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x422126
add eax, eax
push 2
push eax
push esi
jmp 0x42211e
mov eax, dword [0x593ab0]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x20], 0x800
mov ebx, dword [ebp - 0x30]
movzx eax, byte [eax]
push 1
push 0x800
call fcn.00409a80
add esp, 8
test eax, eax
mov dword [ebp - 0x1c], ebx
je 0x42212e
mov esi, dword [ebp - 0x4c]
mov edi, eax
mov dword [ebp - 0x3c], 0x800
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x20]
lea eax, [ebp - 0x18]
push ecx
push edi
push eax
push 0
push esi
push ebx
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x42200e
mov ebx, dword [ebp - 0x44]
jmp 0x421fa2
mov edi, dword [ebp - 0x38]
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x20]
push eax
push edi
lea eax, [ebp - 0x18]
push eax
push 0
push esi
push dword [ebp - 0x1c]
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x42200e
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
push ecx
call fcn.0044ef00
add esp, 4
cmp eax, 0x800700ea
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x30], 1
jne 0x42208c
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x18], 0x800700ea
mov dword [ebp - 0x14], edx
test ecx, ecx
mov dword [ebp - 0x34], eax
je 0x421ff9
push ecx
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00422cd0
add esp, 0xc
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x421f80
lea eax, [ebp - 0x14]
push eax
call fcn.0044ecd0
add esp, 4
jmp 0x421f80
mov ebx, dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], 0
mov eax, ebx
shr eax, 2
bt ebx, 1
adc eax, 0
je 0x422046
push eax
push 0
push ecx
call fcn.00422cd0
lea ecx, [ebp - 0x18]
add esp, 0xc
and ebx, 0xfffffffe
mov word [ebp - 0x30], 0
mov dword [ebp - 0x2c], edi
add ebx, edi
mov dword [ebp - 0x28], ebx
push ecx
lea eax, [ebp - 0x30]
push eax
call fcn.004146b0
add esp, 8
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
xor edx, edx
test ebx, ebx
je 0x4220d3
nop word cs:[eax + eax]
nop dword [eax]
cmp byte [ecx + ebx - 1], 0
jne 0x4220d1
dec ebx
jne 0x422080
jmp 0x4220d3
test edx, edx
mov dword [ebx], 0x80000000
je 0x4220a2
lea eax, [ebp - 0x28]
push eax
call fcn.0044ecd0
add esp, 4
mov eax, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x1c]
test eax, eax
je 0x4220b8
push 1
push eax
push edi
call main
add esp, 0xc
push esi
call sub.advapi32.dll_RegCloseKey
mov esi, dword [ebp - 0x40]
mov eax, dword [ebp - 0x50]
test eax, eax
jne 0x421ef0
jmp 0x421f00
mov edx, ebx
mov ebx, dword [ebp - 0x44]
mov dword [ebx], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
mov ebx, dword [ebp - 0x1c]
test eax, eax
je 0x4220f4
push 1
push eax
push edi
call main
add esp, 0xc
push ebx
call sub.advapi32.dll_RegCloseKey
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x42210f
add eax, eax
push 2
push eax
push esi
call main
add esp, 0xc
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x422126
add eax, eax
push 2
push eax
push dword [ebp - 0x40]
call main
add esp, 0xc
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x800
push 1
call fcn.004ce340
add esp, 8
ud2