Function at 0x424100
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x451286
mov eax, dword fs:[0]
push eax
sub esp, 0x844
mov eax, dword [0x4612b0]
xor eax, esp
mov dword [esp + 0x840], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4612b0]
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, 0x10
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ebx
cmp dword [ebp + 0x1c], esi
jb 0x424166
mov eax, dword [ebp + 8]
jmp 0x424169
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 0x424418
mov edi, dword [esp + 0x1c]
cmp edi, ebx
je 0x424418
mov dword [esp + 0x24], ebx
cmp dword [ebp + 0x80], ebx
je 0x424290
push 0x3ff
lea eax, [esp + 0x59]
push ebx
push eax
mov byte [esp + 0x60], bl
call fcn.0043fbd0
add esp, 0xc
mov dword [esp + 0x18], 0x400
cmp dword [ebp + 0x38], esi
jb 0x4241cc
mov eax, dword [ebp + 0x24]
jmp 0x4241cf
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 0x4243f5
lea eax, [esp + 0x54]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4241f2
sub eax, edx
je 0x4243f5
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.00404230
mov esi, dword [esp + 0x48]
push esi
mov ecx, edi
call fcn.0040ef90
cmp eax, ebx
jge 0x424252
lea ecx, [esp + 0x38]
call fcn.00402bd0
jmp 0x4243f5
sub esp, 0x1c
lea eax, [esp + 0x70]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.00404230
push ebp
push esi
call fcn.00421300
cmp eax, ebx
lea ecx, [esp + 0x38]
jge 0x42427e
call fcn.00402bd0
jmp 0x4243f5
mov dword [esp + 0x24], 1
call fcn.00402bd0
jmp 0x4243f5
xor ebp, ebp
jmp 0x4242a4
mov edi, dword [esp + 0x1c]
push 0x3ff
lea ecx, [esp + 0x59]
push ebx
push ecx
mov byte [esp + 0x60], bl
call fcn.0043fbd0
add esp, 0xc
push 0x3ff
lea edx, [esp + 0x459]
push ebx
push edx
mov byte [esp + 0x460], bl
call fcn.0043fbd0
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 0x4243f5
mov edi, 1
cmp dword [esp + 0x18], edi
jne 0x4243d6
lea eax, [esp + 0x54]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x424330
sub eax, edx
je 0x4243d6
lea eax, [esp + 0x454]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x424350
sub eax, edx
je 0x4243d6
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.00404230
mov esi, dword [esp + 0x48]
call fcn.0040ee80
test eax, eax
jl 0x4243c0
sub esp, 0x1c
lea edx, [esp + 0x470]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call fcn.00404230
mov eax, dword [esp + 0x30]
push eax
push esi
call fcn.00421300
test eax, eax
jge 0x4243e6
lea ecx, [esp + 0x38]
mov dword [esp + 0x860], 0xffffffff
call fcn.00402bd0
xor ebx, ebx
add ebp, edi
cmp ebp, 0xc8
jb 0x4242a0
jmp 0x4243f5
lea ecx, [esp + 0x38]
mov dword [esp + 0x24], edi
call fcn.00402bd0
xor ebx, ebx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x424404
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 0x42441d
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.00438dc1
add esp, 0x850
ret 8