Function at 0x4793ef
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f2461
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x54b0c4]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebx, ecx
xor esi, esi
mov dword [esp + 0x48], esi
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebx + 0x10]
lea edi, [esp + 0x10]
push edi
or eax, 0x20019
push eax
push esi
push ecx
push edx
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x4798c9
mov eax, dword [ebx + 0x20]
dec eax
mov edi, dword [esp + 0x10]
mov dword [esp + 0x18], edi
je 0x479813
dec eax
je 0x47979e
dec eax
je 0x4796ba
dec eax
je 0x479642
dec eax
je 0x4795d2
dec eax
dec eax
je 0x4794ee
sub eax, 4
je 0x479491
cmp edi, esi
je 0x4798c9
push edi
jmp 0x4798c3
mov eax, dword [ebx + 0x18]
lea ecx, [esp + 0x2c]
push ecx
push eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
call fcn.0047af57
cmp eax, esi
jne 0x479483
push dword [esp + 0x30]
lea eax, [ebx + 0x1c]
push dword [esp + 0x30]
mov dword [esp + 0x1c], eax
push str._I64d
call fcn.00401a57
mov ebx, dword [ebx + 4]
sub ebx, 0x10
add esp, 0xc
mov eax, ebx
call fcn.00401311
lea ebx, [eax + 0x10]
mov dword [esp + 0x20], ebx
mov byte [esp + 0x48], 9
lea eax, [esp + 0x20]
jmp 0x479695
push dword [ebx + 0x18]
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], esi
push eax
lea esi, [esp + 0x1c]
xor edi, edi
call fcn.0047af92
test eax, eax
jne 0x4795b8
mov eax, dword [esp + 0x14]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004cfd86
mov edi, eax
test edi, edi
pop ecx
mov dword [esp + 0x1c], edi
je 0x4795b8
push dword [ebx + 0x18]
lea eax, [esp + 0x1c]
push eax
call fcn.0047af92
test eax, eax
jne 0x4795ae
mov ebx, dword [ebx + 4]
sub ebx, 0x10
mov eax, ebx
call fcn.00401311
lea esi, [eax + 0x10]
mov dword [esp + 0x20], esi
mov byte [esp + 0x48], 7
mov eax, dword [esp + 0x14]
add eax, eax
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00423ff3
pop ecx
pop ecx
mov ebx, eax
lea eax, [esp + 0x20]
push eax
push dword [ebp + 8]
mov byte [esp + 0x50], 8
call fcn.0047a57a
mov edi, eax
mov eax, ebx
call fcn.00402a90
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
call fcn.004012f9
lea eax, [esi - 0x10]
call fcn.004012f9
mov dword [esp + 0x20], 1
push dword [esp + 0x1c]
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [esp + 0x10], 0
je 0x4795c9
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
jmp 0x4798cb
mov eax, dword [ebx + 0x18]
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x28]
push ecx
push esi
push eax
push edi
mov dword [esp + 0x34], esi
mov dword [esp + 0x40], 4
mov dword [esp + 0x38], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x479483
cmp dword [esp + 0x20], 5
jne 0x479483
push dword [esp + 0x1c]
lea eax, [ebx + 0x1c]
push 0x5061a4
mov dword [esp + 0x1c], eax
call fcn.00401a57
mov ebx, dword [ebx + 4]
sub ebx, 0x10
pop ecx
pop ecx
mov eax, ebx
call fcn.00401311
lea ebx, [eax + 0x10]
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x48], 6
jmp 0x479691
mov eax, dword [ebx + 0x18]
lea ecx, [esp + 0x20]
push ecx
push eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x2c], esi
call fcn.00406f5b
cmp eax, esi
jne 0x479483
push dword [esp + 0x20]
lea eax, [ebx + 0x1c]
push 0x5061a4
mov dword [esp + 0x1c], eax
call fcn.00401a57
mov ebx, dword [ebx + 4]
sub ebx, 0x10
pop ecx
pop ecx
mov eax, ebx
call fcn.00401311
lea ebx, [eax + 0x10]
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x48], 5
lea eax, [esp + 0x2c]
push eax
push dword [ebp + 8]
call fcn.0047a57a
mov edi, eax
mov eax, dword [esp + 0x14]
call fcn.00402a90
lea eax, [ebx - 0x10]
call fcn.004012f9
cmp dword [esp + 0x10], esi
jmp 0x4798a7
mov eax, dword [ebx + 0x18]
lea ecx, [esp + 0x14]
push ecx
push esi
push eax
lea eax, [esp + 0x24]
push eax
xor edi, edi
mov dword [esp + 0x24], esi
call fcn.0047b009
test eax, eax
jne 0x479787
push dword [esp + 0x14]
call fcn.004cfd86
cmp eax, esi
pop ecx
mov dword [esp + 0x1c], eax
je 0x479787
mov eax, dword [ebx + 0x18]
lea ecx, [esp + 0x14]
push ecx
push dword [esp + 0x20]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0047b009
cmp eax, esi
jne 0x47977d
push dword [esp + 0x14]
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x3c]
push eax
call fcn.00423ff3
pop ecx
pop ecx
lea esi, [ebx + 0x1c]
mov edi, esi
mov byte [esp + 0x48], 3
call fcn.00402a90
mov byte [esp + 0x48], 0
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
call fcn.004012f9
mov ebx, dword [ebx + 4]
sub ebx, 0x10
mov eax, ebx
call fcn.00401311
lea ebx, [eax + 0x10]
mov dword [esp + 0x2c], ebx
lea eax, [esp + 0x2c]
push eax
push dword [ebp + 8]
mov byte [esp + 0x50], 4
call fcn.0047a57a
mov edi, eax
mov eax, esi
call fcn.00402a90
lea eax, [ebx - 0x10]
call fcn.004012f9
xor edi, edi
inc edi
xor esi, esi
push dword [esp + 0x1c]
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [esp + 0x10], esi
je 0x479797
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x4798cb
push dword [ebx + 0x18]
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], esi
push eax
lea esi, [esp + 0x24]
xor edi, edi
call fcn.00409a54
test eax, eax
jne 0x4798b8
push dword [esp + 0x1c]
mov edi, dword [ebx + 0x18]
lea esi, [ebx + 0x1c]
mov dword [esp + 0x18], esi
call fcn.00401958
push edi
lea ecx, [esp + 0x1c]
push ecx
lea esi, [esp + 0x24]
mov edi, eax
call fcn.00409a54
mov esi, dword [esp + 0x14]
mov edi, eax
mov eax, dword [esp + 0x1c]
call fcn.00406d65
test edi, edi
jne 0x4798b8
mov ebx, dword [ebx + 4]
sub ebx, 0x10
mov eax, ebx
call fcn.00401311
lea esi, [eax + 0x10]
mov dword [esp + 0x2c], esi
mov byte [esp + 0x48], 2
jmp 0x479882
push dword [ebx + 0x18]
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], esi
push eax
lea esi, [esp + 0x24]
xor edi, edi
call fcn.00409a54
test eax, eax
jne 0x4798b8
push dword [esp + 0x1c]
mov edi, dword [ebx + 0x18]
lea esi, [ebx + 0x1c]
mov dword [esp + 0x18], esi
call fcn.00401958
push edi
lea ecx, [esp + 0x1c]
push ecx
lea esi, [esp + 0x24]
mov edi, eax
call fcn.00409a54
mov esi, dword [esp + 0x14]
mov edi, eax
mov eax, dword [esp + 0x1c]
call fcn.00406d65
test edi, edi
jne 0x4798b8
mov ebx, dword [ebx + 4]
sub ebx, 0x10
mov eax, ebx
call fcn.00401311
lea esi, [eax + 0x10]
mov dword [esp + 0x2c], esi
mov byte [esp + 0x48], 1
lea eax, [esp + 0x2c]
push eax
push dword [ebp + 8]
call fcn.0047a57a
mov edi, eax
mov eax, dword [esp + 0x14]
call fcn.00402a90
lea eax, [esi - 0x10]
call fcn.004012f9
cmp dword [esp + 0x10], 0
je 0x4798b3
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x4798cb
cmp dword [esp + 0x10], 0
je 0x4798c9
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4