Function at 0x440420
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc3b1
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2224
call fcn.004b7610
mov eax, dword [0x5246a8]
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.0043ea10
cmp eax, esi
jl 0x4407a4
lea eax, [ebp - 0x2220]
push eax
lea ecx, [ebp - 0x2014]
push ecx
call fcn.0043e830
add esp, 8
test eax, eax
jne 0x4404b7
mov eax, 0x80020009
jmp 0x4407a4
mov ecx, dword [ebp - 0x222c]
call fcn.0043e9b0
mov ecx, dword [ebp - 0x222c]
lea edx, [ebp - 0x2014]
push edx
call fcn.0043ea10
cmp eax, esi
jl 0x4407a4
movzx eax, word [ebp - 0x2220]
cmp eax, 0x13
jg 0x44068f
je 0x440644
cmp eax, 8
je 0x44062c
cmp eax, 0x11
jne 0x440788
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 0x44058b
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.0043fad0
mov dword [ebp - 4], 4
jmp 0x44056c
mov eax, dword [ebp - 0x2118]
cmp eax, esi
jne 0x440595
lea ecx, [ebp - 0x2114]
test ecx, ecx
je 0x44058b
lea ecx, [ebp - 0x2118]
call fcn.0043ec80
mov eax, 0x80004005
jmp 0x4407a4
push edi
push esi
push eax
call fcn.004b7180
add esp, 0xc
cmp ebx, esi
jle 0x4405e0
movzx ecx, word [ebp + esi*2 - 0x2014]
mov edi, esi
shr edi, 1
add edi, dword [ebp - 0x2118]
push ecx
call fcn.0043e8e0
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 0x4405a4
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 0x440779
lea ecx, [ebp - 0x2118]
call fcn.0043ec80
jmp 0x440779
push 1
lea ecx, [ebp - 0x2014]
push ecx
push ebx
mov ecx, edi
call fcn.0043e6a0
mov edi, eax
jmp 0x440779
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.0043e680
lea ecx, [ebp - 0x2224]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.0043c0f0
jmp 0x440779
cmp eax, 0x4008
jne 0x440788
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.0043fa80
mov dword [ebp - 4], esi
jmp 0x4406d7
mov eax, dword [ebp - 0x221c]
cmp eax, esi
je 0x440758
cmp word [ebp - 0x2014], 0
mov esi, eax
lea edi, [ebp - 0x2014]
je 0x44072f
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
lea esp, [esp]
push edi
call ebx
movzx ecx, word [edi]
cmp ecx, 0x5c
jne 0x440720
cmp word [eax], 0x30
jne 0x440720
xor ecx, ecx
mov word [esi], cx
push eax
add esi, 2
call ebx
mov edi, eax
jmp 0x440729
mov word [esi], cx
add esi, 2
add edi, 2
cmp word [edi], 0
jne 0x440700
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.0043e6e0
mov edi, eax
mov eax, dword [ebp - 0x221c]
xor esi, esi
jmp 0x44075d
mov edi, 0xe
lea ecx, [ebp - 0x2218]
mov dword [ebp - 4], 0xffffffff
cmp eax, ecx
je 0x440779
lea ecx, [ebp - 0x221c]
call fcn.0043ec80
cmp edi, esi
je 0x440788
push edi
call fcn.0043e2c0
add esp, 4
jmp 0x4407a4
mov edx, dword [ebp - 0x2234]
mov ecx, dword [ebp - 0x222c]
push edx
call fcn.0043ea10
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