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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x3002450c]
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 0x30109ccd
mov eax, 0xa0
jmp 0x3010a02a
cmp dword [0x3027e604], esi
je 0x30109cdc
xor eax, eax
jmp 0x3010a02a
push 1
push ebx
call fcn.30109b93
test eax, eax
pop ecx
pop ecx
jne 0x30109cd5
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 0x30109d14
push eax
call fcn.301269f0
mov dword [ebp - 0x220], eax
push edi
lea ecx, [ebp - 0x229]
call fcn.301091e5
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.30109475
add esp, 0x14
cmp eax, esi
jne 0x30109ecb
mov eax, dword [ebp - 0x214]
cmp eax, esi
jne 0x30109d61
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 0x30109ddd
cmp dword [ebp - 0x21c], esi
je 0x30109ddd
push dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
push eax
call fcn.30108c70
test eax, eax
jne 0x30109da7
push 8
pop edi
jmp 0x30109ddd
mov eax, dword [ebp - 0x214]
cmp eax, esi
jne 0x30109db9
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.30108e03
test eax, eax
pop ecx
je 0x30109e30
push 0x796d7469
push esi
call fcn.3010aab4
push dword [ebp - 0x210]
mov ecx, 0x30278200
call fcn.30109383
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.30109475
mov edi, eax
add esp, 0x14
cmp edi, esi
je 0x30109d4f
jmp 0x30109e40
push dword [ebp - 0x210]
mov ecx, 0x30278200
call fcn.30109301
cmp edi, esi
jne 0x30109ecb
mov edx, dword [ebp - 0x218]
cmp edx, esi
je 0x30109ecb
movzx eax, byte [ebx + 0xc]
and eax, 0xf
cmp dword [ebp - 0x228], eax
jne 0x30109fb0
dec eax
cmp eax, 1
ja 0x30109e98
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.30129cc6
test eax, eax
jne 0x30109fe8
jmp 0x30109fb0
mov ecx, dword [ebp - 0x21c]
cmp ecx, dword [ebp + 0x10]
jne 0x30109fb0
mov edi, dword [ebp - 0x224]
mov esi, edx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x30109eba
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x30109f4d
xor edi, edi
xor esi, esi
jmp 0x30109fe8
mov eax, dword [ebx + 4]
cmp eax, 0xcccccccc
je 0x30109fb0
movzx ecx, byte [ebx + 0xc]
and ecx, 0xf
jle 0x30109f31
cmp ecx, 2
jle 0x30109f01
cmp ecx, 4
jne 0x30109f31
mov ecx, dword [ebp - 0x224]
cmp dword [ecx], eax
jne 0x30109fb0
xor edi, edi
jmp 0x30109fe8
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call fcn.30123c26
push 4
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x224]
call fcn.30129cc6
test eax, eax
je 0x30109fb0
jmp 0x30109efa
push esi
push 0x6661626f
call fcn.3010aa60
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebx + 4]
mov esi, dword [ebp - 0x224]
jmp 0x30109eaf
xor esi, esi
jmp 0x30109fb0
mov eax, dword [ebp - 0x214]
cmp eax, esi
jne 0x30109f63
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.30108e03
test eax, eax
pop ecx
je 0x30109fd8
push 0x796d746a
push esi
call fcn.3010aab4
push dword [ebp - 0x210]
mov ecx, 0x30278200
call fcn.30109383
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.30109475
mov edi, eax
add esp, 0x14
cmp edi, esi
je 0x30109f51
jmp 0x30109fe8
push dword [ebp - 0x210]
mov ecx, 0x30278200
call fcn.30109301
cmp dword [ebp - 0x218], esi
je 0x3010a001
push dword [ebp - 0x218]
call fcn.30108bc4
mov dword [ebp - 0x218], esi
cmp dword [ebp - 0x220], esi
je 0x3010a014
push dword [ebp - 0x220]
call fcn.30108bc4
cmp dword [0x302781f8], esi
je 0x3010a027
push 0x3027acb8
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.30136bd1
leave
ret 0xc