Function at 0x401b27
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x20a0]
mov eax, 0x2120
call fcn.00411770
mov eax, dword [0x41b214]
xor eax, ebp
mov dword [ebp + 0x209c], eax
mov eax, dword [ebp + 0x20a8]
push ebx
push esi
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x20ac]
push edi
mov esi, ecx
mov edi, edx
mov dword [ebp - 0x80], eax
xor ebx, ebx
lea eax, [ebp + 0x9c]
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], ebx
call fcn.00401a16
cmp eax, ebx
jl 0x401e1c
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x9c]
push eax
call fcn.00401938
test eax, eax
pop ecx
pop ecx
jne 0x401b9d
mov eax, 0x80020009
jmp 0x401e1c
call fcn.004019f1
lea eax, [ebp + 0x9c]
mov ecx, esi
call fcn.00401a16
cmp eax, ebx
jl 0x401e1c
movzx eax, word [ebp - 0x6c]
sub eax, 8
je 0x401dd5
sub eax, 9
je 0x401cce
dec eax
dec eax
je 0x401ca2
sub eax, 0x3ff5
jne 0x401e0b
lea eax, [ebp + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push 2
inc eax
pop ecx
mul ecx
cmp edx, ebx
mov dword [ebp - 0x68], ebx
ja 0x401c00
cmp eax, 0xffffffff
jbe 0x401c0a
push 0x80070057
call fcn.0040102a
cmp eax, 0x100
jbe 0x401c1d
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00403273
jmp 0x401c23
lea eax, [ebp - 0x64]
mov dword [ebp - 0x68], eax
mov edi, dword [ebp - 0x68]
cmp edi, ebx
je 0x401c86
cmp word [ebp + 0x9c], bx
lea esi, [ebp + 0x9c]
je 0x401c6d
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
push esi
call ebx
movzx ecx, word [esi]
cmp cx, 0x5c
jne 0x401c5e
cmp word [eax], 0x30
jne 0x401c5e
and word [edi], 0
inc edi
push eax
inc edi
call ebx
mov esi, eax
jmp 0x401c65
mov word [edi], cx
inc edi
inc edi
inc esi
inc esi
cmp word [esi], 0
jne 0x401c3f
xor ebx, ebx
mov word [edi], bx
mov word [edi + 2], bx
push dword [ebp - 0x68]
push dword [ebp - 0x74]
push dword [ebp - 0x70]
call fcn.00401330
mov esi, eax
jmp 0x401c89
push 0xe
pop esi
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x68], eax
je 0x401dfe
lea eax, [ebp - 0x68]
call fcn.004031a7
jmp 0x401dfe
call dword [0x41b068]
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
lea eax, [ebp + 0x9c]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x6c], eax
push 4
lea eax, [ebp - 0x6c]
push eax
push 4
jmp 0x401df0
lea eax, [ebp + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test al, 1
mov dword [ebp - 0x6c], eax
je 0x401cec
mov eax, 0x80004005
jmp 0x401e1c
cdq
sub eax, edx
mov esi, eax
sar esi, 1
cmp ebx, ebx
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x68], ebx
ja 0x401c00
cmp esi, 0xffffffff
ja 0x401c00
cmp esi, 0x100
jbe 0x401d1e
push esi
lea eax, [ebp - 0x68]
push eax
call fcn.00403273
jmp 0x401d24
lea eax, [ebp - 0x64]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], ebx
jne 0x401d3a
lea eax, [ebp - 0x64]
test eax, eax
je 0x401ce2
lea eax, [ebp - 0x68]
call fcn.004031a7
jmp 0x401ce2
push esi
push ebx
push dword [ebp - 0x68]
call fcn.00407c10
add esp, 0xc
xor esi, esi
cmp dword [ebp - 0x6c], ebx
jle 0x401dac
movzx ecx, word [ebp + esi*2 + 0x9c]
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x68]
movzx edx, cx
cmp edx, 0x30
jl 0x401d90
cmp edx, 0x39
jle 0x401d89
cmp edx, 0x40
jle 0x401d90
cmp edx, 0x46
jle 0x401d84
add edx, 0xffffff9f
cmp edx, 5
ja 0x401d90
sub cl, 0x57
jmp 0x401d8c
sub cl, 0x37
jmp 0x401d8c
sub cl, 0x30
mov dl, cl
jmp 0x401d92
xor dl, dl
mov edi, esi
and edi, 1
shl edi, 2
push 4
pop ecx
sub ecx, edi
shl dl, cl
or byte [eax], dl
inc esi
cmp esi, dword [ebp - 0x6c]
jl 0x401d4e
mov edi, dword [ebp - 0x70]
push dword [ebp - 0x7c]
mov eax, dword [edi]
push dword [ebp - 0x68]
push 3
push ebx
push dword [ebp - 0x74]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x68], eax
je 0x401dfe
lea eax, [ebp - 0x68]
call fcn.004031a7
jmp 0x401dfe
lea eax, [ebp + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp + 0x9c]
push eax
push 1
push ebx
push dword [ebp - 0x74]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp esi, ebx
je 0x401e0b
mov eax, esi
call fcn.00401135
jmp 0x401e1c
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x78]
call fcn.00401a16
cmp eax, ebx
jl 0x401e1c
xor eax, eax
mov ecx, dword [ebp + 0x209c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004076ec
add ebp, 0x20a0
leave
ret 8