Function at 0x494135
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4c8adb
call fcn.004c7e20
push ecx
mov eax, 0x2110
call fcn.004c7d30
mov eax, dword [0x4ed384]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], eax
push edi
xor ebx, ebx
lea eax, [ebp - 0x2118]
mov ecx, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x211c], ebx
call fcn.0049403a
cmp eax, ebx
jl 0x494417
lea eax, [ebp - 0x211c]
push eax
lea eax, [ebp - 0x2118]
push eax
call fcn.00493eed
test eax, eax
pop ecx
pop ecx
jne 0x49419b
mov eax, 0x80020009
jmp 0x494417
call fcn.0049401f
lea eax, [ebp - 0x2118]
mov ecx, esi
call fcn.0049403a
cmp eax, ebx
jl 0x494417
movzx eax, word [ebp - 0x211c]
sub eax, 8
je 0x4943e1
sub eax, 9
je 0x4942df
dec eax
dec eax
je 0x49429a
sub eax, 0x3ff5
jne 0x494406
lea eax, [ebp - 0x2118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
mov dword [ebp - 0x118], ebx
add eax, eax
mov dword [ebp - 4], ebx
push eax
lea esi, [ebp - 0x118]
mov byte [ebp - 4], 1
call fcn.0049db0e
mov esi, dword [ebp - 0x118]
test esi, esi
je 0x494275
cmp word [ebp - 0x2118], 0
lea ebx, [ebp - 0x2118]
je 0x49425c
mov edi, dword [sym.imp.USER32.dll_CharNextW]
push ebx
call edi
mov cx, word [ebx]
cmp cx, 0x5c
jne 0x49424f
cmp word [eax], 0x30
jne 0x49424f
and word [esi], 0
inc esi
push eax
inc esi
call edi
mov ebx, eax
jmp 0x494256
mov word [esi], cx
inc esi
inc esi
inc ebx
inc ebx
cmp word [ebx], 0
jne 0x49422a
and word [esi], 0
push dword [ebp - 0x118]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004938aa
mov edi, eax
jmp 0x494278
push 0xe
pop edi
lea eax, [ebp - 0x114]
cmp dword [ebp - 0x118], eax
je 0x4943f7
lea eax, [ebp - 0x118]
call fcn.0048b0cf
jmp 0x4943f7
call dword [0x4f09d8]
lea eax, [ebp - 0x211c]
push eax
push ebx
push ebx
lea eax, [ebp - 0x2118]
push eax
mov dword [ebp - 0x2120], ebx
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp - 0x211c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0049388c
lea esi, [ebp - 0x2120]
mov edi, eax
call fcn.00430808
jmp 0x4943f7
lea eax, [ebp - 0x2118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test al, 1
mov dword [ebp - 0x211c], eax
jne 0x49434e
and dword [ebp - 0x118], 0
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov dword [ebp - 0x2120], ebx
mov dword [ebp - 4], 3
push ebx
lea esi, [ebp - 0x118]
mov byte [ebp - 4], 4
call fcn.0049db0e
jmp 0x49432f
xor edi, edi
cmp dword [ebp - 0x118], edi
jne 0x494358
lea eax, [ebp - 0x114]
test eax, eax
je 0x49434e
lea eax, [ebp - 0x118]
call fcn.0048b0cf
mov eax, 0x80004005
jmp 0x494417
push ebx
push edi
push dword [ebp - 0x118]
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [ebp - 0x211c], 0
jle 0x4943aa
mov ecx, dword [ebp - 0x118]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
mov ax, word [ebp + edi*2 - 0x2118]
call fcn.00493f7f
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 - 0x211c]
jl 0x494371
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push ebx
push dword [ebp - 0x118]
push 3
push 0
push dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea eax, [ebp - 0x114]
cmp dword [ebp - 0x118], eax
je 0x4943f7
lea eax, [ebp - 0x118]
call fcn.0048b0cf
jmp 0x4943f7
push 1
lea eax, [ebp - 0x2118]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004709a8
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x494406
mov eax, edi
call fcn.00493713
jmp 0x494417
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
call fcn.0049403a
cmp eax, ebx
jl 0x494417
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.004c7b01
pop edi
pop esi
pop ebx
leave
ret 0x10