Function at 0x403810
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x2108]
mov eax, 0x2108
call fcn.00409b20
push 0xffffffffffffffff
push 0x4182b8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x41f4bc]
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 - 0x20], ecx
mov edi, dword [ebp + 0x2110]
mov dword [ebp - 0x18], edi
mov ebx, dword [ebp + 0x2114]
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp + 0x2118]
mov dword [ebp - 0x28], eax
xor esi, esi
mov dword [ebp - 0x14], esi
lea edx, [ebp + 0x104]
push edx
call fcn.00401aa0
cmp eax, esi
jl 0x403b44
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 0x104]
push ecx
call fcn.00401890
add esp, 8
test eax, eax
jne 0x4038a8
mov eax, 0x80020009
jmp 0x403b44
mov ecx, dword [ebp - 0x20]
call fcn.00401a40
lea edx, [ebp + 0x104]
push edx
mov ecx, dword [ebp - 0x20]
call fcn.00401aa0
cmp eax, esi
jl 0x403b44
movzx eax, word [ebp - 0x14]
cmp eax, 0x13
jg 0x403a4a
je 0x403a0b
cmp eax, 8
je 0x4039f3
cmp eax, 0x11
jne 0x403b2e
lea eax, [ebp + 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test bl, 1
jne 0x403960
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov dword [ebp - 0x14], edi
mov dword [ebp], esi
mov dword [ebp - 4], 4
mov byte [ebp - 4], 5
push edi
lea ecx, [ebp]
call fcn.004033e0
mov dword [ebp - 4], 4
jmp 0x403942
mov eax, dword [ebp]
cmp eax, esi
jne 0x40396a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x403960
lea ecx, [ebp]
call fcn.00401f20
mov eax, 0x80004005
jmp 0x403b44
push edi
push esi
push eax
call fcn.00409be0
add esp, 0xc
cmp ebx, esi
jle 0x4039b9
lea esp, [esp]
mov edx, esi
shr edx, 1
mov eax, dword [ebp]
lea edi, [edx + eax]
movzx ecx, word [ebp + esi*2 + 0x104]
push ecx
call fcn.00401990
add esp, 4
mov edx, esi
and edx, 1
add edx, edx
add edx, edx
mov ecx, 4
sub ecx, edx
shl al, cl
or byte [edi], al
inc esi
cmp esi, ebx
jl 0x403980
xor esi, esi
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
push edi
mov ecx, dword [ebp]
push ecx
push 3
push esi
mov edx, dword [ebp - 0x24]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x403b1f
lea ecx, [ebp]
call fcn.00401f20
jmp 0x403b1f
push 1
lea ecx, [ebp + 0x104]
push ecx
push ebx
mov ecx, edi
call fcn.004016b0
mov edi, eax
jmp 0x403b1f
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 3
lea edx, [ebp - 0x1c]
push edx
push esi
push esi
lea eax, [ebp + 0x104]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov ecx, dword [ebp - 0x1c]
push ecx
push ebx
mov ecx, edi
call fcn.00401690
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401eb0
jmp 0x403b1f
cmp eax, 0x4008
jne 0x403b2e
lea edx, [ebp + 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 2
mov dword [ebp], esi
mov dword [ebp - 4], esi
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp]
call fcn.00403390
mov dword [ebp - 4], esi
jmp 0x403a8c
mov eax, dword [ebp]
cmp eax, esi
je 0x403b03
mov esi, eax
lea edi, [ebp + 0x104]
cmp word [ebp + 0x104], 0
je 0x403ae0
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
jmp 0x403ab0
push edi
call ebx
movzx ecx, word [edi]
cmp cx, 0x5c
jne 0x403ad1
cmp word [eax], 0x30
jne 0x403ad1
xor ecx, ecx
mov word [esi], cx
add esi, 2
push eax
call ebx
mov edi, eax
jmp 0x403ada
mov word [esi], cx
add esi, 2
add edi, 2
cmp word [edi], 0
jne 0x403ab0
xor edx, edx
mov word [esi], dx
add esi, 2
xor eax, eax
mov word [esi], ax
mov ecx, dword [ebp]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.004016f0
mov edi, eax
xor esi, esi
jmp 0x403b08
mov edi, 0xe
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x403b1f
lea ecx, [ebp]
call fcn.00401f20
cmp edi, esi
je 0x403b2e
push edi
call fcn.00401450
add esp, 4
jmp 0x403b44
mov ecx, dword [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.00401aa0
xor edx, edx
cmp eax, esi
setge dl
dec edx
and eax, edx
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.00409b02
add ebp, 0x2108
mov esp, ebp
pop ebp
ret 0xc