Function at 0x100078c0
Capabilities:
Check if file exists
Copy file
Get common file path
Get file attributes
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x320
lea eax, [esp + 0x10]
push ebx
lea ecx, [esp + 4]
push esi
mov dword [esp + 0xc], 0x104
push edi
push ebp
push eax
push ecx
push 0
push 3
push 0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 0
push 0
push str.SoftwarePocketSoftRTPatch
push 0x80000002
call edi
mov esi, dword [esp + 0x334]
lea eax, [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0
mov byte [esi], 0
push 0
push 0x1002f2b4
push ecx
call ebx
lea ecx, [esp + 0x14]
lea eax, [esp + 0x1c]
mov dword [esp + 0x14], 4
mov edx, dword [esp + 0x10]
push ecx
mov dword [esp + 0x20], 0
push eax
push 0
push 0
push 0x1002f2c4
push edx
call ebx
lea ecx, [esp + 0x24]
push 0x104
push ecx
mov edx, dword [0x1002bf40]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp byte [esi], 0
je 0x10007998
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call ebx
cmp eax, 0xffffffff
je 0x1000799e
cmp dword [esp + 0x1c], 0xc9
jae 0x10007ab8
lea eax, [esp + 0x24]
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x10007ab8
jmp 0x1000799e
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp byte [esi], 0
je 0x100079f6
push esi
call ebx
cmp eax, 0xffffffff
je 0x10007a78
cmp byte [esi], 0
je 0x100079f6
lea eax, [esp + 0x20]
lea ecx, [esp + 0x18]
push eax
push ecx
mov edx, dword [esp + 0x18]
push 0
push 3
push 0
push 0
push 0
push str.OldServers
push edx
call edi
mov ecx, dword [esp + 0x18]
push 0
push 0x1002f2d4
push 1
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x104
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push esi
mov edi, esi
push esi
call ebp
mov edx, str.patchw32.dll
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov eax, dword [edx]
mov dword [edi], eax
push esi
mov ecx, dword [edx + 4]
mov dword [edi + 4], ecx
mov eax, dword [edx + 8]
mov dword [edi + 8], eax
mov dx, word [edx + 0xc]
mov word [edi + 0xc], dx
call ebx
cmp eax, 0xffffffff
je 0x10007a7e
lea eax, [esp + 0x128]
push eax
push esi
call fcn.10018b30
lea eax, [esp + 0x130]
add esp, 8
push 4
push eax
call fcn.10006d60
lea eax, [esp + 0x130]
add esp, 8
push esi
push eax
call fcn.10018bb0
add esp, 8
jmp 0x10007a7e
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [esp + 0x24]
push 0
push esi
push eax
mov edi, esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x104
push esi
push esi
call ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
mov eax, dword [esp + 0x10]
push ecx
push esi
push 1
push 0
push str.RenameServer
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esp + 0x14]
push 4
mov ecx, dword [esp + 0x14]
push eax
mov dword [esp + 0x1c], 0xc9
push 3
push 0
push 0x1002f2f8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x320
ret