Function at 0x403dfc
Capabilities:
Set registry value

Disassembly:
push ebp
mov eax, 0x210c
lea ebp, [esp - 0x68]
call fcn.00412ad0
mov eax, dword [0x41c0b0]
push esi
mov esi, dword [ebp + 0x70]
push edi
mov dword [ebp + 0x64], eax
xor edi, edi
lea eax, [ebp - 0x20a0]
mov ecx, esi
mov dword [ebp - 0x20a4], edi
call fcn.00403791
cmp eax, edi
jl 0x404092
lea eax, [ebp - 0x20a4]
push eax
lea eax, [ebp - 0x20a0]
push eax
call fcn.004040a3
test eax, eax
pop ecx
pop ecx
jne 0x403e58
mov eax, 0x80020009
jmp 0x404092
call fcn.00404429
lea eax, [ebp - 0x20a0]
mov ecx, esi
call fcn.00403791
cmp eax, edi
jl 0x404092
movzx eax, word [ebp - 0x20a4]
sub eax, 8
push ebx
je 0x40405b
sub eax, 9
je 0x403f7d
dec eax
dec eax
je 0x403f4b
sub eax, 0x3ff5
jne 0x404080
lea eax, [ebp - 0x20a0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add eax, eax
push eax
lea esi, [ebp - 0xa0]
mov dword [ebp - 0xa0], edi
call fcn.004041dd
mov esi, dword [ebp - 0xa0]
cmp esi, edi
je 0x403f26
cmp word [ebp - 0x20a0], 0
lea edi, [ebp - 0x20a0]
je 0x403f0d
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
push edi
call ebx
mov cx, word [edi]
cmp cx, 0x5c
jne 0x403f00
cmp word [eax], 0x30
jne 0x403f00
and word [esi], 0
inc esi
push eax
inc esi
call ebx
mov edi, eax
jmp 0x403f07
mov word [esi], cx
inc esi
inc esi
inc edi
inc edi
cmp word [edi], 0
jne 0x403ee1
and word [esi], 0
push dword [ebp - 0xa0]
push dword [ebp + 0x78]
push dword [ebp + 0x74]
call fcn.00404185
mov esi, eax
jmp 0x403f29
push 0xe
pop esi
lea eax, [ebp - 0x9c]
cmp dword [ebp - 0xa0], eax
je 0x404071
lea eax, [ebp - 0xa0]
call fcn.0040339b
jmp 0x404071
call dword [0x41cc48]
lea eax, [ebp - 0x20a4]
push eax
push edi
push edi
lea eax, [ebp - 0x20a0]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp - 0x20a4]
push dword [ebp + 0x78]
push dword [ebp + 0x74]
call fcn.004041bf
jmp 0x40406f
lea eax, [ebp - 0x20a0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test al, 1
mov dword [ebp - 0x20a4], eax
je 0x403f9e
mov eax, 0x80004005
jmp 0x404091
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
push ebx
lea esi, [ebp - 0xa0]
mov dword [ebp - 0xa0], edi
call fcn.004041dd
cmp dword [ebp - 0xa0], edi
jne 0x403fd2
lea eax, [ebp - 0x9c]
test eax, eax
je 0x403f94
mov eax, esi
call fcn.0040339b
jmp 0x403f94
push ebx
push edi
push dword [ebp - 0xa0]
call fcn.0040e260
add esp, 0xc
cmp dword [ebp - 0x20a4], 0
jle 0x404024
mov ecx, dword [ebp - 0xa0]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
mov ax, word [ebp + edi*2 - 0x20a0]
call fcn.004041fd
mov ecx, edi
and ecx, 1
shl ecx, 2
mov edx, ecx
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 0x20a4]
jl 0x403feb
mov eax, dword [ebp + 0x74]
mov eax, dword [eax]
push ebx
push dword [ebp - 0xa0]
push 3
push 0
push dword [ebp + 0x78]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
lea eax, [ebp - 0x9c]
cmp dword [ebp - 0xa0], eax
je 0x404071
lea eax, [ebp - 0xa0]
call fcn.0040339b
jmp 0x404071
push 1
lea eax, [ebp - 0x20a0]
push eax
push dword [ebp + 0x78]
push dword [ebp + 0x74]
call fcn.00404135
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x404080
mov eax, esi
call fcn.0040441a
jmp 0x404091
mov eax, dword [ebp + 0x7c]
mov ecx, dword [ebp + 0x70]
call fcn.00403791
cmp eax, edi
jl 0x404091
xor eax, eax
pop ebx
mov ecx, dword [ebp + 0x64]
pop edi
pop esi
call fcn.0040f289
add ebp, 0x68
leave
ret 0x10