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

Disassembly:
push 0xffffffffffffffff
push 0x560a5d
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov eax, dword [0x668038]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x6c]
mov eax, dword [0x67f9a0]
push eax
push 0
lea ecx, [esp + 0x30]
push ecx
call fcn.0049c100
mov dword [esp + 0x64], 0
mov edi, dword [esp + 0x70]
lea edx, [esp + 0x28]
push edx
call fcn.0049c450
mov dword [esp + 0x64], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.0049c2c0
push 2
call dword [sym.imp.ADVAPI32.dll_ImpersonateSelf]
test eax, eax
jne 0x4e23ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00493a10
add esp, 4
mov dword [esp + 0x64], 1
push 0
or edi, 0xffffffff
mov eax, 0x613f90
lea esi, [esp + 0x74]
call fcn.004993c0
mov byte [esp + 0x64], 2
lea eax, [esp + 0x70]
lea esi, [ebx + 8]
push eax
xor edi, edi
mov eax, esi
call fcn.00499bd0
cmp eax, 0xffffffff
setne byte [esp + 0x6c]
mov byte [esp + 0x64], 1
lea ecx, [esp + 0x70]
call fcn.00499450
cmp byte [esp + 0x6c], 0
je 0x4e244a
push 0x610b08
lea eax, [ebx + 4]
call fcn.00499510
lea ecx, [esp + 0x14]
call fcn.004992d0
mov byte [esp + 0x64], 3
lea eax, [ebx + 0x10]
call fcn.00408130
push eax
mov eax, esi
call fcn.00408130
push eax
lea eax, [ebx + 4]
call fcn.00408130
push eax
lea ecx, [esp + 0x20]
push str.Software_1_2_3
push ecx
call fcn.00499d40
mov eax, dword [ebx + 0x34]
lea ebp, [ebx + 0x34]
add esp, 0x14
test eax, eax
je 0x4e249c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp], 0
lea eax, [esp + 0x14]
call fcn.00408130
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea edx, [esp + 0x6c]
push edx
push ebp
push 0
push 2
push 0
push 0x5fd800
push 0
mov esi, eax
push esi
push reloc.WS2_32.dll_bind
call edi
test eax, eax
je 0x4e2544
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00493a10
add esp, 4
lea eax, [esp + 0x6c]
push eax
push ebp
push 0
push 2
push 0
push 0x5fd800
push 0
push esi
push getpeername
call edi
test eax, eax
je 0x4e2544
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
call fcn.00493a10
add esp, 4
mov byte [esp + 0x64], 1
lea ecx, [esp + 0x14]
call fcn.00499450
mov dword [esp + 0x64], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
jne 0x4e26a9
call esi
jmp 0x4e26a0
push 0
or edi, 0xffffffff
mov eax, str.Version
lea esi, [esp + 0x70]
call fcn.004993c0
mov byte [esp + 0x64], 4
mov edx, dword [ebx]
lea eax, [ebx + 0xc]
call fcn.00408130
mov edx, dword [edx + 0x20]
push eax
mov eax, esi
push eax
mov ecx, ebx
call edx
mov byte [esp + 0x64], 3
mov ecx, esi
call fcn.00499450
mov eax, dword [ebp]
push 0x6238f4
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea ecx, [ebx + 0x18]
lea eax, [esp + 0x1c]
call fcn.004a7d60
lea ecx, [esp + 0x6c]
call fcn.004992d0
mov byte [esp + 0x64], 5
lea ecx, [esp + 0x70]
call fcn.0049ab00
mov byte [esp + 0x64], 6
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x70]
push edx
lea esi, [esp + 0x24]
call fcn.004e2bf0
test al, al
je 0x4e265e
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [esp + 0x18]
push eax
lea edi, [esp + 0x74]
call fcn.00499300
mov byte [esp + 0x64], 7
lea eax, [esp + 0x18]
call fcn.00499c00
lea eax, [eax + eax + 2]
push eax
lea eax, [esp + 0x1c]
call fcn.00408130
push eax
push 1
push 0
lea eax, [esp + 0x7c]
call fcn.00408130
mov ecx, dword [ebp]
push eax
push ecx
call ebx
test eax, eax
jne 0x4e263d
mov byte [esp + 0x64], 6
lea ecx, [esp + 0x18]
call fcn.00499450
mov edx, edi
push edx
lea eax, [esp + 0x70]
push eax
lea esi, [esp + 0x24]
call fcn.004e2bf0
test al, al
jne 0x4e25d5
jmp 0x4e265e
push eax
lea eax, [esp + 0x70]
call fcn.00408130
push eax
call fcn.00493a10
add esp, 8
mov byte [esp + 0x64], 6
lea ecx, [esp + 0x18]
call fcn.00499450
mov byte [esp + 0x64], 5
lea ecx, [esp + 0x70]
call fcn.00499450
mov byte [esp + 0x64], 3
lea ecx, [esp + 0x6c]
call fcn.00499450
mov byte [esp + 0x64], 1
lea ecx, [esp + 0x14]
call fcn.00499450
mov dword [esp + 0x64], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
jne 0x4e26a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00493a10
add esp, 4
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8