Function at 0x440490
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc431
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2224
call fcn.004b75b0
mov eax, dword [0x5256a8]
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 eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
lea edx, [ebp - 0x2014]
xor esi, esi
push edx
mov dword [ebp - 0x222c], ecx
mov dword [ebp - 0x2224], edi
mov dword [ebp - 0x2230], ebx
mov dword [ebp - 0x2234], eax
mov dword [ebp - 0x2220], esi
call fcn.0043ea80
cmp eax, esi
jl 0x440814
lea eax, [ebp - 0x2220]
push eax
lea ecx, [ebp - 0x2014]
push ecx
call fcn.0043e8a0
add esp, 8
test eax, eax
jne 0x440527
mov eax, 0x80020009
jmp 0x440814
mov ecx, dword [ebp - 0x222c]
call fcn.0043ea20
mov ecx, dword [ebp - 0x222c]
lea edx, [ebp - 0x2014]
push edx
call fcn.0043ea80
cmp eax, esi
jl 0x440814
movzx eax, word [ebp - 0x2220]
cmp eax, 0x13
jg 0x4406ff
je 0x4406b4
cmp eax, 8
je 0x44069c
cmp eax, 0x11
jne 0x4407f8
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov dword [ebp - 0x2228], ebx
test bl, 1
jne 0x4405fb
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov dword [ebp - 0x2220], edi
mov dword [ebp - 0x2118], esi
mov dword [ebp - 4], 4
push edi
lea ecx, [ebp - 0x2118]
mov byte [ebp - 4], 5
call fcn.0043fb40
mov dword [ebp - 4], 4
jmp 0x4405dc
mov eax, dword [ebp - 0x2118]
cmp eax, esi
jne 0x440605
lea ecx, [ebp - 0x2114]
test ecx, ecx
je 0x4405fb
lea ecx, [ebp - 0x2118]
call fcn.0043ecf0
mov eax, 0x80004005
jmp 0x440814
push edi
push esi
push eax
call fcn.004b7120
add esp, 0xc
cmp ebx, esi
jle 0x440650
movzx ecx, word [ebp + esi*2 - 0x2014]
mov edi, esi
shr edi, 1
add edi, dword [ebp - 0x2118]
push ecx
call fcn.0043e950
mov edx, esi
and edx, 1
add edx, edx
add edx, edx
mov ecx, 4
sub ecx, edx
shl al, cl
inc esi
add esp, 4
or byte [edi], al
cmp esi, ebx
jl 0x440614
mov edi, dword [ebp - 0x2220]
xor esi, esi
mov ecx, dword [ebp - 0x2118]
mov edx, dword [ebp - 0x2230]
mov eax, dword [ebp - 0x2224]
mov eax, dword [eax]
push edi
push ecx
push 3
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea eax, [ebp - 0x2114]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x2118], eax
je 0x4407e9
lea ecx, [ebp - 0x2118]
call fcn.0043ecf0
jmp 0x4407e9
push 1
lea ecx, [ebp - 0x2014]
push ecx
push ebx
mov ecx, edi
call fcn.0043e710
mov edi, eax
jmp 0x4407e9
mov dword [ebp - 0x2224], esi
lea edx, [ebp - 0x2228]
push edx
push esi
push esi
lea eax, [ebp - 0x2014]
push eax
mov dword [ebp - 4], 3
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov ecx, dword [ebp - 0x2228]
push ecx
push ebx
mov ecx, edi
call fcn.0043e6f0
lea ecx, [ebp - 0x2224]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.0043c150
jmp 0x4407e9
cmp eax, 0x4008
jne 0x4407f8
lea edx, [ebp - 0x2014]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 2
mov dword [ebp - 0x221c], esi
mov dword [ebp - 4], esi
push eax
lea ecx, [ebp - 0x221c]
mov byte [ebp - 4], 1
call fcn.0043faf0
mov dword [ebp - 4], esi
jmp 0x440747
mov eax, dword [ebp - 0x221c]
cmp eax, esi
je 0x4407c8
cmp word [ebp - 0x2014], 0
mov esi, eax
lea edi, [ebp - 0x2014]
je 0x44079f
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
lea esp, [esp]
push edi
call ebx
movzx ecx, word [edi]
cmp ecx, 0x5c
jne 0x440790
cmp word [eax], 0x30
jne 0x440790
xor ecx, ecx
mov word [esi], cx
push eax
add esi, 2
call ebx
mov edi, eax
jmp 0x440799
mov word [esi], cx
add esi, 2
add edi, 2
cmp word [edi], 0
jne 0x440770
xor edx, edx
mov dword [esi], edx
mov ecx, dword [ebp - 0x221c]
mov edx, dword [ebp - 0x2230]
push ecx
mov ecx, dword [ebp - 0x2224]
push edx
call fcn.0043e750
mov edi, eax
mov eax, dword [ebp - 0x221c]
xor esi, esi
jmp 0x4407cd
mov edi, 0xe
lea ecx, [ebp - 0x2218]
mov dword [ebp - 4], 0xffffffff
cmp eax, ecx
je 0x4407e9
lea ecx, [ebp - 0x221c]
call fcn.0043ecf0
cmp edi, esi
je 0x4407f8
push edi
call fcn.0043e320
add esp, 4
jmp 0x440814
mov edx, dword [ebp - 0x2234]
mov ecx, dword [ebp - 0x222c]
push edx
call fcn.0043ea80
xor ecx, ecx
cmp eax, esi
setge cl
dec ecx
and eax, ecx
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.00401306
mov esp, ebp
pop ebp
ret 0xc