Function at 0x433adf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x3004c
call fcn.00453310
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.0040e2a9
lea ecx, [esp + 0x30]
call fcn.0040e2a9
lea ecx, [esp + 0x3c]
call fcn.0040e2a9
mov edi, dword [ebp + 0xc]
push 0x46b160
call fcn.0041028c
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x24]
push eax
push ecx
mov ecx, dword [ebp + 8]
xor eax, eax
call fcn.00405a0e
mov esi, eax
call fcn.0040fc0c
push ecx
push ecx
mov esi, esp
push eax
call fcn.0040e2d5
call fcn.004336d1
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x2c]
push eax
sub esp, 0xc
lea edi, [esp + 0x44]
mov esi, esp
call fcn.0040e348
call fcn.004337c1
test al, al
jne 0x433b87
push ebx
push 2
pop ecx
mov eax, dword [esp + 0x14]
call fcn.0041a7ff
jmp 0x433e43
cmp dword [esp + 0x20], ebx
je 0x433baf
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x2c]
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
test eax, eax
je 0x433ba9
push ebx
push 3
jmp 0x433b78
mov eax, dword [esp + 0x18]
jmp 0x433bb3
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x30]
or ecx, 0x20019
push ecx
push ebx
push dword [esp + 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x433be9
cmp dword [esp + 0x20], ebx
je 0x433be3
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
push ebx
inc ecx
jmp 0x433b79
mov ecx, dword [ebp + 8]
push ebx
push ebx
lea eax, [esp + 0x50]
push eax
xor eax, eax
push ebx
inc eax
call fcn.00405a0e
mov esi, eax
call fcn.0040fc0c
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
push dword [esp + 0x28]
call edi
test eax, eax
je 0x433c21
mov eax, dword [esp + 0x10]
push ebx
or ecx, 0xffffffff
jmp 0x433e26
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x48]
mov ecx, esi
mov dword [esi + 0x358], edx
call fcn.0041a82c
cmp edx, ebx
jbe 0x433e20
cmp edx, 2
jbe 0x433dd3
cmp edx, 3
je 0x433d51
push 4
pop eax
cmp edx, eax
je 0x433d04
cmp edx, 7
jne 0x433e20
mov ecx, dword [ebp + 8]
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x10054]
push eax
push ebx
xor eax, eax
push ebx
inc eax
mov dword [esp + 0x1c], 0x1fffe
call fcn.00405a0e
mov esi, eax
call fcn.0040fc0c
push eax
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x433cfb
shr dword [esp + 0xc], 1
mov eax, dword [esp + 0xc]
lea eax, [esp + eax*2 + 0x10050]
mov word [eax], bx
je 0x433ce6
cmp word [eax - 2], bx
jne 0x433cb6
dec dword [esp + 0xc]
xor eax, eax
cmp dword [esp + 0xc], ebx
jbe 0x433cd6
lea ecx, [esp + eax*2 + 0x10050]
cmp word [ecx], bx
jne 0x433ccf
mov word [ecx], 0xa
inc eax
cmp eax, dword [esp + 0xc]
jb 0x433cbe
lea eax, [esp + eax*2 + 0x1004e]
cmp word [eax], 0xa
jne 0x433ce6
mov word [eax], bx
mov edi, dword [ebp + 0xc]
lea eax, [esp + 0x10050]
push eax
call fcn.0041028c
jmp 0x433e2b
mov eax, dword [esp + 0x10]
jmp 0x433e22
mov ecx, dword [ebp + 8]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x50]
push eax
push ebx
xor eax, eax
push ebx
inc eax
call fcn.00405a0e
mov esi, eax
call fcn.0040fc0c
push eax
push dword [esp + 0x28]
call edi
fild dword [esp + 0x4c]
mov eax, dword [esp + 0x4c]
test eax, eax
jge 0x433d3f
fadd qword [0x4713b0]
mov esi, dword [ebp + 0xc]
push ecx
push ecx
fstp qword [esp]
call fcn.00410273
jmp 0x433e2b
mov ecx, dword [ebp + 8]
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x54]
push eax
push ebx
xor eax, eax
push ebx
inc eax
mov dword [esp + 0x1c], 0xffff
call fcn.00405a0e
mov esi, eax
call fcn.0040fc0c
push eax
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x433cfb
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.0044de32
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.0040db98
mov edi, dword [ebp + 0xc]
add esp, 0xc
push esi
call fcn.0041028c
push esi
call fcn.0044de9c
pop ecx
xor ebx, ebx
jmp 0x433e2b
mov ecx, dword [ebp + 8]
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x10054]
push eax
push ebx
xor eax, eax
push ebx
inc eax
mov dword [esp + 0x1c], 0x1fffe
call fcn.00405a0e
mov esi, eax
call fcn.0040fc0c
push eax
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x433cfb
shr dword [esp + 0xc], 1
mov eax, dword [esp + 0xc]
mov word [esp + eax*2 + 0x10050], bx
jmp 0x433ce6
mov eax, esi
push ebx
push 0xfffffffffffffffe
pop ecx
call fcn.0041a7ff
push dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
cmp dword [esp + 0x20], ebx
je 0x433e43
push dword [esp + 0x18]
call esi
push dword [esp + 0x3c]
call fcn.0044de9c
pop ecx
push dword [esp + 0x30]
call fcn.0044de9c
pop ecx
push dword [esp + 0x1c]
call fcn.0044de9c
pop ecx
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8