Function at 0x422e80
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x457c46
mov eax, dword fs:[0]
push eax
sub esp, 0x844
mov eax, dword [0x467334]
xor eax, esp
mov dword [esp + 0x840], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x467334]
xor eax, esp
push eax
lea eax, [esp + 0x858]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x86c]
mov eax, dword [esp + 0x868]
xor ebx, ebx
mov esi, pe_nt_image_headers32
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ebx
cmp dword [ebp + 0x1c], esi
jb 0x422ee6
mov eax, dword [ebp + 8]
jmp 0x422ee9
lea eax, [ebp + 8]
mov edx, dword [ebp]
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x423198
mov edi, dword [esp + 0x1c]
cmp edi, ebx
je 0x423198
mov dword [esp + 0x24], ebx
cmp dword [ebp + 0x80], ebx
je 0x423010
push 0x3ff
lea eax, [esp + 0x59]
push ebx
push eax
mov byte [esp + 0x60], bl
call fcn.00444d20
add esp, 0xc
mov dword [esp + 0x18], 0x400
cmp dword [ebp + 0x38], esi
jb 0x422f4c
mov eax, dword [ebp + 0x24]
jmp 0x422f4f
lea eax, [ebp + 0x24]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x58]
push edx
push ebx
push ebx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x423175
lea eax, [esp + 0x54]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x422f72
sub eax, edx
je 0x423175
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
lea eax, [esp + 0x38]
push eax
sub esp, 0x1c
mov dword [esp + 0x880], ebx
lea edx, [esp + 0x74]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
lea edi, [esp + 0x38]
call fcn.00402c00
mov esi, dword [esp + 0x48]
push esi
mov ecx, edi
call fcn.0040f230
cmp eax, ebx
jge 0x422fd2
lea ecx, [esp + 0x38]
call fcn.00402c70
jmp 0x423175
sub esp, 0x1c
lea eax, [esp + 0x70]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.00402c00
push ebp
push esi
call fcn.0041fd70
cmp eax, ebx
lea ecx, [esp + 0x38]
jge 0x422ffe
call fcn.00402c70
jmp 0x423175
mov dword [esp + 0x24], 1
call fcn.00402c70
jmp 0x423175
xor ebp, ebp
jmp 0x423024
mov edi, dword [esp + 0x1c]
push 0x3ff
lea ecx, [esp + 0x59]
push ebx
push ecx
mov byte [esp + 0x60], bl
call fcn.00444d20
add esp, 0xc
push 0x3ff
lea edx, [esp + 0x459]
push ebx
push edx
mov byte [esp + 0x460], bl
call fcn.00444d20
add esp, 0xc
mov eax, 0x400
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x458]
push ecx
lea edx, [esp + 0x20]
push edx
push ebx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x68]
push ecx
push ebp
push edi
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, ebx
jne 0x423175
mov edi, 1
cmp dword [esp + 0x18], edi
jne 0x423156
lea eax, [esp + 0x54]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4230b0
sub eax, edx
je 0x423156
lea eax, [esp + 0x454]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4230d0
sub eax, edx
je 0x423156
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
lea edx, [esp + 0x34]
push edx
sub esp, 0x1c
lea eax, [esp + 0x74]
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
mov dword [esp + 0x884], edi
lea ebx, [esp + 0x5c]
call fcn.00402c00
mov esi, dword [esp + 0x48]
call fcn.0040f120
test eax, eax
jl 0x423140
sub esp, 0x1c
lea edx, [esp + 0x470]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call fcn.00402c00
mov eax, dword [esp + 0x30]
push eax
push esi
call fcn.0041fd70
test eax, eax
jge 0x423166
lea ecx, [esp + 0x38]
mov dword [esp + 0x860], 0xffffffff
call fcn.00402c70
xor ebx, ebx
add ebp, edi
cmp ebp, 0xc8
jb 0x423020
jmp 0x423175
lea ecx, [esp + 0x38]
mov dword [esp + 0x24], edi
call fcn.00402c70
xor ebx, ebx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x423184
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x24]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
jmp 0x42319d
mov eax, 0x80004005
mov ecx, dword [esp + 0x858]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x840]
xor ecx, esp
call fcn.0043c2d9
add esp, 0x850
ret 8