Function at 0x41b5c1
Capabilities:
Set registry value

Disassembly:
push ebp
mov eax, 0x2118
lea ebp, [esp - 0x6c]
call fcn.0042de00
mov eax, dword [0x44ecf8]
push esi
mov dword [ebp + 0x68], eax
push edi
lea eax, [ebp - 0x209c]
mov esi, ecx
xor edi, edi
push eax
mov dword [ebp - 0x20ac], esi
mov dword [ebp - 0x20a4], edi
call fcn.0041ac1f
cmp eax, edi
jl 0x41b8a8
lea eax, [ebp - 0x20a4]
push eax
lea eax, [ebp - 0x209c]
push eax
call fcn.0041b8f3
test eax, eax
pop ecx
pop ecx
jne 0x41b621
mov eax, 0x80020009
jmp 0x41b8a8
mov ecx, esi
call fcn.0041abf6
lea eax, [ebp - 0x209c]
push eax
mov ecx, esi
call fcn.0041ac1f
cmp eax, edi
jl 0x41b8a8
movzx eax, word [ebp - 0x20a4]
sub eax, 8
push ebx
je 0x41b870
sub eax, 9
je 0x41b775
dec eax
dec eax
je 0x41b72e
sub eax, 0x3ff5
jne 0x41b893
lea eax, [ebp - 0x209c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add eax, eax
cmp eax, 0x100
mov dword [ebp - 0x9c], edi
jbe 0x41b696
push eax
lea ecx, [ebp - 0x9c]
call fcn.0041aa92
jmp 0x41b6a2
lea eax, [ebp - 0x98]
mov dword [ebp - 0x9c], eax
mov esi, dword [ebp - 0x9c]
cmp esi, edi
je 0x41b709
cmp word [ebp - 0x209c], 0
lea edi, [ebp - 0x209c]
je 0x41b6ee
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
push edi
call ebx
mov cx, word [edi]
cmp cx, 0x5c
jne 0x41b6e1
cmp word [eax], 0x30
jne 0x41b6e1
and word [esi], 0
inc esi
push eax
inc esi
call ebx
mov edi, eax
jmp 0x41b6e8
mov word [esi], cx
inc esi
inc esi
inc edi
inc edi
cmp word [edi], 0
jne 0x41b6c2
and word [esi], 0
push dword [ebp - 0x9c]
mov ecx, dword [ebp + 0x74]
push dword [ebp + 0x78]
call fcn.0041b8b9
mov esi, eax
xor edi, edi
jmp 0x41b70c
push 0xe
pop esi
lea eax, [ebp - 0x98]
cmp dword [ebp - 0x9c], eax
je 0x41b886
lea ecx, [ebp - 0x9c]
call fcn.0041b9b7
jmp 0x41b886
call dword [0x4531c8]
lea eax, [ebp - 0x20a0]
push eax
push edi
push edi
lea eax, [ebp - 0x209c]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x20a0]
push 4
mov dword [ebp - 0x20a8], eax
lea eax, [ebp - 0x20a8]
push eax
mov eax, dword [ebp + 0x74]
push 4
push edi
push dword [ebp + 0x78]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x41b884
lea eax, [ebp - 0x209c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test al, 1
mov dword [ebp - 0x20a0], eax
je 0x41b796
mov eax, 0x80004005
jmp 0x41b8a7
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
cmp ebx, 0x100
mov dword [ebp - 0x9c], edi
jbe 0x41b7b9
push ebx
lea ecx, [ebp - 0x9c]
call fcn.0041aa92
jmp 0x41b7c5
lea eax, [ebp - 0x98]
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], edi
jne 0x41b7e4
lea eax, [ebp - 0x98]
test eax, eax
je 0x41b78c
lea ecx, [ebp - 0x9c]
call fcn.0041b9b7
jmp 0x41b78c
push ebx
push edi
push dword [ebp - 0x9c]
call fcn.0042d770
add esp, 0xc
cmp dword [ebp - 0x20a0], edi
jle 0x41b83a
mov eax, edi
cdq
sub eax, edx
mov esi, eax
xor eax, eax
mov ax, word [ebp + edi*2 - 0x209c]
sar esi, 1
add esi, dword [ebp - 0x9c]
push eax
call fcn.0041b985
pop ecx
mov ecx, edi
and ecx, 1
shl ecx, 2
mov edx, ecx
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 0x20a0]
jl 0x41b7fc
xor edi, edi
mov eax, dword [ebp + 0x74]
mov eax, dword [eax]
push ebx
push dword [ebp - 0x9c]
push 3
push edi
push dword [ebp + 0x78]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
lea eax, [ebp - 0x98]
cmp dword [ebp - 0x9c], eax
je 0x41b886
lea ecx, [ebp - 0x9c]
call fcn.0041b9b7
jmp 0x41b886
mov ecx, dword [ebp + 0x74]
push 1
lea eax, [ebp - 0x209c]
push eax
push dword [ebp + 0x78]
call fcn.0041251a
mov esi, eax
cmp esi, edi
je 0x41b893
push esi
call fcn.0041b518
pop ecx
jmp 0x41b8a7
push dword [ebp + 0x7c]
mov ecx, dword [ebp - 0x20ac]
call fcn.0041ac1f
cmp eax, edi
jl 0x41b8a7
xor eax, eax
pop ebx
mov ecx, dword [ebp + 0x68]
pop edi
pop esi
call fcn.0042dc80
add ebp, 0x6c
leave
ret 0xc