Function at 0x485d40
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 0x485d6b
mov eax, 0x12
jmp 0x4868e4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1a6]
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x485db9
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 0x485da3
mov eax, 0x12
jmp 0x4868e4
push 0xc30
mov esi, dword [ebp + 0xc]
push esi
push dword [ebp - 0x10]
call fcn.0048924c
add esp, 0xc
jmp 0x485dbc
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.004898be
cmp byte [edi], 0
jne 0x485de6
mov eax, 0xc
jmp 0x4868e4
lea edi, [esi + 0x3bc]
push edi
push ebx
push str.SAA_482
call fcn.004898be
cmp byte [edi], 0
jne 0x485e07
mov eax, 0xc
jmp 0x4868e4
lea edi, [esi + 0x41e]
push edi
push ebx
push str.YAP00667
call fcn.004898be
cmp byte [edi], 0
jne 0x485e28
mov eax, 0xc
jmp 0x4868e4
lea edi, [esi + 5]
lea eax, [ebp - 0x98]
mov byte [esi + 4], 1
push eax
push ebx
push edi
call fcn.004898be
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0x38]
call fcn.0048924c
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004898be
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0x6b]
call fcn.0048924c
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004898be
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0x9e]
call fcn.0048924c
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004898be
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0xd1]
call fcn.0048924c
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004898be
push 0
lea eax, [ebp - 0x98]
push eax
push edi
call fcn.0048924c
add esp, 0xc
lea edi, [esi + 0x104]
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004898be
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0x141]
call fcn.0048924c
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004898be
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0x174]
call fcn.0048924c
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004898be
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0x1a7]
call fcn.0048924c
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004898be
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0x1da]
call fcn.0048924c
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004898be
push 0
lea eax, [ebp - 0x98]
push eax
push edi
call fcn.0048924c
add esp, 0xc
lea edi, [esi + 0x20d]
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004898be
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0x240]
call fcn.0048924c
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004898be
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0x273]
call fcn.0048924c
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004898be
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0x2a6]
call fcn.0048924c
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004898be
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0x2d9]
call fcn.0048924c
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004898be
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0x30c]
call fcn.0048924c
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004898be
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0x33f]
call fcn.0048924c
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004898be
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0x372]
call fcn.0048924c
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004898be
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0x3a5]
call fcn.0048924c
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004898be
push 0
lea eax, [ebp - 0x98]
push eax
push edi
call fcn.0048924c
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 0x4865bf
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.004898be
push 0
lea ecx, [ebp - 0x98]
push ecx
lea eax, [esi + 0x608]
push eax
call fcn.0048924c
add esp, 0xc
lea ecx, [ebp - 0x98]
lea eax, [esi + 0x60e]
push ecx
push ebx
push eax
call fcn.004898be
push 0
lea ecx, [ebp - 0x98]
push ecx
lea eax, [esi + 0x60e]
push eax
call fcn.0048924c
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.004898be
push 0
lea ecx, [ebp - 0x98]
push ecx
lea eax, [esi + 0x69f]
push eax
call fcn.0048924c
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.004898be
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0x65a]
call fcn.0048924c
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004898be
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0x6ad]
call fcn.0048924c
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004898be
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0x6f4]
call fcn.0048924c
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004898be
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0x726]
call fcn.0048924c
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004898be
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0x776]
call fcn.0048924c
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004898be
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0x7da]
call fcn.0048924c
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004898be
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0x82a]
call fcn.0048924c
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004898be
push 0
lea eax, [ebp - 0x98]
push eax
push edi
lea edi, [esi + 0x87a]
call fcn.0048924c
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push ebx
push edi
call fcn.004898be
push 0
lea eax, [ebp - 0x98]
push eax
push edi
call fcn.0048924c
add esp, 0xc
mov eax, 4
movsx ecx, byte [esi + eax]
inc eax
add dword [ebp - 8], ecx
cmp eax, 0xc30
jb 0x4865c4
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 0x4865da
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x100]
cmp eax, 1
je 0x486619
cmp eax, 2
je 0x4867f5
mov eax, 0xe
jmp 0x4868e4
mov eax, dword [ebp - 4]
xor ecx, ecx
add eax, 0x181
mov dword [ebp - 8], eax
cmp byte [eax], cl
je 0x48665c
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 0x486758
mov eax, 5
jmp 0x4868e4
push 0
push dword [ebp - 4]
call sub.MSVCRT.dll__access
add esp, 8
cmp eax, 0xffffffff
jne 0x486678
mov eax, 0xf
jmp 0x4868e4
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.0048991b
add esp, 0xc
mov edi, dword [ebp - 4]
add edi, 0x186
push dword [ebp - 4]
call fcn.00489910
add esp, 4
mov dword [edi], eax
test al, 0xf
je 0x4866ca
push 0
push dword [ebp - 4]
call fcn.00489901
add esp, 8
test eax, eax
jne 0x4866ca
mov eax, 3
jmp 0x4868e4
push dword [edi]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll__lcreat]
cmp eax, 0xffffffff
mov ebx, eax
jne 0x48663c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x48674e
mov eax, dword [ebp - 4]
test byte [eax + 0x1aa], 0x10
jne 0x486744
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 0x4866ca
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 0x486712
jmp 0x4866ca
mov eax, 0x25
jmp 0x4868e4
mov eax, 9
jmp 0x4868e4
mov eax, dword [ebp - 8]
cmp byte [eax], 0
jne 0x4867b9
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
test eax, eax
je 0x486775
mov eax, 6
jmp 0x4868e4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x186]
test al, 0xf
je 0x48679c
push eax
push dword [ebp - 4]
call fcn.00489901
add esp, 8
test eax, eax
jne 0x48679c
mov eax, 3
jmp 0x4868e4
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.004899ac
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 0xc], 0
je 0x4868df
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call fcn.00485d40
add esp, 8
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp esi, 1
je 0x4868df
mov eax, esi
jmp 0x4868e4
xor edi, edi
mov eax, dword [ebp - 4]
mov al, byte [eax + edi]
test al, al
je 0x48681c
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 0x4867f7
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 0x486881
xor ecx, ecx
cmp byte [eax + 4], 0x3a
je 0x486861
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 0x486848
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 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4868a2
mov eax, 0x2a
jmp 0x4868e4
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 0x4868c7
mov eax, 0x2e
jmp 0x4868e4
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4867b9
mov eax, 0x2c
jmp 0x4868e4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret