Function at 0x401b60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x408801
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2124
call fcn.00407c70
mov eax, dword [0x40e034]
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 esi, ecx
mov dword [ebp - 0x212c], esi
mov dword [ebp - 0x2130], esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2120], ebx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x2128], edi
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2134], eax
xor eax, eax
mov word [ebp - 0x2124], ax
lea eax, [ebp - 0x2014]
push eax
call fcn.004034c0
test eax, eax
js 0x401f7f
lea eax, [ebp - 0x2124]
push eax
lea eax, [ebp - 0x2014]
push eax
call fcn.00405510
add esp, 8
test eax, eax
jne 0x401c00
mov eax, 0x80020009
jmp 0x401f7f
mov ecx, esi
call fcn.00405020
lea eax, [ebp - 0x2014]
push eax
mov ecx, esi
call fcn.004034c0
test eax, eax
js 0x401f7f
movzx eax, word [ebp - 0x2124]
cmp eax, 0x13
ja 0x401e3a
je 0x401dcb
cmp eax, 8
je 0x401db3
cmp eax, 0x11
jne 0x401f69
lea ebx, [ebp - 0x2014]
lea ecx, [ebx + 2]
nop
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x401c50
sub ebx, ecx
sar ebx, 1
mov dword [ebp - 0x2018], ebx
test bl, 1
jne 0x401d0c
mov eax, ebx
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov dword [ebp - 0x2124], esi
push 0x104
push 0
lea eax, [ebp - 0x211c]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
mov dword [ebp - 0x211c], 0
mov dword [ebp - 4], 4
mov byte [ebp - 4], 5
push esi
lea ecx, [ebp - 0x211c]
call fcn.00401fa0
mov dword [ebp - 4], 4
jmp 0x401ce2
mov eax, dword [ebp - 0x211c]
test eax, eax
jne 0x401d16
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2118]
cmp dword [ebp - 0x211c], eax
je 0x401d0c
lea ecx, [ebp - 0x211c]
call fcn.00403240
mov eax, 0x80004005
jmp 0x401f7f
push esi
push 0
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
xor edi, edi
test ebx, ebx
jle 0x401d69
nop dword [eax + eax]
mov esi, edi
shr esi, 1
add esi, dword [ebp - 0x211c]
movzx eax, word [ebp + edi*2 - 0x2014]
push eax
call fcn.00402eb0
add esp, 4
mov edx, edi
and edx, 1
shl edx, 2
mov ecx, 4
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, ebx
jl 0x401d30
mov esi, dword [ebp - 0x2124]
push esi
push dword [ebp - 0x211c]
push 3
push 0
push dword [ebp - 0x2128]
mov eax, dword [ebp - 0x2120]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2118]
cmp dword [ebp - 0x211c], eax
je 0x401f54
lea ecx, [ebp - 0x211c]
call fcn.00403240
jmp 0x401f54
push 1
lea eax, [ebp - 0x2014]
push eax
push edi
mov ecx, ebx
call fcn.00404f60
mov esi, eax
jmp 0x401f54
mov dword [ebp - 0x2120], 0
mov dword [ebp - 4], 3
lea eax, [ebp - 0x2018]
push eax
push 0
push 0
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov esi, eax
test esi, esi
jns 0x401e13
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2120]
call fcn.00401400
mov eax, esi
jmp 0x401f7f
push dword [ebp - 0x2018]
push edi
mov ecx, ebx
call fcn.00404ee0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2120]
call fcn.00401400
jmp 0x401f54
cmp eax, 0x4008
jne 0x401f69
lea ecx, [ebp - 0x2014]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401e50
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 2]
push 0x104
push 0
lea eax, [ebp - 0x211c]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
mov dword [ebp - 0x211c], 0
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
push esi
lea ecx, [ebp - 0x211c]
call fcn.00401fe0
mov dword [ebp - 4], 0
jmp 0x401ec1
mov edi, dword [ebp - 0x211c]
test edi, edi
je 0x401f2f
lea esi, [ebp - 0x2014]
cmp word [ebp - 0x2014], 0
je 0x401f14
nop dword [eax + eax]
push esi
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [esi]
cmp ecx, 0x5c
jne 0x401f05
cmp word [eax], 0x30
jne 0x401f05
xor ecx, ecx
mov word [edi], cx
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
jmp 0x401f0b
mov word [edi], cx
add esi, 2
add edi, 2
cmp word [esi], 0
jne 0x401ee0
xor eax, eax
mov dword [edi], eax
push dword [ebp - 0x211c]
push dword [ebp - 0x2128]
mov ecx, ebx
call fcn.00404f00
mov esi, eax
jmp 0x401f34
mov esi, 0xe
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2118]
cmp dword [ebp - 0x211c], eax
je 0x401f54
lea ecx, [ebp - 0x211c]
call fcn.00403240
test esi, esi
je 0x401f63
push esi
call fcn.00402570
add esp, 4
jmp 0x401f7f
mov esi, dword [ebp - 0x212c]
push dword [ebp - 0x2134]
mov ecx, esi
call fcn.004034c0
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov 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.00407c50
mov esp, ebp
pop ebp
ret 0xc