Function at 0x408e30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0a2c
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2120
call fcn.00476090
mov eax, dword [0x52e030]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x2130], edi
mov esi, edx
mov dword [ebp - 0x2128], esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2120], ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x212c], eax
and dword [ebp - 0x211c], 0
lea eax, [ebp - 0x2014]
call fcn.00408d12
test eax, eax
js 0x40916e
lea eax, [ebp - 0x211c]
push eax
lea eax, [ebp - 0x2014]
push eax
call fcn.00408b97
pop ecx
pop ecx
test eax, eax
jne 0x408ec5
mov eax, 0x80020009
jmp 0x40916e
call fcn.00408cec
lea eax, [ebp - 0x2014]
mov ecx, edi
call fcn.00408d12
xor ecx, ecx
cmp eax, ecx
jl 0x40916e
movzx eax, word [ebp - 0x211c]
sub eax, 8
je 0x409138
sub eax, 9
je 0x40901c
dec eax
dec eax
je 0x408fe1
sub eax, 0x3ff5
jne 0x40915b
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 2
and dword [ebp - 0x2118], 0
and dword [ebp - 4], 0
mov byte [ebp - 4], 1
lea esi, [ebp - 0x2118]
call fcn.0041182d
and dword [ebp - 4], 0
mov esi, dword [ebp - 0x2118]
test esi, esi
je 0x408fb8
lea edi, [ebp - 0x2014]
cmp word [ebp - 0x2014], 0
je 0x408f94
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
push edi
call ebx
movzx ecx, word [edi]
cmp ecx, 0x5c
jne 0x408f85
cmp word [eax], 0x30
jne 0x408f85
xor ecx, ecx
mov word [esi], cx
add esi, 2
push eax
call ebx
mov edi, eax
jmp 0x408f8e
mov word [esi], cx
add esi, 2
add edi, 2
cmp word [edi], 0
jne 0x408f5b
xor eax, eax
mov word [esi], ax
mov word [esi + 2], ax
push dword [ebp - 0x2118]
push dword [ebp - 0x2120]
push dword [ebp - 0x2128]
call fcn.0040838f
mov esi, eax
jmp 0x408fbb
push 0xe
pop esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2114]
cmp dword [ebp - 0x2118], eax
je 0x409148
lea eax, [ebp - 0x2118]
call fcn.00412a93
jmp 0x409148
mov dword [ebp - 0x2124], ecx
mov dword [ebp - 4], 3
lea eax, [ebp - 0x2120]
push eax
push ecx
push ecx
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp - 0x2120]
push ebx
push esi
call fcn.0040833b
mov esi, eax
or dword [ebp - 4], 0xffffffff
jmp 0x409148
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x211c], eax
test al, 1
je 0x40903d
mov eax, 0x80004005
jmp 0x40916e
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov dword [ebp - 0x2124], ebx
and dword [ebp - 0x2118], 0
push 4
pop edi
mov dword [ebp - 4], edi
mov byte [ebp - 4], 5
push ebx
lea esi, [ebp - 0x2118]
call fcn.00411863
mov dword [ebp - 4], edi
jmp 0x40907f
xor edi, edi
cmp dword [ebp - 0x2118], edi
jne 0x4090a8
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2114]
cmp dword [ebp - 0x2118], eax
je 0x409033
lea eax, [ebp - 0x2118]
call fcn.00412abf
jmp 0x409033
push ebx
push edi
push dword [ebp - 0x2118]
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp dword [ebp - 0x211c], edi
jle 0x4090f7
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [ebp - 0x2118]
lea esi, [eax + ecx]
mov ax, word [ebp + edi*2 - 0x2014]
call fcn.00408c3f
mov edx, edi
and edx, 1
shl edx, 2
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 0x211c]
jl 0x4090c0
mov eax, dword [ebp - 0x2128]
mov eax, dword [eax]
push ebx
push dword [ebp - 0x2118]
push 3
push 0
push dword [ebp - 0x2120]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2114]
cmp dword [ebp - 0x2118], eax
je 0x409148
lea eax, [ebp - 0x2118]
call fcn.00412abf
jmp 0x409148
lea eax, [ebp - 0x2014]
push eax
push ebx
push esi
call fcn.0040835a
mov esi, eax
test esi, esi
je 0x409155
mov eax, esi
call fcn.00407b45
jmp 0x40916e
mov edi, dword [ebp - 0x2130]
mov eax, dword [ebp - 0x212c]
mov ecx, edi
call fcn.00408d12
test eax, eax
js 0x40916e
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00475360
leave
ret 8