Function at 0x102da43
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x103e010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
push ebx
xor ecx, ecx
push esi
mov word [ebp - 0x20c], cx
lea ecx, [ebp - 0x214]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
xor ebx, ebx
add eax, 4
push ebx
push 2
mov ecx, eax
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x214], 0x104
mov dword [ebp - 0x218], eax
call fcn.01015d45
push eax
push 0x1005ff0
push 0x80000001
call dword [sym.imp.KERNEL32.dll_RegGetValueW]
test eax, eax
jne 0x102dcb5
cmp dword [ebp - 0x214], 2
jb 0x102dcb5
lea esi, [ebp - 0x20c]
lea ecx, [esi + 2]
mov ax, word [esi]
inc esi
inc esi
cmp ax, bx
jne 0x102dac7
sub esi, ecx
sar esi, 1
cmp esi, 0xb
jb 0x102db85
push edi
lea edi, [ebp - 0x1f6]
push 0xb
lea eax, [edi - 0x16]
push 0x100646c
push eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x102db22
test ebx, ebx
je 0x102db0f
movzx eax, word [edi - 0x18]
push eax
call sub.msvcrt.dll_isspace
pop ecx
test eax, eax
je 0x102db22
movzx eax, word [edi]
push eax
call sub.msvcrt.dll_isspace
pop ecx
test eax, eax
jne 0x102db2e
cmp word [edi], ax
je 0x102db2e
inc ebx
inc edi
lea eax, [esi - 0xb]
inc edi
cmp ebx, eax
jbe 0x102dae5
jmp 0x102db84
test ebx, ebx
jne 0x102db36
xor ecx, ecx
jmp 0x102db39
lea ecx, [ebx - 1]
lea eax, [ebx + 0xb]
cmp eax, esi
jb 0x102db4c
xor eax, eax
mov word [ebp + ecx*2 - 0x20c], ax
jmp 0x102db84
sub esi, ebx
test ecx, ecx
je 0x102db68
lea edx, [esi + esi - 0x14]
lea eax, [ebp + eax*2 - 0x20c]
push edx
push eax
lea eax, [ebp + ecx*2 - 0x20c]
jmp 0x102db7b
lea ecx, [esi + esi - 0x16]
lea eax, [ebp + eax*2 - 0x20a]
push ecx
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.msvcrt.dll_memmove
add esp, 0xc
pop edi
lea eax, [ebp - 0x210]
push eax
push 2
xor ebx, ebx
push ebx
mov esi, 0x1005ff0
push esi
push 0x80000001
call dword [sym.imp.KERNEL32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102dc83
cmp dword [ebp - 0x210], ebx
je 0x102dc83
cmp word [ebp - 0x20c], bx
jne 0x102dc14
mov ecx, dword [ebp - 0x218]
call fcn.01015d45
push eax
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_RegDeleteValueW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x102dbeb
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x102dcf0
test byte [eax + 0x1c], 1
je 0x102dcf0
push esi
push 0x1006378
push 0x37
jmp 0x102dce5
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x102dc1d
sub eax, edx
sar eax, 1
add eax, eax
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push ebx
push esi
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_RegSetValueExW]
test eax, eax
je 0x102dc7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x102dc5d
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x102dcf0
test byte [eax + 0x1c], 1
je 0x102dcf0
push esi
push 0x1006378
push 0x38
jmp 0x102dce5
xor esi, esi
jmp 0x102dcf0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x102dc97
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x102dcf0
test byte [eax + 0x1c], 1
je 0x102dcf0
push esi
push 0x1006378
push 0x36
jmp 0x102dce5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x102dcc9
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x102dcf0
test byte [eax + 0x1c], 1
je 0x102dcf0
push esi
push 0x1006378
push 0x35
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
cmp dword [ebp - 0x210], ebx
je 0x102dd04
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.010084d5
leave
ret