Function at 0x435310
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ed2e8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x677010]
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 esi, edx
mov dword [ebp - 0x50], ecx
mov edi, dword [ebp + 8]
push ecx
push 0x64
lea ecx, [ebp - 0x48]
call fcn.00435db0
xor edx, edx
mov dword [ebp - 4], 0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
sub eax, ecx
sar eax, 1
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x68]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x50]
push ecx
push edx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x435507
cmp eax, 0xea
jne 0x4353b4
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x435507
lea ecx, [ebp - 0x48]
push ecx
push eax
call fcn.00436360
mov edx, dword [ebp - 0x2c]
jmp 0x435360
mov edx, dword [ebp - 0x2c]
test eax, eax
jne 0x435360
inc dword [ebp - 0x2c]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 1
push eax
mov eax, dword [ebp - 0x50]
push 0x20019
push 0
push dword [ebp - 0x48]
mov dword [ebp - 0x54], 0
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4354e3
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x435410
push ecx
call ebx
mov dword [ebp - 0x38], 0
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], 0
test eax, eax
jne 0x4354e3
lea edx, [ebp - 0x58]
mov dword [ebp - 0x58], eax
lea ecx, [ebp - 0x38]
call fcn.00435100
test al, al
je 0x4354d5
cmp dword [ebp - 0x58], 0
jbe 0x4354d5
lea ecx, [ebp - 0x28]
call fcn.00407a4a
mov byte [ebp - 4], 2
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x3c], 0
call fcn.00434f70
test al, al
je 0x43548c
mov byte [ebp - 4], 3
cmp dword [ebp - 0x18], 0
mov byte [ebp - 4], 2
sete al
test al, al
jne 0x43548c
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00435b10
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 4
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x60]
push eax
push 0
push str.release
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4354c9
cmp dword [ebp - 0x60], 4
jne 0x4354c9
cmp dword [ebp - 0x3c], eax
jbe 0x4354c9
lea eax, [ebp - 0x3c]
mov ecx, edi
push eax
call fcn.00419990
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004075ab
push edi
mov edx, esi
lea ecx, [ebp - 0x38]
call fcn.00435310
add esp, 4
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x4354f8
push eax
call ebx
mov dword [ebp - 0x38], 0
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x34], 0
jmp 0x435360
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x435564
mov eax, dword [ebp - 0x40]
sub eax, ecx
sar eax, 1
cmp eax, 0x7fffffff
ja 0x435580
add eax, eax
cmp eax, 0x1000
jb 0x435546
test cl, 0x1f
jne 0x435580
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x435580
sub ecx, eax
cmp ecx, 4
jb 0x435580
cmp ecx, 0x23
ja 0x435580
mov ecx, eax
push ecx
call fcn.00476ee1
add esp, 4
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
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.005bc745
mov esp, ebp
pop ebp
ret
call fcn.005c3f14
int3