Function at 0x41d270
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x547101
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x22a8
call fcn.004b8770
mov eax, dword [0x5b2390]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
xor eax, eax
mov word [ebp - 0x2020], ax
mov dword [ebp - 0x2024], 0
mov dword [ebp - 0x2028], 0
lea eax, [ebp - 0x201c]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.0041ba30
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jge 0x41d2e6
mov eax, dword [ebp - 0x1c]
jmp 0x41d7c3
lea eax, [ebp - 0x2020]
push eax
lea ecx, [ebp - 0x201c]
push ecx
call fcn.0041d940
add esp, 8
test eax, eax
jne 0x41d312
push 0x20f
mov ecx, dword [ebp - 0x18]
call fcn.0041b900
jmp 0x41d7c3
mov ecx, dword [ebp - 0x18]
call fcn.0041b980
lea eax, [ebp - 0x201c]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.0041ba30
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jge 0x41d33a
mov eax, dword [ebp - 0x1c]
jmp 0x41d7c3
movzx eax, word [ebp - 0x2020]
mov dword [ebp - 0x22b8], eax
cmp dword [ebp - 0x22b8], 0x13
jg 0x41d378
cmp dword [ebp - 0x22b8], 0x13
je 0x41d55b
cmp dword [ebp - 0x22b8], 8
je 0x41d389
cmp dword [ebp - 0x22b8], 0x11
je 0x41d5da
jmp 0x41d783
cmp dword [ebp - 0x22b8], 0x4008
je 0x41d3a9
jmp 0x41d783
push 1
lea eax, [ebp - 0x201c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0041d830
mov dword [ebp - 0x2024], eax
jmp 0x41d783
lea eax, [ebp - 0x201c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 2
mov dword [ebp - 0x202c], eax
lea ecx, [ebp - 0x2130]
call fcn.00433690
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x202c]
push eax
lea ecx, [ebp - 0x2130]
call fcn.0041e6e0
jmp 0x41d401
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2130]
call fcn.0041ced0
test eax, eax
je 0x41d53a
lea ecx, [ebp - 0x2130]
call fcn.0041ced0
mov dword [ebp - 0x2138], eax
lea eax, [ebp - 0x201c]
mov dword [ebp - 0x213c], eax
mov dword [ebp - 0x202c], 0
mov eax, dword [ebp - 0x213c]
movzx ecx, word [eax]
test ecx, ecx
je 0x41d4f5
mov eax, dword [ebp - 0x213c]
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov dword [ebp - 0x2140], eax
mov eax, dword [ebp - 0x213c]
movzx ecx, word [eax]
cmp ecx, 0x5c
jne 0x41d4b1
mov eax, dword [ebp - 0x2140]
movzx ecx, word [eax]
cmp ecx, 0x30
jne 0x41d4b1
xor eax, eax
mov ecx, dword [ebp - 0x2138]
mov word [ecx], ax
mov edx, dword [ebp - 0x2138]
add edx, 2
mov dword [ebp - 0x2138], edx
mov eax, dword [ebp - 0x2140]
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov dword [ebp - 0x213c], eax
jmp 0x41d4e1
mov eax, dword [ebp - 0x2138]
mov ecx, dword [ebp - 0x213c]
mov dx, word [ecx]
mov word [eax], dx
mov eax, dword [ebp - 0x2138]
add eax, 2
mov dword [ebp - 0x2138], eax
mov eax, dword [ebp - 0x213c]
add eax, 2
mov dword [ebp - 0x213c], eax
mov eax, dword [ebp - 0x202c]
add eax, 1
mov dword [ebp - 0x202c], eax
jmp 0x41d442
xor eax, eax
mov ecx, dword [ebp - 0x2138]
mov word [ecx], ax
mov eax, dword [ebp - 0x2138]
add eax, 2
mov dword [ebp - 0x2138], eax
xor eax, eax
mov ecx, dword [ebp - 0x2138]
mov word [ecx], ax
lea ecx, [ebp - 0x2130]
call fcn.0041ced0
push eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.0041d8a0
mov dword [ebp - 0x2024], eax
jmp 0x41d544
mov dword [ebp - 0x2024], 0xe
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2130]
call fcn.0041e680
jmp 0x41d783
call fcn.00414ed0
mov dword [ebp - 0x214c], eax
lea ecx, [ebp - 0x2158]
call fcn.00433690
mov dword [ebp - 4], 3
push 0x400
lea eax, [ebp - 0x201c]
push eax
call fcn.0041aad0
add esp, 8
mov dword [ebp - 0x215c], eax
lea eax, [ebp - 0x2144]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x215c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x2144]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0041d7f0
mov dword [ebp - 0x2024], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2158]
call fcn.0041e230
jmp 0x41d783
lea eax, [ebp - 0x201c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x2160], eax
mov eax, dword [ebp - 0x2160]
and eax, 1
je 0x41d602
mov eax, 0x80004005
jmp 0x41d7c3
mov eax, dword [ebp - 0x2160]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x2164], eax
lea ecx, [ebp - 0x2268]
call fcn.00433690
mov dword [ebp - 4], 4
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x2164]
push eax
lea ecx, [ebp - 0x2268]
call fcn.0041e710
jmp 0x41d655
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x2268]
call fcn.0041ced0
test eax, eax
jne 0x41d692
mov dword [ebp - 0x22b4], 0x80004005
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2268]
call fcn.0041e680
mov eax, dword [ebp - 0x22b4]
jmp 0x41d7c3
mov eax, dword [ebp - 0x2164]
push eax
push 0
lea ecx, [ebp - 0x2268]
call fcn.0041ced0
push eax
call fcn.004b7bc0
add esp, 0xc
mov dword [ebp - 0x2270], 0
jmp 0x41d6ca
mov eax, dword [ebp - 0x2270]
add eax, 1
mov dword [ebp - 0x2270], eax
mov eax, dword [ebp - 0x2270]
cmp eax, dword [ebp - 0x2160]
jge 0x41d741
mov eax, dword [ebp - 0x2270]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
lea ecx, [ebp - 0x2268]
call fcn.0041ced0
add eax, esi
mov dword [ebp - 0x22b8], eax
mov eax, dword [ebp - 0x2270]
and eax, 1
mov esi, 1
sub esi, eax
shl esi, 2
mov ecx, dword [ebp - 0x2270]
movzx edx, word [ebp + ecx*2 - 0x201c]
push edx
call fcn.0041da10
add esp, 4
movzx eax, al
mov ecx, esi
shl eax, cl
mov ecx, dword [ebp - 0x22b8]
movzx edx, byte [ecx]
or edx, eax
mov eax, dword [ebp - 0x22b8]
mov byte [eax], dl
jmp 0x41d6bb
mov eax, dword [ebp - 0x2164]
push eax
lea ecx, [ebp - 0x2268]
call fcn.0041ced0
push eax
push 3
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0041ced0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x2024], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2268]
call fcn.0041e680
cmp dword [ebp - 0x2024], 0
je 0x41d7a7
mov dword [ebp - 0x2028], 0x204
mov eax, dword [ebp - 0x2024]
push eax
call fcn.0041ce60
add esp, 4
jmp 0x41d7c3
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.0041ba30
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jge 0x41d7c1
mov eax, dword [ebp - 0x1c]
jmp 0x41d7c3
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b7b5d
mov esp, ebp
pop ebp
ret 0xc