Function at 0x402e30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439f96
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x447004]
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 edi, ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 2
xor eax, eax
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov dword [ebp - 0x24], 0
mov word [edi], ax
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp - 0x24]
push ecx
push 0x20019
lea eax, [ebp + 8]
mov dword [ebp - 0x28], 1
cmovae eax, dword [ebp + 8]
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402fef
xorps xmm0, xmm0
mov dword [ebp - 0x14], eax
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
cmp dword [ebp + 0x34], 8
push ecx
push 0
mov dword [ebp - 0x20], eax
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push 0
push 0
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402fb8
mov ebx, dword [ebp - 0x18]
mov ecx, ebx
mov edx, dword [ebp - 0x1c]
sub ecx, edx
mov esi, dword [ebp - 0x20]
shr esi, 1
sar ecx, 1
cmp esi, ecx
jae 0x402f1e
lea eax, [edx + esi*2]
jmp 0x402f50
jbe 0x402f53
mov eax, dword [ebp - 0x14]
sub eax, edx
sar eax, 1
cmp esi, eax
jbe 0x402f3a
push ecx
push esi
lea ecx, [ebp - 0x1c]
call fcn.00408420
mov edx, dword [ebp - 0x1c]
jmp 0x402f53
sub esi, ecx
add esi, esi
push esi
push 0
push ebx
call fcn.0040b160
mov edx, dword [ebp - 0x1c]
lea eax, [esi + ebx]
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp + 0x34], 8
lea ecx, [ebp - 0x20]
push ecx
push edx
push 0
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push 0
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402fb8
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
add eax, 0xfffffffe
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
cmp ecx, eax
je 0x402fa5
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x44]
call fcn.00407760
lea eax, [ebp - 0x44]
mov ecx, edi
push eax
call fcn.004074b0
lea ecx, [ebp - 0x44]
call fcn.00406760
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x402fef
mov ecx, dword [ebp - 0x14]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x402fe5
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403096
push ecx
push edx
call fcn.00409391
add esp, 8
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x40302e
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403024
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40309b
push edx
push ecx
call fcn.00409391
add esp, 8
mov edx, dword [ebp + 0x34]
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
cmp edx, 8
jb 0x403078
mov ecx, dword [ebp + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40306e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40309b
push edx
push ecx
call fcn.00409391
add esp, 8
mov eax, edi
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.00409353
mov esp, ebp
pop ebp
ret
call fcn.00413e93
call fcn.00413e93
int3