Function at 0x401d40
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x2108]
mov eax, 0x2108
call fcn.00408790
push 0xffffffffffffffff
push 0x41b460
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x42a094]
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 esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [ebp + 0x2118]
mov ebx, dword [ebp + 0x2110]
mov edi, dword [ebp + 0x2114]
mov dword [ebp - 0x2c], eax
lea eax, [ebp + 0x104]
push eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 0
call fcn.004032e0
test eax, eax
js 0x402067
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x104]
push eax
call fcn.00406010
add esp, 8
test eax, eax
jne 0x401ddf
mov eax, 0x80020009
jmp 0x402067
mov ecx, esi
call fcn.00405990
lea eax, [ebp + 0x104]
mov ecx, esi
push eax
call fcn.004032e0
test eax, eax
js 0x402067
movzx eax, word [ebp - 0x14]
cmp eax, 0x13
ja 0x401f7b
je 0x401f30
cmp eax, 8
je 0x401f18
cmp eax, 0x11
jne 0x402053
lea ebx, [ebp + 0x104]
lea ecx, [ebx + 2]
lea ebx, [ebx]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x401e30
sub ebx, ecx
sar ebx, 1
mov dword [ebp - 0x24], ebx
test bl, 1
jne 0x401e98
mov eax, ebx
mov dword [ebp], 0
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 3
lea ecx, [ebp]
push esi
mov byte [ebp - 4], 4
call fcn.00402090
jmp 0x401e82
mov eax, dword [ebp]
test eax, eax
jne 0x401ea2
lea eax, [ebp + 4]
test eax, eax
je 0x401e98
lea ecx, [ebp]
call fcn.00402fe0
mov eax, 0x80004005
jmp 0x402067
push esi
push 0
push eax
call fcn.0040b050
add esp, 0xc
xor edi, edi
test ebx, ebx
jle 0x401ee7
movzx eax, word [ebp + edi*2 + 0x104]
mov esi, edi
shr esi, 1
add esi, dword [ebp]
push eax
call fcn.00402680
mov edx, edi
mov ecx, 4
and edx, 1
inc edi
shl edx, 2
add esp, 4
sub ecx, edx
shl al, cl
or byte [esi], al
cmp edi, ebx
jl 0x401eb4
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
push esi
push dword [ebp]
push 3
push 0
push dword [ebp - 0x18]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x402041
lea ecx, [ebp]
call fcn.00402fe0
jmp 0x402041
push 1
lea eax, [ebp + 0x104]
mov ecx, ebx
push eax
push edi
call fcn.004058c0
mov esi, eax
jmp 0x402041
lea eax, [ebp - 0x24]
mov dword [ebp - 0x14], 0
push eax
push 0
push 0
lea eax, [ebp + 0x104]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov esi, eax
test esi, esi
jns 0x401f61
lea ecx, [ebp - 0x14]
call fcn.004016c0
mov eax, esi
jmp 0x402067
push dword [ebp - 0x24]
mov ecx, ebx
push edi
call fcn.004057e0
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.004016c0
jmp 0x402041
cmp eax, 0x4008
jne 0x402053
lea ecx, [ebp + 0x104]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401f90
sub ecx, edx
mov dword [ebp], 0
sar ecx, 1
add ecx, 2
push ecx
mov dword [ebp - 4], 0
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.004020d0
jmp 0x401fcb
mov edi, dword [ebp]
test edi, edi
je 0x40202d
cmp word [ebp + 0x104], 0
lea esi, [ebp + 0x104]
je 0x402014
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
push esi
call ebx
movzx ecx, word [esi]
cmp ecx, 0x5c
jne 0x402005
cmp word [eax], 0x30
jne 0x402005
xor ecx, ecx
push eax
mov word [edi], cx
call ebx
mov esi, eax
jmp 0x40200b
mov word [edi], cx
add esi, 2
add edi, 2
cmp word [esi], 0
jne 0x401fe8
mov ecx, dword [ebp - 0x1c]
xor eax, eax
mov dword [edi], eax
push dword [ebp]
push dword [ebp - 0x18]
call fcn.00405860
mov edi, dword [ebp]
mov esi, eax
jmp 0x402032
mov esi, 0xe
lea eax, [ebp + 4]
cmp edi, eax
je 0x402041
lea ecx, [ebp]
call fcn.00402fe0
test esi, esi
je 0x402050
push esi
call fcn.00402500
add esp, 4
jmp 0x402067
mov esi, dword [ebp - 0x20]
push dword [ebp - 0x2c]
mov ecx, esi
call fcn.004032e0
xor ecx, ecx
test eax, eax
setns 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 + 0x2104]
xor ecx, ebp
call fcn.0040874b
lea esp, [ebp + 0x2108]
pop ebp
ret 0xc