Function at 0x49fde0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
push esi
push edi
xor esi, esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x49fe0b
mov eax, 0x12
jmp 0x4a0984
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1a6]
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x49fe59
push 0xc30
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x49fe43
mov eax, 0x12
jmp 0x4a0984
push 0xc30
mov esi, dword [ebp + 0xc]
push esi
push dword [ebp - 0x10]
call fcn.004a32ec
add esp, 0xc
jmp 0x49fe5c
mov esi, dword [ebp + 0xc]
lea edi, [esi + 0x137]
mov ebx, dword [ebp - 4]
add ebx, 0x104
push edi
push ebx
push str.38810806
call fcn.004a395e
cmp byte [edi], 0
jne 0x49fe86
mov eax, 0xc
jmp 0x4a0984
lea edi, [esi + 0x3bc]
push edi
push ebx
push str.SAA_482
call fcn.004a395e
cmp byte [edi], 0
jne 0x49fea7
mov eax, 0xc
jmp 0x4a0984
lea edi, [esi + 0x41e]
push edi
push ebx
push str.YAP00667
call fcn.004a395e
cmp byte [edi], 0
jne 0x49fec8
mov eax, 0xc
jmp 0x4a0984
lea edi, [esi + 5]
lea eax, [ebp - 0x98]
mov byte [esi + 4], 1
push eax
push ebx
push edi
call fcn.004a395e
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0x38]
call fcn.004a32ec
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004a395e
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0x6b]
call fcn.004a32ec
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004a395e
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0x9e]
call fcn.004a32ec
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004a395e
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0xd1]
call fcn.004a32ec
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004a395e
push 0
lea eax, [ebp - 0x98]
push eax
push edi
call fcn.004a32ec
add esp, 0xc
lea edi, [esi + 0x104]
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004a395e
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0x141]
call fcn.004a32ec
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004a395e
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0x174]
call fcn.004a32ec
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004a395e
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0x1a7]
call fcn.004a32ec
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004a395e
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0x1da]
call fcn.004a32ec
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004a395e
push 0
lea eax, [ebp - 0x98]
push eax
push edi
call fcn.004a32ec
add esp, 0xc
lea edi, [esi + 0x20d]
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004a395e
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0x240]
call fcn.004a32ec
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004a395e
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0x273]
call fcn.004a32ec
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004a395e
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0x2a6]
call fcn.004a32ec
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004a395e
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0x2d9]
call fcn.004a32ec
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004a395e
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0x30c]
call fcn.004a32ec
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004a395e
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0x33f]
call fcn.004a32ec
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004a395e
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0x372]
call fcn.004a32ec
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004a395e
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0x3a5]
call fcn.004a32ec
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004a395e
push 0
lea eax, [ebp - 0x98]
push eax
push edi
call fcn.004a32ec
add esp, 0xc
mov edi, dword [ebp - 4]
add edi, 0x106
movsx eax, byte [ebx]
movsx ecx, byte [edi]
imul eax, ecx
add dword [esi + 0x3a8], eax
movsx eax, byte [ebx]
movsx ecx, byte [edi]
imul eax, ecx
add dword [esi + 0x3ac], eax
movsx eax, byte [ebx]
movsx ecx, byte [edi]
imul eax, ecx
add dword [esi + 0x3b0], eax
movsx eax, byte [ebx]
movsx ecx, byte [edi]
imul eax, ecx
add dword [esi + 0x3b4], eax
movsx eax, byte [ebx]
movsx ecx, byte [edi]
imul eax, ecx
add dword [esi + 0x3b8], eax
movsx eax, byte [ebx]
movsx ecx, byte [edi]
imul eax, ecx
add dword [esi + 0x3c6], eax
movsx eax, byte [ebx]
movsx ecx, byte [edi]
imul eax, ecx
add dword [esi + 0x3ca], eax
movsx eax, byte [ebx]
movsx ecx, byte [edi]
imul eax, ecx
add dword [esi + 0x3ce], eax
movsx eax, byte [ebx]
movsx ecx, byte [edi]
imul eax, ecx
add dword [esi + 0x3d2], eax
movsx eax, byte [ebx]
movsx ecx, byte [edi]
imul eax, ecx
add dword [esi + 0x3d6], eax
movsx eax, byte [ebx]
movsx ecx, byte [edi]
imul eax, ecx
add dword [esi + 0x3da], eax
movsx ecx, byte [ebx]
movsx edx, byte [edi]
imul ecx, edx
add dword [esi + 0x3de], ecx
movsx eax, byte [ebx]
movsx edx, byte [edi]
imul eax, edx
sub dword [esi + 0x3e2], eax
movsx eax, byte [ebx]
movsx ecx, byte [edi]
imul eax, ecx
sub dword [esi + 0x3e6], eax
movsx ecx, byte [ebx]
movsx edx, byte [edi]
imul ecx, edx
sub dword [esi + 0x3ea], ecx
movsx eax, byte [ebx]
movsx edx, byte [edi]
imul eax, edx
sub dword [esi + 0x3ee], eax
movsx eax, byte [ebx]
movsx ecx, byte [edi]
imul eax, ecx
sub dword [esi + 0x3f2], eax
movsx ecx, byte [ebx]
movsx edx, byte [edi]
imul ecx, edx
sub dword [esi + 0x3f6], ecx
movsx eax, byte [ebx]
movsx edx, byte [edi]
imul eax, edx
sub dword [esi + 0x3fa], eax
movsx eax, byte [ebx]
movsx ecx, byte [edi]
imul eax, ecx
sub dword [esi + 0x3fe], eax
movsx ecx, byte [ebx]
movsx edx, byte [edi]
imul ecx, edx
sub dword [esi + 0x402], ecx
movsx eax, byte [ebx]
movsx edx, byte [edi]
imul eax, edx
add dword [esi + 0x406], eax
movsx eax, byte [ebx]
movsx ecx, byte [edi]
imul eax, ecx
add dword [esi + 0x40a], eax
movsx eax, byte [ebx]
movsx ecx, byte [edi]
imul eax, ecx
add dword [esi + 0x40e], eax
movsx eax, byte [ebx]
movsx ecx, byte [edi]
imul eax, ecx
sub dword [esi + 0x412], eax
movsx eax, byte [ebx]
movsx ecx, byte [edi]
imul eax, ecx
sub dword [esi + 0x416], eax
movsx eax, byte [ebx]
movsx ecx, byte [edi]
imul eax, ecx
sub dword [esi + 0x41a], eax
movsx eax, byte [ebx]
movsx ecx, byte [edi]
imul eax, ecx
sub dword [esi + 0x428], eax
movsx eax, byte [ebx]
movsx ecx, byte [edi]
imul eax, ecx
sub dword [esi + 0x42c], eax
movsx eax, byte [ebx]
movsx ecx, byte [edi]
imul eax, ecx
sub dword [esi + 0x430], eax
movsx eax, byte [ebx]
movsx ecx, byte [edi]
imul eax, ecx
sub dword [esi + 0x434], eax
movsx eax, byte [ebx]
movsx ecx, byte [edi]
imul eax, ecx
sub dword [esi + 0x438], eax
movsx eax, byte [ebx]
movsx ecx, byte [edi]
imul eax, ecx
sub dword [esi + 0x43c], eax
movsx eax, byte [ebx]
movsx ecx, byte [edi]
imul eax, ecx
sub dword [esi + 0x440], eax
movsx eax, byte [ebx]
movsx ecx, byte [edi]
imul eax, ecx
sub dword [esi + 0x444], eax
movsx eax, byte [ebx]
movsx ecx, byte [edi]
imul eax, ecx
sub dword [esi + 0x448], eax
movsx eax, byte [ebx]
movsx ecx, byte [edi]
imul eax, ecx
sub dword [esi + 0x44c], eax
movsx eax, byte [ebx]
movsx ecx, byte [edi]
imul eax, ecx
sub dword [esi + 0x450], eax
movsx eax, byte [ebx]
movsx ecx, byte [edi]
imul eax, ecx
lea ecx, [esi + 0x5f8]
sub dword [esi + 0x454], eax
cmp dword [ecx], 1
jne 0x4a065f
mov al, byte [ebx]
imul byte [edi]
add byte [esi + 0x5f0], al
mov al, byte [ebx]
imul byte [edi]
add byte [esi + 0x5f1], al
mov al, byte [ebx]
imul byte [edi]
add byte [esi + 0x5f2], al
mov al, byte [ebx]
imul byte [edi]
add byte [esi + 0x5f3], al
movsx eax, byte [ebx]
movsx edx, byte [edi]
imul eax, edx
add dword [esi + 0x5f4], eax
movsx edx, byte [ebx]
movsx eax, byte [edi]
imul edx, eax
add edx, dword [ecx]
mov dword [ecx], edx
lea edx, [ebp - 0x98]
movsx eax, byte [ebx]
movsx ecx, byte [edi]
imul eax, ecx
push edx
add dword [esi + 0x5fc], eax
push ebx
lea eax, [esi + 0x608]
push eax
call fcn.004a395e
push 0
lea ecx, [ebp - 0x98]
push ecx
lea eax, [esi + 0x608]
push eax
call fcn.004a32ec
add esp, 0xc
lea ecx, [ebp - 0x98]
lea eax, [esi + 0x60e]
push ecx
push ebx
push eax
call fcn.004a395e
push 0
lea ecx, [ebp - 0x98]
push ecx
lea eax, [esi + 0x60e]
push eax
call fcn.004a32ec
movsx eax, byte [ebx]
movsx ecx, byte [edi]
imul eax, ecx
add esp, 0xc
lea edx, [ebp - 0x98]
add dword [esi + 0x697], eax
movsx eax, byte [ebx]
movsx ecx, byte [edi]
imul eax, ecx
add dword [esi + 0x69b], eax
push edx
push ebx
lea eax, [esi + 0x69f]
push eax
call fcn.004a395e
push 0
lea ecx, [ebp - 0x98]
push ecx
lea eax, [esi + 0x69f]
push eax
call fcn.004a32ec
movsx eax, byte [ebx]
movsx ecx, byte [edi]
imul eax, ecx
add esp, 0xc
add dword [esi + 0x6a5], eax
movsx ecx, byte [ebx]
movsx edx, byte [edi]
imul ecx, edx
lea edi, [esi + 0x61d]
lea eax, [ebp - 0x98]
push eax
add dword [esi + 0x6a9], ecx
push ebx
push edi
call fcn.004a395e
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0x65a]
call fcn.004a32ec
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004a395e
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0x6ad]
call fcn.004a32ec
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004a395e
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0x6f4]
call fcn.004a32ec
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004a395e
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0x726]
call fcn.004a32ec
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004a395e
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0x776]
call fcn.004a32ec
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004a395e
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0x7da]
call fcn.004a32ec
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004a395e
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0x82a]
call fcn.004a32ec
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004a395e
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0x87a]
call fcn.004a32ec
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004a395e
push 0
lea eax, [ebp - 0x98]
push eax
push edi
call fcn.004a32ec
add esp, 0xc
mov eax, 4
movsx ecx, byte [esi + eax]
inc eax
add dword [ebp - 8], ecx
cmp eax, 0xc30
jb 0x4a0664
mov eax, dword [ebp - 8]
mov dword [esi], eax
xor eax, eax
mov cl, byte [esi + eax]
mov edi, esi
sub edi, eax
add edi, 0xc2f
mov dl, byte [edi]
mov byte [esi + eax], dl
add eax, 2
mov byte [edi], cl
cmp eax, 0x616
jb 0x4a067a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x100]
cmp eax, 1
je 0x4a06b9
cmp eax, 2
je 0x4a0895
mov eax, 0xe
jmp 0x4a0984
mov eax, dword [ebp - 4]
xor ecx, ecx
add eax, 0x181
mov dword [ebp - 8], eax
cmp byte [eax], cl
je 0x4a06fc
mov eax, dword [ebp - 4]
push ecx
push ecx
mov ebx, dword [eax + 0x182]
push ebx
call dword [sym.imp.KERNEL32.dll__llseek]
mov edi, 0xc30
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll__lwrite]
cmp eax, edi
je 0x4a07f8
mov eax, 5
jmp 0x4a0984
push 0
push dword [ebp - 4]
call sub.MSVCRT.dll__access
add esp, 8
cmp eax, 0xffffffff
jne 0x4a0718
mov eax, 0xf
jmp 0x4a0984
mov eax, dword [ebp - 4]
add eax, 0x196
push eax
mov eax, dword [ebp - 4]
add eax, 0x18a
push eax
push dword [ebp - 4]
call fcn.004a39bb
add esp, 0xc
mov edi, dword [ebp - 4]
add edi, 0x186
push dword [ebp - 4]
call fcn.004a39b0
add esp, 4
mov dword [edi], eax
test al, 0xf
je 0x4a076a
push 0
push dword [ebp - 4]
call fcn.004a39a1
add esp, 8
test eax, eax
jne 0x4a076a
mov eax, 3
jmp 0x4a0984
push dword [edi]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll__lcreat]
cmp eax, 0xffffffff
mov ebx, eax
jne 0x4a06dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x4a07ee
mov eax, dword [ebp - 4]
test byte [eax + 0x1aa], 0x10
jne 0x4a07e4
push 1
lea eax, [ebp - 0xb4]
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x4a076a
xor ebx, ebx
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
lea eax, [ebp - 0xb4]
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x4a07b2
jmp 0x4a076a
mov eax, 0x25
jmp 0x4a0984
mov eax, 9
jmp 0x4a0984
mov eax, dword [ebp - 8]
cmp byte [eax], 0
jne 0x4a0859
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
test eax, eax
je 0x4a0815
mov eax, 6
jmp 0x4a0984
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x186]
test al, 0xf
je 0x4a083c
push eax
push dword [ebp - 4]
call fcn.004a39a1
add esp, 8
test eax, eax
jne 0x4a083c
mov eax, 3
jmp 0x4a0984
mov eax, dword [ebp - 4]
add eax, 0x196
push eax
mov eax, dword [ebp - 4]
add eax, 0x18a
push eax
push dword [ebp - 4]
call fcn.004a3a4c
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 0xc], 0
je 0x4a097f
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call fcn.0049fde0
add esp, 8
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp esi, 1
je 0x4a097f
mov eax, esi
jmp 0x4a0984
xor edi, edi
mov eax, dword [ebp - 4]
mov al, byte [eax + edi]
test al, al
je 0x4a08bc
movsx eax, al
push eax
inc edi
call sub.MSVCRT.dll_toupper
add esp, 4
add al, 7
mov byte [ebp + edi - 0xe9], al
cmp edi, 0x32
jl 0x4a0897
push str.softwareclasses_vdsp
lea eax, [ebp - 0x14c]
mov byte [ebp + edi - 0xe8], 0
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
mov eax, dword [ebp - 4]
cmp byte [eax], 0x3a
jne 0x4a0921
xor ecx, ecx
cmp byte [eax + 4], 0x3a
je 0x4a0901
mov eax, dword [ebp - 4]
inc ecx
mov edx, dword [ebp - 4]
mov al, byte [eax + ecx + 3]
mov byte [ebp + ecx - 0x14d], al
cmp byte [edx + ecx + 4], 0x3a
jne 0x4a08e8
mov byte [ebp + ecx - 0x14c], 0
mov eax, dword [ebp - 4]
add eax, ecx
lea ecx, [ebp - 0xe8]
add eax, 5
push eax
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x14c]
push eax
push ecx
push OleUIInsertObjectA
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4a0942
mov eax, 0x2a
jmp 0x4a0984
push 0xc30
lea eax, [ebp - 0xe8]
push esi
push 3
push 0
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4a0967
mov eax, 0x2e
jmp 0x4a0984
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4a0859
mov eax, 0x2c
jmp 0x4a0984
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret