Function at 0x3004b69a
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x3002226c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, esi
mov dword [ebp - 0x224], eax
jne 0x3004b6cb
mov eax, 0xa0
jmp 0x3004ba28
cmp dword [0x300d6744], esi
je 0x3004b6da
xor eax, eax
jmp 0x3004ba28
push 1
push ebx
call fcn.3004b591
test eax, eax
pop ecx
pop ecx
jne 0x3004b6d3
mov eax, dword [ebx]
cmp eax, esi
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x228], esi
je 0x3004b712
push eax
call fcn.3005bada
mov dword [ebp - 0x220], eax
push edi
lea ecx, [ebp - 0x229]
call fcn.3004ad9c
push esi
push esi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebx + 8]
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x214], esi
call fcn.3004affc
add esp, 0x14
cmp eax, esi
jne 0x3004b8c9
mov eax, dword [ebp - 0x214]
cmp eax, esi
jne 0x3004b75f
mov eax, dword [ebp - 0x210]
mov eax, dword [eax]
lea ecx, [ebp - 0x21c]
push ecx
push esi
lea ecx, [ebp - 0x228]
push ecx
push esi
push dword [ebp - 0x220]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, esi
jne 0x3004b7db
cmp dword [ebp - 0x21c], esi
je 0x3004b7db
push dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
push eax
call fcn.30043358
test eax, eax
jne 0x3004b7a5
push 8
pop edi
jmp 0x3004b7db
mov eax, dword [ebp - 0x214]
cmp eax, esi
jne 0x3004b7b7
mov eax, dword [ebp - 0x210]
mov eax, dword [eax]
lea ecx, [ebp - 0x21c]
push ecx
push dword [ebp - 0x218]
lea ecx, [ebp - 0x228]
push ecx
push esi
push dword [ebp - 0x220]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
push edi
call fcn.3004a9ba
test eax, eax
pop ecx
je 0x3004b82e
push 0x796d7469
push esi
call fcn.300435c8
push dword [ebp - 0x210]
mov ecx, 0x300d5748
call fcn.3004af3a
push esi
push esi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebx + 8]
mov dword [ebp - 0x210], esi
call fcn.3004affc
mov edi, eax
add esp, 0x14
cmp edi, esi
je 0x3004b74d
jmp 0x3004b83e
push dword [ebp - 0x210]
mov ecx, 0x300d5748
call fcn.3004aeb8
cmp edi, esi
jne 0x3004b8c9
mov edx, dword [ebp - 0x218]
cmp edx, esi
je 0x3004b8c9
movzx eax, byte [ebx + 0xc]
and eax, 0xf
cmp dword [ebp - 0x228], eax
jne 0x3004b9ae
dec eax
cmp eax, 1
ja 0x3004b896
mov eax, dword [ebp - 0x21c]
push 4
push dword [ebp - 0x224]
shr eax, 1
mov word [edx + eax*2 - 2], si
push dword [ebp - 0x218]
call fcn.3005e80a
test eax, eax
jne 0x3004b9e6
jmp 0x3004b9ae
mov ecx, dword [ebp - 0x21c]
cmp ecx, dword [ebp + 0x10]
jne 0x3004b9ae
mov edi, dword [ebp - 0x224]
mov esi, edx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x3004b8b8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x3004b94b
xor edi, edi
xor esi, esi
jmp 0x3004b9e6
mov eax, dword [ebx + 4]
cmp eax, 0xcccccccc
je 0x3004b9ae
movzx ecx, byte [ebx + 0xc]
and ecx, 0xf
jle 0x3004b92f
cmp ecx, 2
jle 0x3004b8ff
cmp ecx, 4
jne 0x3004b92f
mov ecx, dword [ebp - 0x224]
cmp dword [ecx], eax
jne 0x3004b9ae
xor edi, edi
jmp 0x3004b9e6
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call fcn.30059fd6
push 4
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x224]
call fcn.3005e80a
test eax, eax
je 0x3004b9ae
jmp 0x3004b8f8
push esi
push 0x6661626f
call fcn.30043574
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebx + 4]
mov esi, dword [ebp - 0x224]
jmp 0x3004b8ad
xor esi, esi
jmp 0x3004b9ae
mov eax, dword [ebp - 0x214]
cmp eax, esi
jne 0x3004b961
mov eax, dword [ebp - 0x210]
mov eax, dword [eax]
push dword [ebp + 0x10]
movzx ecx, byte [ebx + 0xc]
push dword [ebp - 0x224]
and ecx, 0xf
push ecx
push esi
push dword [ebp - 0x220]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
push edi
call fcn.3004a9ba
test eax, eax
pop ecx
je 0x3004b9d6
push 0x796d746a
push esi
call fcn.300435c8
push dword [ebp - 0x210]
mov ecx, 0x300d5748
call fcn.3004af3a
mov dword [ebp - 0x210], esi
push esi
push 4
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebx + 8]
call fcn.3004affc
mov edi, eax
add esp, 0x14
cmp edi, esi
je 0x3004b94f
jmp 0x3004b9e6
push dword [ebp - 0x210]
mov ecx, 0x300d5748
call fcn.3004aeb8
cmp dword [ebp - 0x218], esi
je 0x3004b9ff
push dword [ebp - 0x218]
call fcn.300432ac
mov dword [ebp - 0x218], esi
cmp dword [ebp - 0x220], esi
je 0x3004ba12
push dword [ebp - 0x220]
call fcn.300432ac
cmp dword [0x300d5744], esi
je 0x3004ba25
push 0x300d5260
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.300696c7
leave
ret 0xc