Function at 0x499550
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8315
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x517ba0]
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.0x499590
jmp dword [eax*4 + 0x499954]
mov eax, dword [ecx + 0xc]
mov esi, dword [eax]
call fcn.0049f770
push esi
push eax
push edi
call fcn.00499a20
add esp, 0xc
jmp 0x49992f
mov eax, dword [ecx + 0xc]
mov bl, byte [eax]
call fcn.0049f770
movzx ecx, bl
mov edx, eax
mov dword [ebp - 0x70], ecx
mov eax, dword [edi]
test eax, eax
je 0x4995e5
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 0x49992f
mov eax, dword [edi + 4]
test eax, eax
je case.default.0x499590
push 4
lea ecx, [ebp - 0x70]
push ecx
push edx
push eax
call fcn.004988f0
add esp, 0x10
jmp 0x49992f
mov eax, dword [ecx + 0xc]
movsd xmm0, qword [eax]
movsd qword [ebp - 0x7c], xmm0
call fcn.0049f770
mov ecx, eax
mov eax, dword [edi]
test eax, eax
je 0x49963a
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 0x49992f
mov eax, dword [edi + 4]
test eax, eax
je case.default.0x499590
push 8
lea edx, [ebp - 0x7c]
push edx
push ecx
push eax
call fcn.004988f0
add esp, 0x10
jmp 0x49992f
mov eax, dword [ecx + 0xc]
movzx esi, word [eax]
call fcn.0049f770
movsx ecx, si
jmp 0x4995be
mov esi, dword [ecx + 0xc]
call fcn.0049f770
mov edx, esi
mov ebx, eax
lea eax, [edx + 2]
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x499680
sub edx, eax
mov eax, dword [edi]
sar edx, 1
add edx, edx
test eax, eax
je 0x4996af
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 0x49992f
mov eax, dword [edi + 4]
test eax, eax
je case.default.0x499590
push edx
push esi
push ebx
push eax
call fcn.004988f0
add esp, 0x10
jmp 0x49992f
mov eax, dword [ecx + 0xc]
mov esi, dword [eax]
call fcn.0049f770
push 0x5c
mov ebx, eax
lea eax, [ebp - 0x6c]
push 0
push eax
call fcn.004a7410
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
push 0x5c
push esi
call dword [sym.imp.GDI32.dll_GetObjectW]
push dword [0x51bda8]
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 0x49972c
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 0x49992f
mov eax, dword [edi + 4]
test eax, eax
je case.default.0x499590
push 0x5c
lea ecx, [ebp - 0x6c]
push ecx
push ebx
push eax
call fcn.004988f0
add esp, 0x10
jmp 0x49992f
mov edi, dword [ecx + 0xc]
call fcn.0049f770
mov ecx, edi
mov ebx, eax
call fcn.0049fdc0
mov esi, eax
mov ecx, edi
add esi, esi
call fcn.0049f770
push esi
push eax
call fcn.0049fd60
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.00499980
mov bl, al
mov dword [ebp - 4], 1
test esi, esi
je 0x4997a1
mov ecx, esi
call fcn.0049fda0
mov al, bl
jmp 0x49992f
mov esi, dword [ecx + 0xc]
call fcn.0049f770
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.00429820
push dword [ebp - 0x8c]
call fcn.004a4906
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.00429820
push dword [ebp - 0x98]
push edi
call fcn.0049fd60
mov esi, eax
mov dword [ebp - 0x74], esi
push edi
mov dword [ebp - 4], 2
call fcn.004a447f
mov ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x74]
add esp, 0xc
push eax
push 3
push ebx
call fcn.00499980
mov bl, al
mov dword [ebp - 4], 3
jmp 0x499796
mov esi, dword [ecx + 8]
mov ebx, dword [ecx + 0xc]
call fcn.0049f770
mov ecx, eax
mov eax, dword [edi]
test eax, eax
je 0x49987e
push esi
push ebx
push 3
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov al, 1
jmp 0x49992f
mov eax, dword [edi + 4]
test eax, eax
je 0x499929
push esi
push ebx
push ecx
push eax
call fcn.004988f0
add esp, 0x10
mov al, 1
jmp 0x49992f
mov ebx, dword [ecx + 8]
mov eax, dword [ecx + 0xc]
shr ebx, 1
mov dword [ebp - 0x80], eax
call fcn.0049f770
lea esi, [ebx + ebx]
mov dword [ebp - 0x74], eax
mov eax, esi
mov dword [ebp - 0x78], esi
call fcn.004a4d90
mov eax, esp
mov dword [ebp - 0x84], eax
test ebx, ebx
je 0x4998fa
mov edi, dword [ebp - 0x80]
mov esi, eax
sub edi, eax
nop
push dword [0x51bda4]
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 0x4998d0
mov edi, dword [ebp - 0x70]
mov eax, dword [ebp - 0x84]
mov esi, dword [ebp - 0x78]
mov ecx, dword [edi]
test ecx, ecx
je 0x499914
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 0x49992f
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x499929
push esi
push eax
push dword [ebp - 0x74]
push ecx
call fcn.004988f0
add esp, 0x10
mov al, 1
jmp 0x49992f
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.004a4433
mov esp, ebp
pop ebp
ret 4