Function at 0x402700
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407fe5
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x40d040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x48]
push ecx
xor bl, bl
mov dword [ebp - 0x48], 0
cmp dword [ebp + 0x1c], 0xf
lea eax, [ebp + 8]
push 0x20019
cmova eax, dword [ebp + 8]
push 0
push eax
push 0x80000002
mov byte [ebp - 0x4d], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402c26
push 0x10a
push 0x40
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x4c], pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp dword [ebp + 0x34], 0xf
lea ecx, [ebp - 0x4c]
push ecx
mov edi, eax
lea ecx, [ebp - 0x14]
push edi
push ecx
lea eax, [ebp + 0x20]
mov dword [ebp - 0x64], edi
cmova eax, dword [ebp + 0x20]
push 0
push eax
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402c16
cmp dword [ebp + 0x4c], 0xf
lea ecx, [ebp + 0x38]
mov esi, dword [ebp + 0x48]
cmova ecx, dword [ebp + 0x38]
test esi, esi
jne 0x40281f
mov edx, 0x4092a0
sub esi, 4
jb 0x4027d9
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4027de
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4027c8
cmp esi, 0xfffffffc
je 0x402812
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x40280b
cmp esi, 0xfffffffd
je 0x402812
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x40280b
cmp esi, 0xfffffffe
je 0x402812
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x40280b
cmp esi, 0xffffffff
je 0x402812
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x402812
sbb eax, eax
or eax, 1
jmp 0x402814
xor eax, eax
test eax, eax
jne 0x40281f
mov bl, 1
jmp 0x402c16
cmp dword [ebp + 0x64], 0xf
lea ecx, [ebp + 0x50]
mov esi, dword [ebp + 0x60]
cmova ecx, dword [ebp + 0x50]
test esi, esi
jne 0x4029ce
mov edx, 0x4092a0
sub esi, 4
jb 0x402851
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x402856
add ecx, 4
add edx, 4
sub esi, 4
jae 0x402840
cmp esi, 0xfffffffc
je 0x40288a
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x402883
cmp esi, 0xfffffffd
je 0x40288a
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x402883
cmp esi, 0xfffffffe
je 0x40288a
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x402883
cmp esi, 0xffffffff
je 0x40288a
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x40288a
sbb eax, eax
or eax, 1
jmp 0x40288c
xor eax, eax
test eax, eax
jne 0x4029ce
mov edx, edi
lea ecx, [ebp - 0x2c]
call fcn.00402600
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x2c]
cmp eax, 1
je 0x4028b2
cmp eax, 7
jne 0x402990
cmp dword [ebp + 0x4c], 0xf
lea esi, [ebp + 0x38]
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
cmova esi, dword [ebp + 0x38]
cmp dword [ebp - 0x18], 0xf
mov dword [ebp - 0x54], esi
cmova ecx, ebx
mov ebx, dword [ebp + 0x48]
mov dword [ebp - 0x58], ecx
cmp ebx, eax
ja 0x40298d
sub eax, ebx
test ebx, ebx
je 0x402989
movsx edx, byte [esi]
inc eax
add eax, ecx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x60], eax
sub eax, ecx
push eax
push edx
push ecx
call sub.VCRUNTIME140.dll_memchr
mov edi, eax
add esp, 0xc
test edi, edi
je 0x40298d
mov edx, esi
mov ecx, edi
mov esi, ebx
sub esi, 4
jb 0x402924
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x402929
add ecx, 4
add edx, 4
sub esi, 4
jae 0x402913
cmp esi, 0xfffffffc
je 0x40295d
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x402956
cmp esi, 0xfffffffd
je 0x40295d
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x402956
cmp esi, 0xfffffffe
je 0x40295d
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x402956
cmp esi, 0xffffffff
je 0x40295d
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x40295d
sbb eax, eax
or eax, 1
jmp 0x40295f
xor eax, eax
test eax, eax
je 0x402981
mov eax, dword [ebp - 0x60]
inc edi
sub eax, edi
push eax
push dword [ebp - 0x5c]
push edi
call sub.VCRUNTIME140.dll_memchr
mov esi, dword [ebp - 0x54]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x402908
jmp 0x40298d
sub edi, dword [ebp - 0x58]
cmp edi, 0xffffffff
je 0x40298d
mov byte [ebp - 0x4d], 1
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
cmp eax, 0xf
jbe 0x402c10
lea ecx, [eax + 1]
mov eax, ebx
cmp ecx, 0x1000
jb 0x4029bf
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4029bf
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push ebx
call fcn.004070ec
add esp, 8
jmp 0x402c10
cmp dword [ebp - 0x14], 7
jne 0x402c16
cmp byte [edi], 0
mov ebx, edi
mov dword [ebp - 0x5c], ebx
je 0x402c13
mov edx, ebx
lea ecx, [ebp - 0x44]
call fcn.00402600
cmp dword [ebp + 0x4c], 0xf
lea esi, [ebp + 0x38]
mov eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x44]
cmova esi, dword [ebp + 0x38]
cmp dword [ebp - 0x30], 0xf
mov ebx, dword [ebp + 0x48]
cmova ecx, eax
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x54], eax
cmp ebx, eax
ja 0x402add
sub eax, ebx
test ebx, ebx
je 0x402bb6
movsx edx, byte [esi]
inc eax
add eax, ecx
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x58], eax
sub eax, ecx
push eax
push edx
push ecx
call sub.VCRUNTIME140.dll_memchr
mov edi, eax
add esp, 0xc
test edi, edi
je 0x402ada
nop
mov ecx, ebx
mov edx, edi
sub ecx, 4
jb 0x402a71
nop dword [eax]
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x402a76
add edx, 4
add esi, 4
sub ecx, 4
jae 0x402a60
cmp ecx, 0xfffffffc
je 0x402aaa
mov al, byte [edx]
cmp al, byte [esi]
jne 0x402aa3
cmp ecx, 0xfffffffd
je 0x402aaa
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x402aa3
cmp ecx, 0xfffffffe
je 0x402aaa
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x402aa3
cmp ecx, 0xffffffff
je 0x402aaa
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x402aaa
sbb eax, eax
or eax, 1
jmp 0x402aac
xor eax, eax
test eax, eax
je 0x402ace
mov eax, dword [ebp - 0x58]
inc edi
sub eax, edi
push eax
push dword [ebp - 0x68]
push edi
call sub.VCRUNTIME140.dll_memchr
mov esi, dword [ebp - 0x6c]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x402a50
jmp 0x402ada
sub edi, dword [ebp - 0x70]
cmp edi, 0xffffffff
jne 0x402bb6
mov eax, dword [ebp - 0x54]
cmp dword [ebp + 0x64], 0xf
lea esi, [ebp + 0x50]
mov ebx, dword [ebp + 0x60]
lea ecx, [ebp - 0x44]
cmova esi, dword [ebp + 0x50]
cmp dword [ebp - 0x30], 0xf
mov dword [ebp - 0x68], esi
cmova ecx, dword [ebp - 0x60]
mov dword [ebp - 0x58], ecx
cmp ebx, eax
ja 0x402bba
sub eax, ebx
test ebx, ebx
je 0x402bb6
movsx edx, byte [esi]
inc eax
add eax, ecx
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x70], eax
sub eax, ecx
push eax
push edx
push ecx
call sub.VCRUNTIME140.dll_memchr
mov edi, eax
add esp, 0xc
test edi, edi
je 0x402bba
mov edx, esi
mov ecx, edi
mov esi, ebx
sub esi, 4
jb 0x402b51
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x402b56
add ecx, 4
add edx, 4
sub esi, 4
jae 0x402b40
cmp esi, 0xfffffffc
je 0x402b8a
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x402b83
cmp esi, 0xfffffffd
je 0x402b8a
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x402b83
cmp esi, 0xfffffffe
je 0x402b8a
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x402b83
cmp esi, 0xffffffff
je 0x402b8a
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x402b8a
sbb eax, eax
or eax, 1
jmp 0x402b8c
xor eax, eax
test eax, eax
je 0x402bae
mov eax, dword [ebp - 0x70]
inc edi
sub eax, edi
push eax
push dword [ebp - 0x6c]
push edi
call sub.VCRUNTIME140.dll_memchr
mov esi, dword [ebp - 0x68]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x402b31
jmp 0x402bba
sub edi, dword [ebp - 0x58]
cmp edi, 0xffffffff
je 0x402bba
mov byte [ebp - 0x4d], 1
mov ebx, dword [ebp - 0x5c]
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402bc2
mov eax, dword [ebp - 0x30]
sub ecx, edx
inc ebx
add ebx, ecx
mov dword [ebp - 0x5c], ebx
cmp eax, 0xf
jbe 0x402c07
mov edx, dword [ebp - 0x60]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x402bfd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4029b9
push ecx
push edx
call fcn.004070ec
add esp, 8
cmp byte [ebx], 0
jne 0x4029e6
mov edi, dword [ebp - 0x64]
mov bl, byte [ebp - 0x4d]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0xf
jbe 0x402c5a
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402c50
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402d1a
push ecx
push edx
call fcn.004070ec
add esp, 8
mov ecx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp ecx, 0xf
jbe 0x402ca0
mov edx, dword [ebp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402c96
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402d1a
push ecx
push edx
call fcn.004070ec
add esp, 8
mov ecx, dword [ebp + 0x4c]
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0xf
mov byte [ebp + 0x20], 0
cmp ecx, 0xf
jbe 0x402ce2
mov edx, dword [ebp + 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402cd8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402d1a
push ecx
push edx
call fcn.004070ec
add esp, 8
mov ecx, dword [ebp + 0x64]
mov dword [ebp + 0x48], 0
mov dword [ebp + 0x4c], 0xf
mov byte [ebp + 0x38], 0
cmp ecx, 0xf
jbe 0x402d2a
mov edx, dword [ebp + 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402d20
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402d20
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004070ec
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00406f99
mov esp, ebp
pop ebp
ret