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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d525
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x54b144]
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 0x494c2c
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.HKEY_LOCAL_MACHINE
push dword [esi + 0x10]
call fcn.004e0469
add esp, 8
test eax, eax
jne 0x49491e
mov edi, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x4949a7
push str.HKEY_CLASSES_ROOT
push dword [esi + 0x10]
call fcn.004e0469
add esp, 8
test eax, eax
jne 0x494939
mov edi, SysReAllocString
jmp 0x4949a7
push str.HKEY_CURRENT_USER
push dword [esi + 0x10]
call fcn.004e0469
add esp, 8
test eax, eax
jne 0x494954
mov edi, SysReAllocString
jmp 0x4949a7
push str.HKEY_USERS
push dword [esi + 0x10]
call fcn.004e0469
add esp, 8
test eax, eax
jne 0x49496f
mov edi, reloc.WS2_32.dll_closesocket
jmp 0x4949a7
push str.HKEY_CURRENT_CONFIG
push dword [esi + 0x10]
call fcn.004e0469
add esp, 8
test eax, eax
jne 0x49498a
mov edi, VariantClear
jmp 0x4949a7
push str.HKEY_CURRENT_USER_LOCAL_SETTINGS
push dword [esi + 0x10]
call fcn.004e0469
add esp, 8
test eax, eax
jne 0x494c18
mov edi, VariantClear
movzx eax, word [esi + 0xa]
cmp eax, dword [ebp + 8]
jne 0x494c18
movzx eax, word [esi + 8]
sub eax, 0
je 0x494b13
sub eax, 1
jne 0x494c18
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 0x494a29
cmp dword [0x54bbfc], 0xffffffff
jne 0x494a29
push str.IsWow64Process
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 0x494a1c
push 0x54bbfc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
test eax, eax
jne 0x494a26
mov dword [0x54bbfc], 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 0x494af0
mov eax, dword [esi + 0x18]
cmp dword [eax - 0xc], 0
jle 0x494af0
push eax
push dword [esi + 0x14]
push dword [esi + 0x10]
push str.HandleRegister_Write_key_s__subkey_s__name_s.
push 0x54bba8
call fcn.0048d420
add esp, 0x14
cmp dword [esi + 0x1c], 4
jne 0x494a97
push dword [esi + 0x20]
call fcn.004e5c8f
mov dword [ebp - 0x1c], eax
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x494ae3
push 4
lea ecx, [ebp - 0x1c]
push ecx
push 4
jmp 0x494ac0
mov eax, dword [ebp - 0x10]
mov edi, dword [esi + 0x20]
test eax, eax
je 0x494ae3
mov edx, edi
lea ebx, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x494aa6
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 0x494ae9
push eax
call edi
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x494af9
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x494af9
mov eax, dword [ebp - 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x494b07
push eax
call edi
mov dword [ebp - 0x10], 0
jmp 0x494c18
mov eax, dword [esi + 0x18]
cmp dword [eax - 0xc], 0
jne 0x494b46
push dword [esi + 0x14]
push dword [esi + 0x10]
push str.HandleRegister_DeleteSubKeyTree_key_s__subkey_s.
push 0x54bba8
call fcn.0048d420
push dword [esi + 0xc]
mov edx, dword [esi + 0x14]
mov ecx, edi
call fcn.0048a030
add esp, 0x14
jmp 0x494c18
push eax
push dword [esi + 0x14]
push dword [esi + 0x10]
push str.HandleRegister_DeleteValue_key_s__subkey_s__name_s.
push 0x54bba8
call fcn.0048d420
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 0x494bc4
cmp dword [0x54bbfc], 0xffffffff
jne 0x494bc4
push str.IsWow64Process
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 0x494bb1
push 0x54bbfc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
test eax, eax
jne 0x494bbb
mov dword [0x54bbfc], 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 0x494c03
test eax, eax
je 0x494bfe
push dword [esi + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x494bfe
push eax
call ebx
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x494c11
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 0x494900
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