Function at 0x435620
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x3004c
call fcn.00454df0
push ebx
push esi
mov dword [esp + 0xc], ecx
xor ebx, ebx
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], ebx
call fcn.0040ffb3
lea ecx, [esp + 0x40]
call fcn.0040ffb3
lea ecx, [esp + 0x34]
call fcn.0040ffb3
mov edi, dword [ebp + 0xc]
push 0x46bf80
call fcn.00412a0a
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov esi, dword [eax]
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x24]
push eax
push ecx
call fcn.00412367
push ecx
push ecx
mov esi, esp
push eax
call fcn.00410005
call fcn.004353bf
lea eax, [esp + 0x2c]
push eax
sub esp, 0xc
lea edi, [esp + 0x50]
mov esi, esp
call fcn.00410051
lea edi, [esp + 0x38]
call fcn.004354af
test al, al
jne 0x4356c2
push ebx
push 2
mov eax, dword [esp + 0x18]
call fcn.0041c7b4
jmp 0x435962
cmp dword [esp + 0x20], ebx
je 0x4356ea
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x30]
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
test eax, eax
je 0x4356e4
push ebx
push 3
jmp 0x4356b4
mov eax, dword [esp + 0x18]
jmp 0x4356ee
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x2c]
or ecx, 0x20019
push ecx
push ebx
push dword [esp + 0x40]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x435723
cmp dword [esp + 0x20], ebx
je 0x43571e
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push 1
jmp 0x4356b4
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
push ebx
push ebx
lea eax, [esp + 0x38]
push eax
push ebx
call fcn.00412367
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
push dword [esp + 0x28]
call edi
test eax, eax
mov eax, dword [esp + 0x10]
push ebx
je 0x435756
push 0xffffffffffffffff
jmp 0x435945
push dword [esp + 0x34]
call fcn.0041c7e7
mov ecx, dword [esp + 0x30]
cmp ecx, ebx
jbe 0x43593e
cmp ecx, 2
jbe 0x4358ec
cmp ecx, 3
je 0x43586e
push 4
pop eax
cmp ecx, eax
je 0x435825
cmp ecx, 7
jne 0x43593e
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esp + 0xc], 0x1fffe
mov esi, dword [eax + 4]
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x10054]
push eax
push ebx
push ebx
call fcn.00412367
push eax
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x43593e
shr dword [esp + 0xc], 1
cmp dword [esp + 0xc], 1
mov eax, dword [esp + 0xc]
lea eax, [esp + eax*2 + 0x10050]
mov word [eax], bx
jbe 0x43592c
cmp word [eax - 2], bx
jne 0x4357ec
dec dword [esp + 0xc]
xor eax, eax
cmp dword [esp + 0xc], ebx
jbe 0x43580c
lea ecx, [esp + eax*2 + 0x10050]
cmp word [ecx], bx
jne 0x435805
mov word [ecx], 0xa
inc eax
cmp eax, dword [esp + 0xc]
jb 0x4357f4
lea eax, [esp + eax*2 + 0x1004e]
cmp word [eax], 0xa
jne 0x43592c
mov word [eax], bx
jmp 0x43592c
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x50]
push eax
push ebx
push ebx
call fcn.00412367
push eax
push dword [esp + 0x28]
call edi
fild dword [esp + 0x4c]
mov eax, dword [esp + 0x4c]
test eax, eax
jge 0x43585c
fadd qword [0x4726a8]
mov esi, dword [ebp + 0xc]
push ecx
push ecx
fstp qword [esp]
call fcn.004129f1
jmp 0x43594a
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esp + 0xc], 0xffff
mov esi, dword [eax + 4]
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x54]
push eax
push ebx
push ebx
call fcn.00412367
push eax
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x43593e
mov eax, dword [esp + 0xc]
xor ecx, ecx
push 2
lea eax, [eax*4 + 2]
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044f907
pop ecx
mov esi, eax
push ebx
mov word [esi], bx
push dword [esp + 0x10]
lea eax, [esp + 0x58]
push eax
mov ebx, esi
call fcn.0040f901
mov edi, dword [ebp + 0xc]
add esp, 0xc
push esi
call fcn.00412a0a
push esi
call fcn.0044f971
pop ecx
xor ebx, ebx
jmp 0x43594a
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esp + 0xc], 0x1fffe
mov esi, dword [eax + 4]
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x10054]
push eax
push ebx
push ebx
call fcn.00412367
push eax
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x43593e
shr dword [esp + 0xc], 1
mov eax, dword [esp + 0xc]
mov word [esp + eax*2 + 0x10050], bx
mov edi, dword [ebp + 0xc]
lea eax, [esp + 0x10050]
push eax
call fcn.00412a0a
jmp 0x43594a
mov eax, dword [esp + 0x10]
push ebx
push 0xfffffffffffffffe
call fcn.0041c7b4
push dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
cmp dword [esp + 0x20], ebx
je 0x435962
push dword [esp + 0x18]
call esi
push dword [esp + 0x34]
call fcn.0044f971
pop ecx
push dword [esp + 0x40]
call fcn.0044f971
pop ecx
push dword [esp + 0x1c]
call fcn.0044f971
pop ecx
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8