Function at 0x403e60
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x220c]
mov eax, 0x220c
call fcn.004353b0
push 0xffffffffffffffff
push 0x43619b
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x443574]
xor eax, ebp
mov dword [ebp + 0x2208], 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 + 0x221c]
mov edi, dword [ebp + 0x2214]
mov ebx, dword [ebp + 0x2218]
lea edx, [ebp + 0x208]
xor esi, esi
push edx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], esi
call fcn.004019c0
cmp eax, esi
jl 0x4041a6
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 0x208]
push ecx
call fcn.00401800
add esp, 8
test eax, eax
jne 0x403ef8
mov eax, 0x80020009
jmp 0x4041a6
mov ecx, dword [ebp - 0x20]
call fcn.00401960
mov ecx, dword [ebp - 0x20]
lea edx, [ebp + 0x208]
push edx
call fcn.004019c0
cmp eax, esi
jl 0x4041a6
movzx eax, word [ebp - 0x14]
cmp eax, 0x13
jg 0x4040a9
je 0x40406a
cmp eax, 8
je 0x404052
cmp eax, 0x11
jne 0x404190
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test bl, 1
jne 0x403fb7
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov dword [ebp - 0x14], edi
mov dword [ebp + 0x104], esi
mov dword [ebp - 4], 4
push edi
lea ecx, [ebp + 0x104]
mov byte [ebp - 4], 5
call fcn.00403920
mov dword [ebp - 4], 4
jmp 0x403f98
mov eax, dword [ebp + 0x104]
cmp eax, esi
jne 0x403fc1
lea ecx, [ebp + 0x108]
test ecx, ecx
je 0x403fb7
lea ecx, [ebp + 0x104]
call fcn.00401dd0
mov eax, 0x80004005
jmp 0x4041a6
push edi
push esi
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
cmp ebx, esi
jle 0x40400c
movzx ecx, word [ebp + esi*2 + 0x208]
mov eax, dword [ebp + 0x104]
mov edx, esi
shr edx, 1
push ecx
lea edi, [edx + eax]
call fcn.004018b0
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 0x403fd0
mov edi, dword [ebp - 0x14]
xor esi, esi
mov ecx, dword [ebp + 0x104]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
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 + 0x108]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x104], eax
je 0x404181
lea ecx, [ebp + 0x104]
call fcn.00401dd0
jmp 0x404181
push 1
lea ecx, [ebp + 0x208]
push ecx
push ebx
mov ecx, edi
call fcn.00401620
mov edi, eax
jmp 0x404181
mov dword [ebp - 0x18], esi
lea edx, [ebp - 0x1c]
push edx
push esi
push esi
lea eax, [ebp + 0x208]
push eax
mov dword [ebp - 4], 3
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov ecx, dword [ebp - 0x1c]
push ecx
push ebx
mov ecx, edi
call fcn.00401600
lea ecx, [ebp - 0x18]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.00401d60
jmp 0x404181
cmp eax, 0x4008
jne 0x404190
lea edx, [ebp + 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 2
mov dword [ebp], esi
mov dword [ebp - 4], esi
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.004038d0
mov dword [ebp - 4], esi
jmp 0x4040eb
mov eax, dword [ebp]
cmp eax, esi
je 0x404166
cmp word [ebp + 0x208], 0
mov esi, eax
lea edi, [ebp + 0x208]
je 0x404140
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
mov edi, edi
push edi
call ebx
movzx ecx, word [edi]
cmp cx, 0x5c
jne 0x404131
cmp word [eax], 0x30
jne 0x404131
xor ecx, ecx
mov word [esi], cx
push eax
add esi, 2
call ebx
mov edi, eax
jmp 0x40413a
mov word [esi], cx
add esi, 2
add edi, 2
cmp word [edi], 0
jne 0x404110
xor edx, edx
mov word [esi], dx
mov edx, dword [ebp - 0x24]
xor eax, eax
add esi, 2
mov word [esi], ax
mov ecx, dword [ebp]
push ecx
mov ecx, dword [ebp - 0x18]
push edx
call fcn.00401660
mov edi, eax
mov eax, dword [ebp]
xor esi, esi
jmp 0x40416b
mov edi, 0xe
lea ecx, [ebp + 4]
mov dword [ebp - 4], 0xffffffff
cmp eax, ecx
je 0x404181
lea ecx, [ebp]
call fcn.00401dd0
cmp edi, esi
je 0x404190
push edi
call fcn.00401340
add esp, 4
jmp 0x4041a6
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
push edx
call fcn.004019c0
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 + 0x2208]
xor ecx, ebp
call fcn.0043539d
add ebp, 0x220c
mov esp, ebp
pop ebp
ret 0xc