Function at 0x494cd0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x510b45
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x550144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x20], eax
mov eax, dword [eax + 0x14]
mov esi, dword [eax]
cmp esi, eax
je 0x49503c
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.HKEY_LOCAL_MACHINE
push dword [esi + 0x10]
call fcn.004e3a87
add esp, 8
test eax, eax
jne 0x494d2e
mov edi, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x494db7
push str.HKEY_CLASSES_ROOT
push dword [esi + 0x10]
call fcn.004e3a87
add esp, 8
test eax, eax
jne 0x494d49
mov edi, SysReAllocString
jmp 0x494db7
push str.HKEY_CURRENT_USER
push dword [esi + 0x10]
call fcn.004e3a87
add esp, 8
test eax, eax
jne 0x494d64
mov edi, SysReAllocString
jmp 0x494db7
push str.HKEY_USERS
push dword [esi + 0x10]
call fcn.004e3a87
add esp, 8
test eax, eax
jne 0x494d7f
mov edi, reloc.WS2_32.dll_closesocket
jmp 0x494db7
push str.HKEY_CURRENT_CONFIG
push dword [esi + 0x10]
call fcn.004e3a87
add esp, 8
test eax, eax
jne 0x494d9a
mov edi, VariantInit
jmp 0x494db7
push str.HKEY_CURRENT_USER_LOCAL_SETTINGS
push dword [esi + 0x10]
call fcn.004e3a87
add esp, 8
test eax, eax
jne 0x495028
mov edi, reloc.OLEAUT32.dll_VariantInit
movzx eax, word [esi + 0xa]
cmp eax, dword [ebp + 8]
jne 0x495028
movzx eax, word [esi + 8]
sub eax, 0
je 0x494f23
sub eax, 1
jne 0x495028
mov dword [ebp - 4], 1
cmp dword [esi + 0xc], 0
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0
je 0x494e39
cmp dword [0x550c0c], 0xffffffff
jne 0x494e39
push 0x53677c
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x494e2c
push 0x550c0c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
test eax, eax
jne 0x494e36
mov dword [0x550c0c], 0
mov eax, dword [ebp - 0x18]
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x494f00
mov eax, dword [esi + 0x18]
cmp dword [eax - 0xc], 0
jle 0x494f00
push eax
push dword [esi + 0x14]
push dword [esi + 0x10]
push str.HandleRegister_Write_key_s__subkey_s__name_s.
push 0x550bb8
call fcn.0048d880
add esp, 0x14
cmp dword [esi + 0x1c], 4
jne 0x494ea7
push dword [esi + 0x20]
call fcn.004e92ad
mov dword [ebp - 0x1c], eax
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x494ef3
push 4
lea ecx, [ebp - 0x1c]
push ecx
push 4
jmp 0x494ed0
mov eax, dword [ebp - 0x10]
mov edi, dword [esi + 0x20]
test eax, eax
je 0x494ef3
mov edx, edi
lea ebx, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x494eb6
sub edx, ebx
sar edx, 1
lea ecx, [edx*2 + 2]
push ecx
push edi
push 1
push 0
push dword [esi + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x494ef9
push eax
call edi
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x494f09
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x494f09
mov eax, dword [ebp - 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x494f17
push eax
call edi
mov dword [ebp - 0x10], 0
jmp 0x495028
mov eax, dword [esi + 0x18]
cmp dword [eax - 0xc], 0
jne 0x494f56
push dword [esi + 0x14]
push dword [esi + 0x10]
push str.HandleRegister_DeleteSubKeyTree_key_s__subkey_s.
push 0x550bb8
call fcn.0048d880
push dword [esi + 0xc]
mov edx, dword [esi + 0x14]
mov ecx, edi
call fcn.0048a220
add esp, 0x14
jmp 0x495028
push eax
push dword [esi + 0x14]
push dword [esi + 0x10]
push str.HandleRegister_DeleteValue_key_s__subkey_s__name_s.
push 0x550bb8
call fcn.0048d880
add esp, 0x14
mov dword [ebp - 4], 0
cmp dword [esi + 0xc], 0
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
je 0x494fd4
cmp dword [0x550c0c], 0xffffffff
jne 0x494fd4
push 0x53677c
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x494fc1
push 0x550c0c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
test eax, eax
jne 0x494fcb
mov dword [0x550c0c], 0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
mov eax, dword [ebp - 0x14]
jne 0x495013
test eax, eax
je 0x49500e
push dword [esi + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x49500e
push eax
call ebx
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x495021
push eax
call ebx
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x20]
mov esi, dword [esi]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, dword [eax + 0x14]
jne 0x494d10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4