Function at 0x408700
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40f591
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2274
call fcn.0040e6e0
mov eax, dword [0x414378]
xor eax, ebp
mov dword [ebp - 0x24], 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 - 0x227c], ecx
xor eax, eax
mov word [ebp - 0x1c], ax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x2028]
push ecx
mov ecx, dword [ebp - 0x227c]
call fcn.00406fc0
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x408773
mov eax, dword [ebp - 0x20]
jmp 0x408c28
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x2028]
push eax
call fcn.00408d70
add esp, 8
test eax, eax
jne 0x40879f
push 0x20f
mov ecx, dword [ebp - 0x227c]
call fcn.00406eb0
jmp 0x408c28
mov ecx, dword [ebp - 0x227c]
call fcn.00406f20
lea ecx, [ebp - 0x2028]
push ecx
mov ecx, dword [ebp - 0x227c]
call fcn.00406fc0
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x4087cd
mov eax, dword [ebp - 0x20]
jmp 0x408c28
movzx edx, word [ebp - 0x1c]
mov dword [ebp - 0x2280], edx
cmp dword [ebp - 0x2280], 0x13
jg 0x408808
cmp dword [ebp - 0x2280], 0x13
je 0x4089d7
cmp dword [ebp - 0x2280], 8
je 0x408819
cmp dword [ebp - 0x2280], 0x11
je 0x408a53
jmp 0x408bee
cmp dword [ebp - 0x2280], 0x4008
je 0x408836
jmp 0x408bee
push 1
lea eax, [ebp - 0x2028]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00408c80
mov dword [ebp - 0x18], eax
jmp 0x408bee
lea edx, [ebp - 0x2028]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 2
mov dword [ebp - 0x2134], eax
lea ecx, [ebp - 0x2130]
call fcn.00409930
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2134]
push eax
lea ecx, [ebp - 0x2130]
call fcn.004099a0
jmp 0x408883
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2130]
call fcn.004027c0
test eax, eax
je 0x4089b9
lea ecx, [ebp - 0x2130]
call fcn.004027c0
mov dword [ebp - 0x2138], eax
lea ecx, [ebp - 0x2028]
mov dword [ebp - 0x213c], ecx
mov dword [ebp - 0x2134], 0
mov edx, dword [ebp - 0x213c]
movzx eax, word [edx]
test eax, eax
je 0x408977
mov ecx, dword [ebp - 0x213c]
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov dword [ebp - 0x2140], eax
mov edx, dword [ebp - 0x213c]
movzx eax, word [edx]
cmp eax, 0x5c
jne 0x408933
mov ecx, dword [ebp - 0x2140]
movzx edx, word [ecx]
cmp edx, 0x30
jne 0x408933
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 0x408963
mov ecx, dword [ebp - 0x2138]
mov edx, dword [ebp - 0x213c]
mov ax, word [edx]
mov word [ecx], ax
mov ecx, dword [ebp - 0x2138]
add ecx, 2
mov dword [ebp - 0x2138], ecx
mov edx, dword [ebp - 0x213c]
add edx, 2
mov dword [ebp - 0x213c], edx
mov eax, dword [ebp - 0x2134]
add eax, 1
mov dword [ebp - 0x2134], eax
jmp 0x4088c4
xor ecx, ecx
mov edx, dword [ebp - 0x2138]
mov word [edx], cx
mov eax, dword [ebp - 0x2138]
add eax, 2
mov dword [ebp - 0x2138], eax
xor ecx, ecx
mov edx, dword [ebp - 0x2138]
mov word [edx], cx
lea ecx, [ebp - 0x2130]
call fcn.004027c0
push eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.00408ce0
mov dword [ebp - 0x18], eax
jmp 0x4089c0
mov dword [ebp - 0x18], 0xe
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2130]
call fcn.00409950
jmp 0x408bee
call fcn.00406130
mov dword [ebp - 0x2150], eax
lea ecx, [ebp - 0x2158]
call fcn.00409930
mov dword [ebp - 4], 3
push 0x400
lea ecx, [ebp - 0x2028]
push ecx
call fcn.0040bc10
add esp, 8
mov dword [ebp - 0x214c], eax
lea edx, [ebp - 0x215c]
push edx
push 0
push 0
mov eax, dword [ebp - 0x214c]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov ecx, dword [ebp - 0x215c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
call fcn.00408c50
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2158]
call fcn.00409660
jmp 0x408bee
lea eax, [ebp - 0x2028]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x2164], eax
mov ecx, dword [ebp - 0x2164]
and ecx, 1
je 0x408a7b
mov eax, 0x80004005
jmp 0x408c28
mov eax, dword [ebp - 0x2164]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x2160], eax
lea ecx, [ebp - 0x2270]
call fcn.00409930
mov dword [ebp - 4], 4
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x2160]
push edx
lea ecx, [ebp - 0x2270]
call fcn.004099d0
jmp 0x408ac3
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x2270]
call fcn.004027c0
test eax, eax
jne 0x408b00
mov dword [ebp - 0x2278], 0x80004005
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2270]
call fcn.00409950
mov eax, dword [ebp - 0x2278]
jmp 0x408c28
mov eax, dword [ebp - 0x2160]
push eax
push 0
lea ecx, [ebp - 0x2270]
call fcn.004027c0
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0x2274], 0
jmp 0x408b38
mov ecx, dword [ebp - 0x2274]
add ecx, 1
mov dword [ebp - 0x2274], ecx
mov edx, dword [ebp - 0x2274]
cmp edx, dword [ebp - 0x2164]
jge 0x408baf
mov eax, dword [ebp - 0x2274]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
lea ecx, [ebp - 0x2270]
call fcn.004027c0
add eax, esi
mov dword [ebp - 0x2284], eax
mov eax, dword [ebp - 0x2274]
and eax, 1
mov esi, 1
sub esi, eax
shl esi, 2
mov ecx, dword [ebp - 0x2274]
movzx edx, word [ebp + ecx*2 - 0x2028]
push edx
call fcn.00408e40
add esp, 4
movzx eax, al
mov ecx, esi
shl eax, cl
mov ecx, dword [ebp - 0x2284]
movzx edx, byte [ecx]
or edx, eax
mov eax, dword [ebp - 0x2284]
mov byte [eax], dl
jmp 0x408b29
mov ecx, dword [ebp - 0x2160]
push ecx
lea ecx, [ebp - 0x2270]
call fcn.004027c0
push eax
push 3
push 0
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
call fcn.004027c0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2270]
call fcn.00409950
cmp dword [ebp - 0x18], 0
je 0x408c09
mov dword [ebp - 0x14], 0x204
mov eax, dword [ebp - 0x18]
push eax
call fcn.004083a0
add esp, 4
jmp 0x408c28
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 0x227c]
call fcn.00406fc0
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x408c26
mov eax, dword [ebp - 0x20]
jmp 0x408c28
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 - 0x24]
xor ecx, ebp
call fcn.0040e566
mov esp, ebp
pop ebp
ret 0xc