Function at 0x101bff8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
lea eax, [ebp - 8]
push 0x1022e40
push eax
call fcn.0101bd6a
xor ebx, ebx
cmp eax, ebx
jl 0x101c104
mov eax, dword [0x1022e40]
mov byte [0x1022e44], bl
cmp eax, ebx
mov dword [0x1022c2c], ebx
je 0x101c0a6
push ebx
push str.Os2LibPath
push eax
push 0x400
push dword [0x1022c30]
mov esi, 0x1022c28
push esi
call fcn.0101c8cf
test al, al
je 0x101c05c
push esi
call fcn.0101c874
mov byte [0x1022e44], 1
cmp byte [0x1022e44], bl
je 0x101c0a6
cmp word [0x1022c28], bx
jne 0x101c0a6
lea eax, [ebp - 0x18]
push 0x1022c38
push eax
call dword [sym.imp.NTDLL.DLL_RtlInitUnicodeString]
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.NTDLL.DLL_RtlCopyUnicodeString]
push 0x100caec
push esi
call dword [sym.imp.NTDLL.DLL_RtlAppendUnicodeToString]
movzx eax, word [0x1022c28]
mov ecx, dword [0x1022c2c]
shr eax, 1
mov word [ecx + eax*2], bx
push 0x4000
push ebx
push dword [0x1022c30]
call dword [sym.imp.NTDLL.DLL_RtlAllocateHeap]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x101c10b
mov eax, dword [0x1022c2c]
cmp eax, ebx
je 0x101c0e2
push eax
push ebx
push dword [0x1022c30]
call dword [sym.imp.NTDLL.DLL_RtlFreeHeap]
mov dword [0x1022c2c], ebx
mov byte [0x1022e44], bl
mov eax, dword [0x1022e40]
mov esi, dword [sym.imp.NTDLL.DLL_NtClose]
cmp eax, ebx
je 0x101c0fa
push eax
call esi
mov dword [0x1022e40], ebx
push dword [ebp - 8]
call esi
mov eax, 0xc0000017
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [0x7ffe02c0], 1
jne 0x101c15e
lea eax, [ebp - 0x10]
mov esi, 0x1021bf8
push eax
call fcn.0101c508
test al, al
jne 0x101c12d
mov dword [ebp - 0x10], 0x61
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
movzx dx, byte [esi]
inc esi
cmp dx, 7
jne 0x101c16a
mov eax, dword [0x1022c38]
mov ecx, 0x1022c3a
cmp ax, bx
je 0x101c18c
mov edi, dword [ebp - 4]
mov word [edi], ax
add dword [ebp - 4], 2
mov ax, word [ecx]
inc ecx
inc ecx
jmp 0x101c148
mov esi, str.NTREM_Here_is_a_summary_of_what_is_allowed_to_appear_in_this_registry_entry:
jmp 0x101c12d
mov eax, dword [ebp - 4]
jmp 0x101c133
cmp dword [0x7ffe02c0], 1
jne 0x101c322
cmp dx, 8
jne 0x101c322
mov cx, word [ebp - 0x10]
mov word [eax], cx
add dword [ebp - 4], 2
cmp dx, bx
jne 0x101c165
cmp byte [esi], bl
jne 0x101c165
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.0101b678
test al, al
je 0x101c1bb
lea eax, [ebp - 4]
push eax
call fcn.0101badc
call fcn.0101bb6a
cmp dword [0x7ffe02c0], 1
mov edi, dword [sym.imp.NTDLL.DLL_RtlFreeHeap]
mov esi, dword [sym.imp.NTDLL.DLL_NtSetValueKey]
je 0x101c2bb
cmp byte [0x1022e44], bl
je 0x101c225
lea eax, [ebp - 0x20]
push str.Os2LibPath
push eax
call dword [sym.imp.NTDLL.DLL_RtlInitUnicodeString]
movzx eax, word [0x1022c28]
inc eax
inc eax
push eax
lea eax, [ebp - 0x20]
push dword [0x1022c2c]
push 2
push ebx
push eax
push dword [0x1022e40]
call esi
push dword [0x1022c2c]
mov byte [0x1022e44], bl
push ebx
push dword [0x1022c30]
call edi
mov dword [0x1022c2c], ebx
cmp dword [0x1022e48], ebx
je 0x101c2bb
push ebx
push 0x100cae0
push dword [0x1022e40]
lea eax, [ebp - 0x18]
push 0x400
push dword [0x1022c30]
push eax
call fcn.0101c8cf
test al, al
je 0x101c2a6
cmp word [ebp - 0x18], bx
je 0x101c29a
lea eax, [ebp - 0x18]
push 1
push eax
push dword [0x1022e48]
push dword [0x1022c30]
call fcn.0101c628
lea eax, [ebp - 0x28]
push 0x100cae0
push eax
call dword [sym.imp.NTDLL.DLL_RtlInitUnicodeString]
movzx eax, word [ebp - 0x18]
inc eax
inc eax
push eax
lea eax, [ebp - 0x28]
push dword [ebp - 0x14]
push 2
push ebx
push eax
push dword [0x1022e40]
call esi
push dword [ebp - 0x14]
push ebx
push dword [0x1022c30]
call edi
push dword [0x1022e48]
push ebx
push dword [0x1022c30]
call edi
mov dword [0x1022e48], ebx
mov eax, dword [0x1022e40]
cmp eax, ebx
je 0x101c2d1
push eax
call dword [sym.imp.NTDLL.DLL_NtClose]
mov dword [0x1022e40], ebx
mov eax, dword [ebp - 4]
push str.config.sys
mov word [eax], bx
add dword [ebp - 4], 2
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.NTDLL.DLL_RtlInitUnicodeString]
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x30]
push dword [ebp - 0xc]
push 7
push ebx
push eax
push dword [ebp - 8]
call esi
push dword [ebp - 0xc]
mov esi, eax
push ebx
push dword [0x1022c30]
call edi
push dword [ebp - 8]
cmp esi, ebx
jge 0x101c32a
call dword [sym.imp.NTDLL.DLL_NtClose]
mov eax, esi
jmp 0x101c104
mov word [eax], dx
jmp 0x101c188
call dword [sym.imp.NTDLL.DLL_NtClose]
xor eax, eax
jmp 0x101c104