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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x107342c]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x25
push dword [esi + 4]
xor ebx, ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x120], ebx
call dword [0x1001530]
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0x110], eax
je 0x1028067
push 0x208
push ebx
call dword [fcn.01001418]
cmp eax, ebx
mov dword [ebp - 0x110], eax
je 0x102830f
mov edi, dword [0x10012c0]
mov ebx, 0x104
push ebx
push eax
push dword [esi + 4]
call edi
test eax, eax
mov dword [ebp - 0x10c], eax
je 0x1027ff9
cmp eax, ebx
jbe 0x1028053
push dword [ebp - 0x110]
mov ebx, dword [fcn.010014a0]
call ebx
mov eax, dword [ebp - 0x10c]
test eax, eax
je 0x102830f
lea eax, [eax + eax + 2]
push eax
push 0
call dword [fcn.01001418]
test eax, eax
mov dword [ebp - 0x110], eax
je 0x102830f
push dword [ebp - 0x10c]
push eax
push dword [esi + 4]
call edi
test eax, eax
mov dword [ebp - 0x10c], eax
jne 0x1028053
push dword [ebp - 0x110]
call ebx
jmp 0x102830f
mov eax, dword [esi + 4]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x110]
mov dword [esi + 4], eax
xor ebx, ebx
lea eax, [ebp - 0x114]
push eax
push 0x2001f
push ebx
push 0x1011308
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102830f
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x104]
mov dword [ebp - 0x108], eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x124]
push eax
push ebx
push dword [esi]
mov dword [ebp - 0x10c], 0x100
push dword [ebp - 0x114]
call edi
cmp eax, ebx
je 0x1028113
cmp eax, 3
je 0x102811e
cmp eax, 2
je 0x102811e
push dword [ebp - 0x10c]
push ebx
call dword [fcn.01001418]
cmp eax, ebx
mov dword [ebp - 0x108], eax
je 0x1028303
lea ecx, [ebp - 0x10c]
push ecx
push eax
lea eax, [ebp - 0x124]
push eax
push ebx
push dword [esi]
push dword [ebp - 0x114]
call edi
test eax, eax
jne 0x10282cc
mov edi, dword [ebp - 0x108]
jmp 0x10281e8
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x102812e
cmp eax, 1
jne 0x1028303
push dword [esi + 4]
call dword [0x1001514]
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [esi + 4]
push 1
push ebx
push dword [esi]
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x1028303
cmp word [edi], bx
je 0x10281f6
push 0x2c
push edi
call dword [0x1001530]
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x1028173
mov word [edi], bx
push dword [esi + 4]
push dword [ebp - 0x118]
call dword [0x10015e0]
test eax, eax
pop ecx
pop ecx
jne 0x10281dd
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x10282cc
cmp eax, 1
je 0x10282cc
cmp eax, 2
jne 0x10281dd
cmp edi, ebx
je 0x10281c8
lea ebx, [edi + 2]
push ebx
call dword [0x1001514]
lea eax, [eax + eax + 2]
push eax
push ebx
push dword [ebp - 0x118]
call dword [0x100152c]
add esp, 0x10
xor ebx, ebx
jmp 0x10281d1
mov eax, dword [ebp - 0x118]
mov word [eax], bx
mov dword [ebp - 0x11c], 1
jmp 0x10281ee
cmp edi, ebx
je 0x10281f6
mov word [edi], 0x2c
inc edi
inc edi
mov dword [ebp - 0x118], edi
cmp edi, ebx
jne 0x1028156
mov eax, dword [esi + 8]
cmp eax, 1
je 0x1028206
cmp eax, ebx
jne 0x102829b
push dword [esi + 4]
call dword [0x1001514]
pop ecx
mov ecx, dword [ebp - 0x10c]
lea eax, [ecx + eax*2 + 4]
push eax
push ebx
call dword [fcn.01001418]
mov ebx, eax
test ebx, ebx
je 0x1028299
and word [ebx], 0
cmp dword [esi + 8], 1
mov edi, dword [0x10015d4]
jne 0x102824d
push dword [esi + 4]
push ebx
call dword [fcn.010015c0]
push 0x101276c
push ebx
call edi
add esp, 0x10
push dword [ebp - 0x108]
push ebx
call edi
cmp dword [esi + 8], 0
pop ecx
pop ecx
jne 0x102826f
push 0x101276c
push ebx
call edi
push dword [esi + 4]
push ebx
call edi
add esp, 0x10
lea eax, [ebp - 0x104]
cmp dword [ebp - 0x108], eax
je 0x1028289
push dword [ebp - 0x108]
call dword [fcn.010014a0]
mov dword [ebp - 0x108], ebx
mov dword [ebp - 0x11c], 1
xor ebx, ebx
cmp dword [ebp - 0x11c], ebx
je 0x10282cc
push dword [ebp - 0x108]
call dword [0x1001514]
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x108]
push 1
push ebx
push dword [esi]
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x104]
cmp dword [ebp - 0x108], eax
je 0x10282e6
push dword [ebp - 0x108]
call dword [fcn.010014a0]
cmp dword [ebp - 0x110], ebx
je 0x1028303
push dword [ebp - 0x110]
call dword [fcn.010014a0]
mov eax, dword [ebp - 0x120]
mov dword [esi + 4], eax
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0103e4d8
leave
ret 4