Function at 0x407680
Capabilities:
Check if file exists
Connect network resource
Create process on windows
Get disk information
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x41c3db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x244
mov eax, dword [0x426d04]
push ebx
push ebp
mov ebp, ecx
mov cx, word [0x426d08]
mov dword [esp + 0x10], eax
mov ax, word [0x428280]
push esi
push edi
mov word [esp + 0x1c], cx
mov word [esp + 0x4c], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x4e]
rep stosd dword es:[edi], eax
xor edx, edx
lea ecx, [esp + 0x10]
mov dword [esp + 0x1e], edx
mov dword [esp + 0x22], edx
mov word [esp + 0x26], dx
stosw word es:[edi], ax
call fcn.00409fa0
lea ecx, [esp + 0x4c]
push 0x104
push ecx
push 0
mov dword [esp + 0x268], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4079dd
lea edx, [esp + 0x4c]
push 0x5c
push edx
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x4079dd
add eax, 2
push str.PacketFiles
mov word [eax], 0
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
push 0x426a30
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
mov dword [esp + 0x14], edi
je 0x4079dd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x426cdc
push edi
call esi
mov ebx, eax
push 0x426cc8
push edi
mov dword [esp + 0x30], ebx
call esi
test ebx, ebx
je 0x4079d6
test eax, eax
je 0x4079d6
push 0
push 0
call ebx
push 0x1208
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4079d6
mov eax, dword [0x42615c]
test eax, eax
jne 0x4079d6
mov dword [ebp + 0x540], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, 0x19
mov edx, 1
mov ecx, ebx
shl edx, cl
test eax, edx
je 0x4077dc
dec ebx
cmp ebx, 2
jg 0x4077c4
jmp 0x4079a5
mov eax, 1
mov dword [esi], 0x1000
mov dword [esi + 0x7fc], eax
mov dword [esi + 0xff8], eax
lea eax, [esi + 0x85c]
mov dword [esi + 0x800], 0x800
push eax
mov dword [esi + 0x808], 0xc
mov dword [esi + 0x80c], ebx
mov dword [esi + 0x810], 0x99
mov dword [esi + 0x814], 0x1000
call dword [sym.imp.ole32.dll_CoCreateGuid]
lea edi, [esi + 0xffc]
push str.MainStorageDosDevices_
push edi
call dword [sym.imp.MSVCRT.dll_wcscpy]
lea ecx, [esp + 0x54]
push ecx
push edi
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 0x10
push 0x1208
push esi
call fcn.0040d5d0
mov edi, eax
test edi, edi
je 0x407874
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0x73
push edi
call fcn.00409dd0
jmp 0x4079a1
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x2c]
push 0x80
rep stosd dword es:[edi], eax
push 0
lea ecx, [esp + 0x34]
push 0
lea edx, [ebx + 0x41]
mov edi, 1
lea eax, [esp + 0x24]
push ecx
push 0
mov word [esp + 0x2c], dx
mov dword [esp + 0x40], 2
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], 3
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], str.FGVDiskVDiskList99
mov dword [esp + 0x58], str.Ubeisoft_Virtual_Disk
mov dword [esp + 0x5c], 0x426bc4
call sub.MPR.dll_WNetAddConnection3W
test eax, eax
je 0x4078ec
push 0x72
push eax
call fcn.00409dd0
jmp 0x4079a1
lea edx, [esp + 0x18]
push 0
push edx
push str.FGVDiskVDiskList99
mov ecx, ebp
call fcn.004080f0
mov ecx, ebx
shl edi, cl
mov ecx, ebp
push edi
push 0x8000
call fcn.00407fe0
push edi
mov ecx, ebp
mov dword [ebp + 0x540], ebx
call fcn.00407cb0
mov eax, dword [ebp + 0x540]
push 0
push 0x400
push eax
call fcn.0040d820
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x407958
push 0x1f4
call ebx
inc edi
cmp edi, 0xa
jl 0x407939
jmp 0x407970
push 5
push 0
lea edx, [esp + 0x20]
push 0
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x75
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::LoadStringW
xor edi, edi
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x540]
push eax
push ecx
mov ecx, ebp
call fcn.00407a10
test eax, eax
je 0x4079a1
push 0x12c
call ebx
inc edi
cmp edi, 0xa
jl 0x40797d
mov edi, dword [esp + 0x14]
push 0
push 1
call dword [esp + 0x30]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x10]
mov dword [esp + 0x25c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov eax, 1
jmp 0x4079f3
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x10]
mov dword [esp + 0x25c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x254]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x250
ret