Function at 0x403830
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x2108]
mov eax, 0x2108
call fcn.00408420
push 0xffffffffffffffff
push 0x409188
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x40e4b8]
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 0x403b64
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 0x104]
push ecx
call fcn.00401890
add esp, 8
test eax, eax
jne 0x4038c8
mov eax, 0x80020009
jmp 0x403b64
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 0x403b64
movzx eax, word [ebp - 0x14]
cmp eax, 0x13
jg 0x403a6a
je 0x403a2b
cmp eax, 8
je 0x403a13
cmp eax, 0x11
jne 0x403b4e
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 0x403980
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.004033f0
mov dword [ebp - 4], 4
jmp 0x403962
mov eax, dword [ebp]
cmp eax, esi
jne 0x40398a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x403980
lea ecx, [ebp]
call fcn.00401f20
mov eax, 0x80004005
jmp 0x403b64
push edi
push esi
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
cmp ebx, esi
jle 0x4039d9
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 0x4039a0
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 0x403b3f
lea ecx, [ebp]
call fcn.00401f20
jmp 0x403b3f
push 1
lea ecx, [ebp + 0x104]
push ecx
push ebx
mov ecx, edi
call fcn.004016b0
mov edi, eax
jmp 0x403b3f
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 0x403b3f
cmp eax, 0x4008
jne 0x403b4e
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.004033a0
mov dword [ebp - 4], esi
jmp 0x403aac
mov eax, dword [ebp]
cmp eax, esi
je 0x403b23
mov esi, eax
lea edi, [ebp + 0x104]
cmp word [ebp + 0x104], 0
je 0x403b00
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
jmp 0x403ad0
push edi
call ebx
movzx ecx, word [edi]
cmp cx, 0x5c
jne 0x403af1
cmp word [eax], 0x30
jne 0x403af1
xor ecx, ecx
mov word [esi], cx
add esi, 2
push eax
call ebx
mov edi, eax
jmp 0x403afa
mov word [esi], cx
add esi, 2
add edi, 2
cmp word [edi], 0
jne 0x403ad0
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 0x403b28
mov edi, 0xe
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x403b3f
lea ecx, [ebp]
call fcn.00401f20
cmp edi, esi
je 0x403b4e
push edi
call fcn.00401350
add esp, 4
jmp 0x403b64
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.0040840e
add ebp, 0x2108
mov esp, ebp
pop ebp
ret 0xc