Function at 0x49c490
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9f4b
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x517b80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ecx + 4]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14], edi
cmp eax, 9
ja case.default.0x49c4d0
jmp dword [eax*4 + 0x49c8ac]
mov eax, dword [ecx + 0xc]
mov esi, dword [eax]
call fcn.004a2380
push esi
push eax
push edi
call fcn.0049c980
add esp, 0xc
jmp 0x49c885
mov eax, dword [ecx + 0xc]
mov bl, byte [eax]
call fcn.004a2380
movzx ecx, bl
mov edx, eax
mov dword [ebp - 0x14], ecx
mov eax, dword [edi]
test eax, eax
je 0x49c525
push 4
lea ecx, [ebp - 0x14]
push ecx
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
jmp 0x49c885
mov eax, dword [edi + 4]
test eax, eax
je case.default.0x49c4d0
push 4
lea ecx, [ebp - 0x14]
push ecx
push edx
push eax
call fcn.0049b7d0
add esp, 0x10
jmp 0x49c885
mov eax, dword [ecx + 0xc]
movsd xmm0, qword [eax]
movsd qword [ebp - 0x1c], xmm0
call fcn.004a2380
mov ecx, eax
mov eax, dword [edi]
test eax, eax
je 0x49c57a
push 8
lea edx, [ebp - 0x1c]
push edx
push 3
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
jmp 0x49c885
mov eax, dword [edi + 4]
test eax, eax
je case.default.0x49c4d0
push 8
lea edx, [ebp - 0x1c]
push edx
push ecx
push eax
call fcn.0049b7d0
add esp, 0x10
jmp 0x49c885
mov eax, dword [ecx + 0xc]
movzx esi, word [eax]
call fcn.004a2380
movsx ecx, si
jmp 0x49c4fe
mov esi, dword [ecx + 0xc]
call fcn.004a2380
mov edx, esi
mov ebx, eax
lea eax, [edx + 2]
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x49c5c0
sub edx, eax
mov eax, dword [edi]
sar edx, 1
add edx, edx
test eax, eax
je 0x49c5ef
push edx
push esi
push 1
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
jmp 0x49c885
mov eax, dword [edi + 4]
test eax, eax
je case.default.0x49c4d0
push edx
push esi
push ebx
push eax
call fcn.0049b7d0
add esp, 0x10
jmp 0x49c885
mov eax, dword [ecx + 0xc]
mov esi, dword [eax]
call fcn.004a2380
push 0x5c
mov ebx, eax
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.004aa220
add esp, 0xc
lea eax, [ebp - 0x90]
push eax
push 0x5c
push esi
call dword [sym.imp.GDI32.dll_GetObjectW]
push dword [0x51d690]
push 0x48
push dword [ebp - 0x90]
call dword [sym.imp.KERNEL32.DLL_MulDiv]
neg eax
mov dword [ebp - 0x90], eax
mov eax, dword [edi]
test eax, eax
je 0x49c67b
push 0x5c
lea ecx, [ebp - 0x90]
push ecx
push 3
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
jmp 0x49c885
mov eax, dword [edi + 4]
test eax, eax
je case.default.0x49c4d0
push 0x5c
lea ecx, [ebp - 0x90]
push ecx
push ebx
push eax
call fcn.0049b7d0
add esp, 0x10
jmp 0x49c885
mov edi, dword [ecx + 0xc]
call fcn.004a2380
mov ecx, edi
mov ebx, eax
call fcn.004a2a40
mov esi, eax
mov ecx, edi
add esi, esi
call fcn.004a2380
push esi
push eax
call fcn.004a29e0
mov esi, eax
add esp, 8
mov dword [ebp - 0x94], esi
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x94]
push eax
push 1
push ebx
mov dword [ebp - 4], 0
call fcn.0049c8e0
mov bl, al
mov dword [ebp - 4], 1
test esi, esi
je 0x49c6f9
mov ecx, esi
call fcn.004a2a20
mov al, bl
jmp 0x49c885
mov esi, dword [ecx + 0xc]
call fcn.004a2380
mov ebx, eax
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], 0
push eax
mov ecx, esi
mov dword [ebp - 0x20], 0
call fcn.00425060
push dword [ebp - 0x24]
call fcn.004a7559
mov edx, dword [ebp - 0x24]
add esp, 4
mov edi, eax
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], edi
mov ecx, esi
mov dword [ebp - 0x2c], edx
push eax
call fcn.00425060
push dword [ebp - 0x30]
push edi
call fcn.004a29e0
mov esi, eax
mov dword [ebp - 0x94], esi
push edi
mov dword [ebp - 4], 2
call fcn.004a71f6
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x94]
add esp, 0xc
push eax
push 3
push ebx
call fcn.0049c8e0
mov bl, al
mov dword [ebp - 4], 3
jmp 0x49c6ee
mov esi, dword [ecx + 8]
mov ebx, dword [ecx + 0xc]
call fcn.004a2380
mov ecx, eax
mov eax, dword [edi]
test eax, eax
je 0x49c7bb
push esi
push ebx
push 3
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov al, 1
jmp 0x49c885
mov eax, dword [edi + 4]
test eax, eax
je 0x49c87f
push esi
push ebx
push ecx
push eax
call fcn.0049b7d0
add esp, 0x10
mov al, 1
jmp 0x49c885
mov ebx, dword [ecx + 8]
mov eax, dword [ecx + 0xc]
shr ebx, 1
mov dword [ebp - 0x98], eax
call fcn.004a2380
lea esi, [ebx + ebx]
mov dword [ebp - 0x94], eax
mov eax, esi
mov dword [ebp - 0x18], esi
call fcn.004a79a0
mov eax, esp
mov dword [ebp - 0x9c], eax
test ebx, ebx
je 0x49c84a
mov edi, dword [ebp - 0x98]
mov esi, eax
sub edi, eax
nop word [eax + eax]
push dword [0x51d68c]
movzx eax, word [esi + edi]
push 0x60
push eax
call dword [sym.imp.KERNEL32.DLL_MulDiv]
mov word [esi], ax
lea esi, [esi + 2]
sub ebx, 1
jne 0x49c820
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x9c]
mov esi, dword [ebp - 0x18]
mov ecx, dword [edi]
test ecx, ecx
je 0x49c867
push esi
push eax
push 3
push 0
push dword [ebp - 0x94]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov al, 1
jmp 0x49c885
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x49c87f
push esi
push eax
push dword [ebp - 0x94]
push ecx
call fcn.0049b7d0
add esp, 0x10
mov al, 1
jmp 0x49c885
xor al, al
lea esp, [ebp - 0xac]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a71aa
mov esp, ebp
pop ebp
ret 4