Function at 0x407c60
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x2108]
mov eax, 0x2108
call fcn.0043fb90
push 0xffffffffffffffff
push 0x446590
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x45636c]
xor eax, ebp
mov dword [ebp + 0x2104], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x2114]
mov edi, dword [ebp + 0x2110]
mov esi, edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], ecx
lea eax, [ebp + 0x104]
mov ecx, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 0
call fcn.00407af0
test eax, eax
jl 0x407f6c
lea edx, [ebp - 0x14]
push edx
lea ebx, [ebp + 0x104]
call fcn.00407940
add esp, 4
test eax, eax
jne 0x407cf6
mov eax, 0x80020009
jmp 0x407f6c
call fcn.00407aa0
lea eax, [ebp + 0x104]
mov ecx, esi
call fcn.00407af0
test eax, eax
jl 0x407f6c
movzx eax, word [ebp - 0x14]
cmp eax, 0x13
jg 0x407e78
je 0x407e2f
cmp eax, 8
je 0x407e18
cmp eax, 0x11
jne 0x407f57
lea eax, [ebp + 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test bl, 1
jne 0x407d94
cdq
sub eax, edx
mov edi, eax
sar edi, 1
lea ecx, [ebp]
mov dword [ebp - 0x20], edi
call fcn.0040d120
mov dword [ebp - 4], 3
push edi
lea ecx, [ebp]
mov byte [ebp - 4], 4
call fcn.0040d2d0
jmp 0x407d80
lea ecx, [ebp]
call fcn.0040d1c0
lea ecx, [ebp]
test eax, eax
jne 0x407d9e
call fcn.0040d2b0
mov eax, 0x80004005
jmp 0x407f6c
push edi
push 0
call fcn.0040d1c0
push eax
call fcn.0042f230
add esp, 0xc
xor esi, esi
test ebx, ebx
jle 0x407deb
lea ecx, [ebp]
call fcn.0040d1c0
mov ecx, esi
shr ecx, 1
lea ebx, [eax + ecx]
mov cx, word [ebp + esi*2 + 0x104]
call fcn.004079f0
mov edx, esi
and edx, 1
add edx, edx
add edx, edx
mov ecx, 4
sub ecx, edx
shl al, cl
inc esi
or byte [ebx], al
cmp esi, dword [ebp - 0x14]
jl 0x407db5
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
push edi
lea ecx, [ebp]
call fcn.0040d1c0
mov ecx, dword [ebp - 0x1c]
push eax
push 3
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp]
mov esi, eax
call fcn.0040d2b0
jmp 0x407f4a
mov edx, dword [ebp - 0x1c]
push edx
push edi
lea esi, [ebp + 0x104]
call fcn.00401350
mov esi, eax
jmp 0x407f4a
lea ecx, [ebp - 0x18]
call fcn.0040d120
lea eax, [ebp - 0x20]
push eax
push 0
push 0
lea ecx, [ebp + 0x104]
push ecx
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push 0
mov dword [ebp - 0x14], edx
mov edx, dword [edi]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.0040cf50
jmp 0x407f4a
cmp eax, 0x4008
jne 0x407f57
lea eax, [ebp + 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea ecx, [ebp]
add esi, 2
call fcn.0040d120
mov dword [ebp - 4], 0
push esi
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.0040d240
jmp 0x407ebc
lea ecx, [ebp]
call fcn.0040d1c0
test eax, eax
je 0x407f3d
lea ecx, [ebp]
call fcn.0040d1c0
cmp word [ebp + 0x104], 0
mov ebx, eax
lea esi, [ebp + 0x104]
je 0x407f1b
mov edi, dword [sym.imp.USER32.dll_CharNextW]
push esi
call edi
movzx ecx, word [esi]
cmp cx, 0x5c
jne 0x407f09
cmp word [eax], 0x30
jne 0x407f09
xor ecx, ecx
mov word [ebx], cx
push eax
add ebx, 2
call edi
mov esi, eax
jmp 0x407f12
mov word [ebx], cx
add ebx, 2
add esi, 2
cmp word [esi], 0
jne 0x407ee8
mov edi, dword [ebp - 0x18]
xor edx, edx
xor eax, eax
mov word [ebx], dx
lea ecx, [ebp]
mov word [ebx + 2], ax
call fcn.0040d1c0
mov ecx, dword [ebp - 0x1c]
push eax
push ecx
push edi
call fcn.00406eb0
mov esi, eax
jmp 0x407f42
mov esi, 0xe
lea ecx, [ebp]
call fcn.0040d2b0
test esi, esi
je 0x407f57
mov eax, esi
call fcn.00406b50
jmp 0x407f6c
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
call fcn.00407af0
xor edx, edx
test eax, eax
setge dl
dec edx
and eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2104]
xor ecx, ebp
call fcn.0042a9a5
add ebp, 0x2108
mov esp, ebp
pop ebp
ret 8