Function at 0x495f50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d43c5
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x513b94]
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 - 0x70], edi
cmp eax, 9
ja case.default.0x495f90
jmp dword [eax*4 + 0x496354]
mov eax, dword [ecx + 0xc]
mov esi, dword [eax]
call fcn.0049c120
push esi
push eax
push edi
call fcn.00496420
add esp, 0xc
jmp 0x49632f
mov eax, dword [ecx + 0xc]
mov bl, byte [eax]
call fcn.0049c120
movzx ecx, bl
mov edx, eax
mov dword [ebp - 0x70], ecx
mov eax, dword [edi]
test eax, eax
je 0x495fe5
push 4
lea ecx, [ebp - 0x70]
push ecx
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
jmp 0x49632f
mov eax, dword [edi + 4]
test eax, eax
je case.default.0x495f90
push 4
lea ecx, [ebp - 0x70]
push ecx
push edx
push eax
call fcn.004952f0
add esp, 0x10
jmp 0x49632f
mov eax, dword [ecx + 0xc]
movsd xmm0, qword [eax]
movsd qword [ebp - 0x7c], xmm0
call fcn.0049c120
mov ecx, eax
mov eax, dword [edi]
test eax, eax
je 0x49603a
push 8
lea edx, [ebp - 0x7c]
push edx
push 3
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
jmp 0x49632f
mov eax, dword [edi + 4]
test eax, eax
je case.default.0x495f90
push 8
lea edx, [ebp - 0x7c]
push edx
push ecx
push eax
call fcn.004952f0
add esp, 0x10
jmp 0x49632f
mov eax, dword [ecx + 0xc]
movzx esi, word [eax]
call fcn.0049c120
movsx ecx, si
jmp 0x495fbe
mov esi, dword [ecx + 0xc]
call fcn.0049c120
mov edx, esi
mov ebx, eax
lea eax, [edx + 2]
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x496080
sub edx, eax
mov eax, dword [edi]
sar edx, 1
add edx, edx
test eax, eax
je 0x4960af
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 0x49632f
mov eax, dword [edi + 4]
test eax, eax
je case.default.0x495f90
push edx
push esi
push ebx
push eax
call fcn.004952f0
add esp, 0x10
jmp 0x49632f
mov eax, dword [ecx + 0xc]
mov esi, dword [eax]
call fcn.0049c120
push 0x5c
mov ebx, eax
lea eax, [ebp - 0x6c]
push 0
push eax
call fcn.004a3e00
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
push 0x5c
push esi
call dword [sym.imp.GDI32.dll_GetObjectW]
push dword [0x517da8]
push 0x48
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
mov dword [ebp - 0x6c], eax
mov eax, dword [edi]
test eax, eax
je 0x49612c
push 0x5c
lea ecx, [ebp - 0x6c]
push ecx
push 3
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
jmp 0x49632f
mov eax, dword [edi + 4]
test eax, eax
je case.default.0x495f90
push 0x5c
lea ecx, [ebp - 0x6c]
push ecx
push ebx
push eax
call fcn.004952f0
add esp, 0x10
jmp 0x49632f
mov edi, dword [ecx + 0xc]
call fcn.0049c120
mov ecx, edi
mov ebx, eax
call fcn.0049c770
mov esi, eax
mov ecx, edi
add esi, esi
call fcn.0049c120
push esi
push eax
call fcn.0049c710
mov esi, eax
add esp, 8
mov dword [ebp - 0x74], esi
mov ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x74]
push eax
push 1
push ebx
mov dword [ebp - 4], 0
call fcn.00496380
mov bl, al
mov dword [ebp - 4], 1
test esi, esi
je 0x4961a1
mov ecx, esi
call fcn.0049c750
mov al, bl
jmp 0x49632f
mov esi, dword [ecx + 0xc]
call fcn.0049c120
mov ebx, eax
mov dword [ebp - 0x90], 0
lea eax, [ebp - 0x90]
mov dword [ebp - 0x8c], 0
push eax
mov ecx, esi
mov dword [ebp - 0x88], 0
call fcn.00428570
push dword [ebp - 0x8c]
call fcn.004a12e6
mov edx, dword [ebp - 0x8c]
add esp, 4
mov edi, eax
mov dword [ebp - 0x98], 0
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], edi
mov ecx, esi
mov dword [ebp - 0x94], edx
push eax
call fcn.00428570
push dword [ebp - 0x98]
push edi
call fcn.0049c710
mov esi, eax
mov dword [ebp - 0x74], esi
push edi
mov dword [ebp - 4], 2
call fcn.004a0e5f
mov ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x74]
add esp, 0xc
push eax
push 3
push ebx
call fcn.00496380
mov bl, al
mov dword [ebp - 4], 3
jmp 0x496196
mov esi, dword [ecx + 8]
mov ebx, dword [ecx + 0xc]
call fcn.0049c120
mov ecx, eax
mov eax, dword [edi]
test eax, eax
je 0x49627e
push esi
push ebx
push 3
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov al, 1
jmp 0x49632f
mov eax, dword [edi + 4]
test eax, eax
je 0x496329
push esi
push ebx
push ecx
push eax
call fcn.004952f0
add esp, 0x10
mov al, 1
jmp 0x49632f
mov ebx, dword [ecx + 8]
mov eax, dword [ecx + 0xc]
shr ebx, 1
mov dword [ebp - 0x80], eax
call fcn.0049c120
lea esi, [ebx + ebx]
mov dword [ebp - 0x74], eax
mov eax, esi
mov dword [ebp - 0x78], esi
call fcn.004a1780
mov eax, esp
mov dword [ebp - 0x84], eax
test ebx, ebx
je 0x4962fa
mov edi, dword [ebp - 0x80]
mov esi, eax
sub edi, eax
nop
push dword [0x517da4]
movzx eax, word [edi + esi]
push 0x60
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov word [esi], ax
lea esi, [esi + 2]
sub ebx, 1
jne 0x4962d0
mov edi, dword [ebp - 0x70]
mov eax, dword [ebp - 0x84]
mov esi, dword [ebp - 0x78]
mov ecx, dword [edi]
test ecx, ecx
je 0x496314
push esi
push eax
push 3
push 0
push dword [ebp - 0x74]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov al, 1
jmp 0x49632f
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x496329
push esi
push eax
push dword [ebp - 0x74]
push ecx
call fcn.004952f0
add esp, 0x10
mov al, 1
jmp 0x49632f
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.004a0e13
mov esp, ebp
pop ebp
ret 4