Function at 0x4177e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d6e1
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x22a8
call fcn.004b0330
mov eax, dword [0x5a6900]
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.00415fc0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jge 0x417856
mov eax, dword [ebp - 0x1c]
jmp 0x417d33
lea eax, [ebp - 0x2020]
push eax
lea ecx, [ebp - 0x201c]
push ecx
call fcn.00417eb0
add esp, 8
test eax, eax
jne 0x417882
push 0x20f
mov ecx, dword [ebp - 0x18]
call fcn.00415e90
jmp 0x417d33
mov ecx, dword [ebp - 0x18]
call fcn.00415f10
lea eax, [ebp - 0x201c]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.00415fc0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jge 0x4178aa
mov eax, dword [ebp - 0x1c]
jmp 0x417d33
movzx eax, word [ebp - 0x2020]
mov dword [ebp - 0x22b8], eax
cmp dword [ebp - 0x22b8], 0x13
jg 0x4178e8
cmp dword [ebp - 0x22b8], 0x13
je 0x417acb
cmp dword [ebp - 0x22b8], 8
je 0x4178f9
cmp dword [ebp - 0x22b8], 0x11
je 0x417b4a
jmp 0x417cf3
cmp dword [ebp - 0x22b8], 0x4008
je 0x417919
jmp 0x417cf3
push 1
lea eax, [ebp - 0x201c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00417da0
mov dword [ebp - 0x2024], eax
jmp 0x417cf3
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.004110d0
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x202c]
push eax
lea ecx, [ebp - 0x2130]
call fcn.00418c20
jmp 0x417971
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2130]
call fcn.004138e0
test eax, eax
je 0x417aaa
lea ecx, [ebp - 0x2130]
call fcn.004138e0
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 0x417a65
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 0x417a21
mov eax, dword [ebp - 0x2140]
movzx ecx, word [eax]
cmp ecx, 0x30
jne 0x417a21
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 0x417a51
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 0x4179b2
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.004138e0
push eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.00417e10
mov dword [ebp - 0x2024], eax
jmp 0x417ab4
mov dword [ebp - 0x2024], 0xe
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2130]
call fcn.00418c50
jmp 0x417cf3
call fcn.00413850
mov dword [ebp - 0x214c], eax
lea ecx, [ebp - 0x2158]
call fcn.004110d0
mov dword [ebp - 4], 3
push 0x400
lea eax, [ebp - 0x201c]
push eax
call fcn.0042b920
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.00417d60
mov dword [ebp - 0x2024], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2158]
call fcn.004187a0
jmp 0x417cf3
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 0x417b72
mov eax, 0x80004005
jmp 0x417d33
mov eax, dword [ebp - 0x2160]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x2164], eax
lea ecx, [ebp - 0x2268]
call fcn.004110d0
mov dword [ebp - 4], 4
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x2164]
push eax
lea ecx, [ebp - 0x2268]
call fcn.00418c80
jmp 0x417bc5
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x2268]
call fcn.004138e0
test eax, eax
jne 0x417c02
mov dword [ebp - 0x22b4], 0x80004005
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2268]
call fcn.00418c50
mov eax, dword [ebp - 0x22b4]
jmp 0x417d33
mov eax, dword [ebp - 0x2164]
push eax
push 0
lea ecx, [ebp - 0x2268]
call fcn.004138e0
push eax
call fcn.004af7d0
add esp, 0xc
mov dword [ebp - 0x2270], 0
jmp 0x417c3a
mov eax, dword [ebp - 0x2270]
add eax, 1
mov dword [ebp - 0x2270], eax
mov eax, dword [ebp - 0x2270]
cmp eax, dword [ebp - 0x2160]
jge 0x417cb1
mov eax, dword [ebp - 0x2270]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
lea ecx, [ebp - 0x2268]
call fcn.004138e0
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.00417f80
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 0x417c2b
mov eax, dword [ebp - 0x2164]
push eax
lea ecx, [ebp - 0x2268]
call fcn.004138e0
push eax
push 3
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004138e0
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.00418c50
cmp dword [ebp - 0x2024], 0
je 0x417d17
mov dword [ebp - 0x2028], 0x204
mov eax, dword [ebp - 0x2024]
push eax
call fcn.004173f0
add esp, 4
jmp 0x417d33
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.00415fc0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jge 0x417d31
mov eax, dword [ebp - 0x1c]
jmp 0x417d33
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.004af76a
mov esp, ebp
pop ebp
ret 0xc