Function at 0x402441
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x2108]
mov eax, 0x2108
call fcn.00407360
push 0xffffffffffffffff
push 0x4088b9
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x412014]
xor eax, ebp
mov dword [ebp + 0x2104], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp + 0x2118]
xor edi, edi
mov ebx, dword [ebp + 0x2110]
mov esi, dword [ebp + 0x2114]
mov dword [ebp - 0x2c], eax
lea eax, [ebp + 0x104]
push eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], edi
call fcn.00402cf7
test eax, eax
js 0x40275a
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x104]
push eax
call fcn.004042c3
pop ecx
pop ecx
test eax, eax
jne 0x4024db
mov eax, 0x80020009
jmp 0x40275a
mov ecx, dword [ebp - 0x18]
call fcn.00403db2
mov ecx, dword [ebp - 0x18]
lea eax, [ebp + 0x104]
push eax
call fcn.00402cf7
test eax, eax
js 0x40275a
movzx eax, word [ebp - 0x14]
sub eax, 8
je 0x402726
sub eax, 9
je 0x402625
dec eax
sub eax, 1
je 0x4025fa
sub eax, 0x3ff5
jne 0x402746
lea ecx, [ebp + 0x104]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x40252e
sub ecx, edx
mov dword [ebp], edi
sar ecx, 1
add ecx, 2
push 2
mov dword [ebp - 4], edi
push ecx
mov byte [ebp - 4], 1
call fcn.00401e84
pop ecx
pop ecx
cmp eax, 0x100
jbe 0x402566
push eax
lea ecx, [ebp]
call fcn.0040277f
jmp 0x40257c
lea esi, [ebp + 4]
mov dword [ebp], esi
jmp 0x40257f
mov esi, dword [ebp]
test esi, esi
je 0x4025df
cmp word [ebp + 0x104], 0
lea ebx, [ebp + 0x104]
je 0x4025c6
push ebx
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [ebx]
cmp ecx, 0x5c
jne 0x4025b8
cmp word [eax], 0x30
jne 0x4025b8
xor ecx, ecx
push eax
mov word [esi], cx
call dword [sym.imp.USER32.dll_CharNextW]
mov ebx, eax
jmp 0x4025be
mov word [esi], cx
add ebx, 2
add esi, 2
cmp word [ebx], di
jne 0x402593
mov ecx, dword [ebp - 0x20]
xor eax, eax
mov dword [esi], eax
push dword [ebp]
push dword [ebp - 0x1c]
call fcn.00403ca5
mov esi, dword [ebp]
mov edi, eax
jmp 0x4025e2
push 0xe
pop edi
lea eax, [ebp + 4]
cmp esi, eax
je 0x402739
lea ecx, [ebp]
call fcn.00402b50
jmp 0x402739
lea eax, [ebp - 0x24]
push eax
push edi
push edi
lea eax, [ebp + 0x104]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
test eax, eax
js 0x40275a
push dword [ebp - 0x24]
mov ecx, ebx
push esi
call fcn.00403c8b
jmp 0x402737
lea ebx, [ebp + 0x104]
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
cmp ax, di
jne 0x40262e
sub ebx, ecx
sar ebx, 1
mov dword [ebp - 0x14], ebx
test bl, 1
jne 0x4026a6
mov eax, ebx
mov dword [ebp], edi
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov dword [ebp - 0x24], esi
push 1
mov dword [ebp - 4], 3
push esi
mov byte [ebp - 4], 4
call fcn.00401e84
pop ecx
pop ecx
cmp eax, 0x100
jbe 0x40267b
push eax
lea ecx, [ebp]
call fcn.0040277f
jmp 0x402697
lea eax, [ebp + 4]
mov dword [ebp], eax
jmp 0x40269a
mov eax, dword [ebp]
test eax, eax
jne 0x4026b0
lea ecx, [ebp]
call fcn.00402b50
mov eax, 0x80004005
jmp 0x40275a
push esi
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, edi
mov dword [ebp - 0x14], eax
test ebx, ebx
jle 0x4026fd
mov esi, dword [ebp]
mov edi, eax
movzx eax, word [ebp + eax*2 + 0x104]
push eax
shr edi, 1
call fcn.00402933
mov edx, dword [ebp - 0x14]
pop ecx
and edx, 1
shl edx, 2
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [edi + esi], al
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, ebx
jl 0x4026c4
mov esi, dword [ebp - 0x24]
xor edi, edi
mov eax, dword [ebp - 0x20]
push esi
push dword [ebp]
push 3
push edi
push dword [ebp - 0x1c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x402739
lea ecx, [ebp]
call fcn.00402b50
jmp 0x402739
push 1
lea eax, [ebp + 0x104]
mov ecx, ebx
push eax
push esi
call fcn.00403cfe
mov edi, eax
test edi, edi
je 0x402746
push edi
call fcn.004028d8
pop ecx
jmp 0x40275a
push dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
call fcn.00402cf7
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 + 0x2104]
xor ecx, ebp
call fcn.0040728f
add ebp, 0x2108
leave
ret 0xc