Function at 0x446a90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da781
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2224
call fcn.004b8260
mov eax, dword [0x522638]
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.00445700
cmp eax, esi
jl 0x446e14
lea eax, [ebp - 0x2220]
push eax
lea ecx, [ebp - 0x2014]
push ecx
call fcn.00445520
add esp, 8
test eax, eax
jne 0x446b27
mov eax, 0x80020009
jmp 0x446e14
mov ecx, dword [ebp - 0x222c]
call fcn.004456a0
mov ecx, dword [ebp - 0x222c]
lea edx, [ebp - 0x2014]
push edx
call fcn.00445700
cmp eax, esi
jl 0x446e14
movzx eax, word [ebp - 0x2220]
cmp eax, 0x13
jg 0x446cff
je 0x446cb4
cmp eax, 8
je 0x446c9c
cmp eax, 0x11
jne 0x446df8
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 0x446bfb
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.00446620
mov dword [ebp - 4], 4
jmp 0x446bdc
mov eax, dword [ebp - 0x2118]
cmp eax, esi
jne 0x446c05
lea ecx, [ebp - 0x2114]
test ecx, ecx
je 0x446bfb
lea ecx, [ebp - 0x2118]
call fcn.00445970
mov eax, 0x80004005
jmp 0x446e14
push edi
push esi
push eax
call fcn.004b8020
add esp, 0xc
cmp ebx, esi
jle 0x446c50
movzx ecx, word [ebp + esi*2 - 0x2014]
mov edi, esi
shr edi, 1
add edi, dword [ebp - 0x2118]
push ecx
call fcn.004455d0
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 0x446c14
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 0x446de9
lea ecx, [ebp - 0x2118]
call fcn.00445970
jmp 0x446de9
push 1
lea ecx, [ebp - 0x2014]
push ecx
push ebx
mov ecx, edi
call fcn.00445390
mov edi, eax
jmp 0x446de9
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.00445370
lea ecx, [ebp - 0x2224]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.004437c0
jmp 0x446de9
cmp eax, 0x4008
jne 0x446df8
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.004465d0
mov dword [ebp - 4], esi
jmp 0x446d47
mov eax, dword [ebp - 0x221c]
cmp eax, esi
je 0x446dc8
cmp word [ebp - 0x2014], 0
mov esi, eax
lea edi, [ebp - 0x2014]
je 0x446d9f
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
lea esp, [esp]
push edi
call ebx
movzx ecx, word [edi]
cmp ecx, 0x5c
jne 0x446d90
cmp word [eax], 0x30
jne 0x446d90
xor ecx, ecx
mov word [esi], cx
push eax
add esi, 2
call ebx
mov edi, eax
jmp 0x446d99
mov word [esi], cx
add esi, 2
add edi, 2
cmp word [edi], 0
jne 0x446d70
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.004453d0
mov edi, eax
mov eax, dword [ebp - 0x221c]
xor esi, esi
jmp 0x446dcd
mov edi, 0xe
lea ecx, [ebp - 0x2218]
mov dword [ebp - 4], 0xffffffff
cmp eax, ecx
je 0x446de9
lea ecx, [ebp - 0x221c]
call fcn.00445970
cmp edi, esi
je 0x446df8
push edi
call fcn.00444fa0
add esp, 4
jmp 0x446e14
mov edx, dword [ebp - 0x2234]
mov ecx, dword [ebp - 0x222c]
push edx
call fcn.00445700
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