Function at 0x433040
Capabilities:
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d2efa
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x6d26f8]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x34], edx
lea edx, [esp + 0x10]
push edx
push 0x20019
xor esi, esi
push esi
push ecx
push eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x433344
push esi
push esi
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
push esi
push esi
push esi
push esi
push esi
push esi
push eax
mov dword [esp + 0x4c], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x54], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x433339
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x433339
cmp dword [esp + 0x14], esi
je 0x433339
mov dword [esp + 0x18], esi
cmp eax, esi
jbe 0x433339
jmp 0x433112
xor esi, esi
mov ebx, dword [esp + 0x14]
add ebx, 2
mov dword [esp + 0x88], esi
xor ecx, ecx
push esi
mov edi, 7
lea esi, [esp + 0x78]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x90], edi
mov word [esp + 0x7c], cx
call fcn.00439bb0
xor eax, eax
mov dword [esp + 0xa0], eax
mov ebx, dword [esp + 0x24]
shr ebx, 1
xor edx, edx
add ebx, 2
push eax
lea esi, [esp + 0x5c]
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], eax
mov word [esp + 0x60], dx
call fcn.00439bb0
mov byte [esp + 0xa0], 1
mov eax, dword [esp + 0x6c]
lea ecx, [eax + eax]
xor ebx, ebx
mov esi, 8
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x20], ebx
cmp dword [esp + 0x70], esi
jae 0x433198
lea ecx, [esp + 0x5c]
mov eax, dword [esp + 0x78]
cmp dword [esp + 0x8c], esi
jae 0x4331a9
lea eax, [esp + 0x78]
lea edx, [esp + 0x2c]
push edx
push ecx
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x1c]
push ebx
lea edx, [esp + 0x38]
push edx
push eax
mov eax, dword [esp + 0x30]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x4332c6
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
je 0x4332c6
mov eax, dword [esp + 0x20]
cmp eax, 1
je 0x4331f5
cmp eax, edi
je 0x4331f5
cmp eax, 2
jne 0x4332c6
mov edi, ecx
lea eax, [esp + 0x74]
call fcn.00437770
xor edx, edx
mov word [eax], dx
mov edi, dword [esp + 0x2c]
shr edi, 1
lea eax, [esp + 0x58]
call fcn.00437770
lea edx, [esp + 0x3c]
xor ecx, ecx
push edx
mov word [eax], cx
call fcn.00429000
mov byte [esp + 0xa0], 2
mov ebx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
lea edi, [esp + 0x40]
mov dword [esp + 0x3c], ebx
call fcn.0040b9c0
mov edx, dword [esp + 0x78]
cmp dword [esp + 0x8c], esi
jae 0x433251
lea edx, [esp + 0x78]
lea edi, [esp + 0x44]
call fcn.0040b9c0
mov edx, dword [esp + 0x5c]
cmp dword [esp + 0x70], esi
jae 0x433268
lea edx, [esp + 0x5c]
lea edi, [esp + 0x48]
call fcn.0040b9c0
mov byte [esp + 0x54], 0
lea edi, [esp + 0x4c]
mov edx, str.User
cmp ebx, 0x80000001
je 0x43328c
mov edx, str.System
call fcn.0040b9c0
mov edx, str.Enabled
lea edi, [esp + 0x50]
call fcn.0040b9c0
mov ebx, dword [esp + 0x34]
lea eax, [esp + 0x3c]
push eax
call fcn.004391c0
mov byte [esp + 0xa0], 1
lea ecx, [esp + 0x3c]
push ecx
call fcn.00433370
mov edi, 7
xor ebx, ebx
mov byte [esp + 0xa0], 0
cmp dword [esp + 0x70], esi
jb 0x4332e1
mov edx, dword [esp + 0x5c]
push edx
call fcn.0059392f
add esp, 4
xor eax, eax
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], ax
mov dword [esp + 0xa0], 0xffffffff
cmp dword [esp + 0x8c], esi
jb 0x433311
mov ecx, dword [esp + 0x78]
push ecx
call fcn.0059392f
add esp, 4
mov eax, dword [esp + 0x18]
inc eax
xor edx, edx
mov dword [esp + 0x8c], edi
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], dx
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x1c]
jb 0x433110
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0059393a
mov esp, ebp
pop ebp
ret