Function at 0x439460
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c0c6
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2128
call fcn.00555e60
mov eax, dword [0x5eb6e0]
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 + 0xc]
mov edi, dword [ebp + 8]
mov esi, edx
mov dword [ebp - 0x2120], eax
mov dword [ebp - 0x2130], ecx
lea eax, [ebp - 0x2014]
mov ecx, esi
mov dword [ebp - 0x212c], esi
mov dword [ebp - 0x2128], edi
mov dword [ebp - 0x211c], 0
call fcn.00439c60
test eax, eax
jl 0x439803
lea edx, [ebp - 0x211c]
push edx
lea ebx, [ebp - 0x2014]
call fcn.004391f0
add esp, 4
test eax, eax
jne 0x4394f8
mov eax, 0x80020009
jmp 0x439803
call fcn.0043a540
lea eax, [ebp - 0x2014]
mov ecx, esi
call fcn.00439c60
xor ebx, ebx
cmp eax, ebx
jl 0x439803
movzx eax, word [ebp - 0x211c]
cmp eax, 0x13
jg 0x4396f0
je 0x4396ad
cmp eax, 8
je 0x43968f
cmp eax, 0x11
jne 0x4397e8
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov dword [ebp - 0x211c], ebx
test bl, 1
jne 0x4395ef
cdq
sub eax, edx
mov edi, eax
sar edi, 1
xor eax, eax
mov dword [ebp - 0x2124], edi
mov dword [ebp - 0x2118], eax
mov dword [ebp - 4], 3
mov byte [ebp - 4], 4
cmp eax, eax
ja 0x439583
cmp edi, 0xffffffff
jbe 0x43958d
push 0x80070057
call fcn.004038e0
cmp edi, 0x100
jbe 0x4395c4
lea ecx, [ebp - 0x2118]
push ecx
mov eax, edi
call fcn.004393a0
jmp 0x4395d0
lea edx, [ebp - 0x2114]
mov dword [ebp - 0x2118], edx
mov eax, dword [ebp - 0x2118]
test eax, eax
jne 0x4395f9
lea eax, [ebp - 0x2114]
test eax, eax
je 0x4395ef
lea eax, [ebp - 0x2118]
call fcn.004392e0
mov eax, 0x80004005
jmp 0x439803
push edi
push 0
push eax
call fcn.00553a60
add esp, 0xc
xor esi, esi
test ebx, ebx
jle 0x439649
jmp 0x439610
mov edx, dword [ebp - 0x2118]
mov ecx, esi
shr ecx, 1
lea ebx, [ecx + edx]
mov cx, word [ebp + esi*2 - 0x2014]
call fcn.004393f0
mov ecx, esi
and ecx, 1
add ecx, ecx
add ecx, ecx
mov edx, ecx
mov ecx, 4
sub ecx, edx
shl al, cl
inc esi
or byte [ebx], al
cmp esi, dword [ebp - 0x211c]
jl 0x439610
mov ecx, dword [ebp - 0x2118]
mov edx, dword [ebp - 0x2120]
mov eax, dword [ebp - 0x2128]
mov eax, dword [eax]
push edi
push ecx
push 3
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
lea eax, [ebp - 0x2114]
cmp dword [ebp - 0x2118], eax
je 0x4397d9
lea eax, [ebp - 0x2118]
call fcn.004392e0
jmp 0x4397d9
mov edx, dword [ebp - 0x2120]
push 1
lea ecx, [ebp - 0x2014]
push ecx
push edx
mov ecx, edi
call fcn.004392a0
mov esi, eax
jmp 0x4397d9
lea eax, [ebp - 0x2124]
push eax
push ebx
push ebx
lea ecx, [ebp - 0x2014]
push ecx
mov dword [ebp - 0x211c], ebx
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov edx, dword [ebp - 0x2124]
mov eax, dword [ebp - 0x2120]
push edx
push eax
mov ecx, edi
call fcn.00439380
lea ecx, [ebp - 0x211c]
mov esi, eax
call fcn.00402960
jmp 0x4397d9
cmp eax, 0x4008
jne 0x4397e8
lea ecx, [ebp - 0x2014]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 2
mov dword [ebp - 0x2118], ebx
mov dword [ebp - 4], ebx
lea esi, [ebp - 0x2118]
mov byte [ebp - 4], 1
call fcn.004392f0
jmp 0x43973c
mov ebx, dword [ebp - 0x2118]
test ebx, ebx
je 0x4397bf
cmp word [ebp - 0x2014], 0
lea esi, [ebp - 0x2014]
je 0x439796
mov edi, dword [sym.imp.USER32.dll_CharNextW]
lea esp, [esp]
push esi
call edi
movzx ecx, word [esi]
cmp cx, 0x5c
jne 0x439781
cmp word [eax], 0x30
jne 0x439781
xor edx, edx
mov word [ebx], dx
push eax
add ebx, 2
call edi
mov esi, eax
jmp 0x43978a
mov word [ebx], cx
add ebx, 2
add esi, 2
cmp word [esi], 0
jne 0x439760
mov edi, dword [ebp - 0x2128]
xor eax, eax
mov word [ebx], ax
mov eax, dword [ebp - 0x2120]
xor ecx, ecx
mov word [ebx + 2], cx
mov edx, dword [ebp - 0x2118]
push edx
push eax
push edi
call fcn.00439330
mov ebx, dword [ebp - 0x2118]
mov esi, eax
jmp 0x4397c4
mov esi, 0xe
lea ecx, [ebp - 0x2114]
cmp ebx, ecx
je 0x4397d9
lea eax, [ebp - 0x2118]
call fcn.004392e0
xor ebx, ebx
cmp esi, ebx
je 0x4397e8
mov eax, esi
call fcn.00439c20
jmp 0x439803
mov eax, dword [ebp - 0x2130]
mov ecx, dword [ebp - 0x212c]
call fcn.00439c60
xor edx, edx
cmp eax, ebx
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 - 0x14]
xor ecx, ebp
call fcn.0055064f
mov esp, ebp
pop ebp
ret 8