Function at 0x404680
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2274
call fcn.0040ad70
mov eax, dword [0x419fa8]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x226c], ecx
mov word [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2018]
push eax
mov ecx, dword [ebp - 0x226c]
call fcn.00403310
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x4046d6
mov eax, dword [ebp - 0x10]
jmp 0x404b15
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x2018]
push edx
call fcn.00404c80
test eax, eax
jne 0x4046ff
push 0x20f
mov ecx, dword [ebp - 0x226c]
call fcn.004031e0
jmp 0x404b15
mov ecx, dword [ebp - 0x226c]
call fcn.00403260
lea eax, [ebp - 0x2018]
push eax
mov ecx, dword [ebp - 0x226c]
call fcn.00403310
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x40472d
mov eax, dword [ebp - 0x10]
jmp 0x404b15
movzx ecx, word [ebp - 0xc]
mov dword [ebp - 0x2270], ecx
cmp dword [ebp - 0x2270], 0x13
jg 0x404768
cmp dword [ebp - 0x2270], 0x13
je 0x40490f
cmp dword [ebp - 0x2270], 8
je 0x404779
cmp dword [ebp - 0x2270], 0x11
je 0x40497a
jmp 0x404ade
cmp dword [ebp - 0x2270], 0x4008
je 0x404796
jmp 0x404ade
push 1
lea edx, [ebp - 0x2018]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.00404b70
mov dword [ebp - 8], eax
jmp 0x404ade
lea ecx, [ebp - 0x2018]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 2
mov dword [ebp - 0x2124], eax
lea ecx, [ebp - 0x2120]
call fcn.00406e50
mov edx, dword [ebp - 0x2124]
push edx
lea ecx, [ebp - 0x2120]
call fcn.00406f20
lea ecx, [ebp - 0x2120]
call fcn.00409860
test eax, eax
je 0x4048f8
lea ecx, [ebp - 0x2120]
call fcn.00409860
mov dword [ebp - 0x2128], eax
lea eax, [ebp - 0x2018]
mov dword [ebp - 0x212c], eax
mov dword [ebp - 0x2124], 0
mov ecx, dword [ebp - 0x212c]
movzx edx, word [ecx]
test edx, edx
je 0x4048b6
mov eax, dword [ebp - 0x212c]
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov dword [ebp - 0x2130], eax
mov ecx, dword [ebp - 0x212c]
movzx edx, word [ecx]
cmp edx, 0x5c
jne 0x404872
mov eax, dword [ebp - 0x2130]
movzx ecx, word [eax]
cmp ecx, 0x30
jne 0x404872
mov edx, dword [ebp - 0x2128]
mov word [edx], 0
mov eax, dword [ebp - 0x2128]
add eax, 2
mov dword [ebp - 0x2128], eax
mov ecx, dword [ebp - 0x2130]
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov dword [ebp - 0x212c], eax
jmp 0x4048a2
mov edx, dword [ebp - 0x2128]
mov eax, dword [ebp - 0x212c]
mov cx, word [eax]
mov word [edx], cx
mov edx, dword [ebp - 0x2128]
add edx, 2
mov dword [ebp - 0x2128], edx
mov eax, dword [ebp - 0x212c]
add eax, 2
mov dword [ebp - 0x212c], eax
mov ecx, dword [ebp - 0x2124]
add ecx, 1
mov dword [ebp - 0x2124], ecx
jmp 0x404803
mov edx, dword [ebp - 0x2128]
mov word [edx], 0
mov eax, dword [ebp - 0x2128]
add eax, 2
mov dword [ebp - 0x2128], eax
mov ecx, dword [ebp - 0x2128]
mov word [ecx], 0
lea ecx, [ebp - 0x2120]
call fcn.00409860
push eax
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
call fcn.00404be0
mov dword [ebp - 8], eax
jmp 0x4048ff
mov dword [ebp - 8], 0xe
lea ecx, [ebp - 0x2120]
call fcn.00406ef0
jmp 0x404ade
call fcn.00402470
mov dword [ebp - 0x2140], eax
lea ecx, [ebp - 0x2148]
call fcn.00406e50
push 0x400
lea eax, [ebp - 0x2018]
push eax
call fcn.004097f0
mov dword [ebp - 0x213c], eax
lea ecx, [ebp - 0x214c]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x213c]
push edx
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x214c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00404b30
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x2148]
call fcn.00406ba0
jmp 0x404ade
lea edx, [ebp - 0x2018]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x2154], eax
mov eax, dword [ebp - 0x2154]
and eax, 1
je 0x4049a2
mov eax, 0x80004005
jmp 0x404b15
mov eax, dword [ebp - 0x2154]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x2150], eax
lea ecx, [ebp - 0x2260]
call fcn.00406e50
mov ecx, dword [ebp - 0x2150]
push ecx
lea ecx, [ebp - 0x2260]
call fcn.00406f50
lea ecx, [ebp - 0x2260]
call fcn.00409860
test eax, eax
jne 0x4049ff
mov dword [ebp - 0x2268], 0x80004005
lea ecx, [ebp - 0x2260]
call fcn.00406ef0
mov eax, dword [ebp - 0x2268]
jmp 0x404b15
mov edx, dword [ebp - 0x2150]
push edx
push 0
lea ecx, [ebp - 0x2260]
call fcn.00409860
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x2264], 0
jmp 0x404a37
mov eax, dword [ebp - 0x2264]
add eax, 1
mov dword [ebp - 0x2264], eax
mov ecx, dword [ebp - 0x2264]
cmp ecx, dword [ebp - 0x2154]
jge 0x404aa6
lea ecx, [ebp - 0x2260]
call fcn.00409860
mov ecx, eax
mov eax, dword [ebp - 0x2264]
cdq
sub eax, edx
sar eax, 1
add ecx, eax
mov dword [ebp - 0x2274], ecx
mov edx, dword [ebp - 0x2264]
mov ax, word [ebp + edx*2 - 0x2018]
push eax
call fcn.00404d50
movzx edx, al
mov eax, dword [ebp - 0x2264]
and eax, 1
mov ecx, 1
sub ecx, eax
shl ecx, 2
shl edx, cl
mov ecx, dword [ebp - 0x2274]
movzx eax, byte [ecx]
or eax, edx
mov ecx, dword [ebp - 0x2274]
mov byte [ecx], al
jmp 0x404a28
mov edx, dword [ebp - 0x2150]
push edx
lea ecx, [ebp - 0x2260]
call fcn.00409860
push eax
push 3
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.00409860
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x2260]
call fcn.00406ef0
cmp dword [ebp - 8], 0
je 0x404af6
mov dword [ebp - 4], 0x204
mov ecx, dword [ebp - 8]
push ecx
call fcn.00404380
jmp 0x404b15
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp - 0x226c]
call fcn.00403310
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x404b13
mov eax, dword [ebp - 0x10]
jmp 0x404b15
xor eax, eax
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040ad0d
mov esp, ebp
pop ebp
ret 0xc