Function at 0x14000774c
Capabilities:
Get file size
Read file via mapping
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xc98]
sub rsp, 0xd60
xor r13d, r13d
mov r10, rdx
mov ebx, r13d
mov r14d, r13d
mov r12d, r13d
test rdx, rdx
jne 0x14000778f
xor eax, eax
jmp 0x140007e19
test byte [rcx], 0x10
jne 0x140007e17
lea r11, [rcx + 0x2c]
mov rcx, r11
lea rdx, str.InetMgr.exe
call fcn.140001788
test eax, eax
jne 0x140007e17
lea rdi, [rbp + 0x30]
mov ecx, 0x820
rep stosb byte [rdi], al
lea rcx, [rbp + 0x30]
mov rdx, r10
call fcn.1400017f8
lea rcx, [rbp + 0x30]
cmp word [rbp + 0x30], r13w
je 0x1400077df
add rcx, 2
cmp word [rcx], r13w
jne 0x1400077d5
lea rax, [rbp + 0x30]
sub rcx, rax
mov eax, 0x5c
sar rcx, 1
cmp word [rbp + rcx*2 + 0x2e], ax
je 0x1400077f9
mov dword [rbp + rcx*2 + 0x30], eax
mov rdx, r11
lea rcx, [rbp + 0x30]
call fcn.14000174c
xor r9d, r9d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
lea rcx, [rbp + 0x30]
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x40], rax
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140007dfc
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x50], r13
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140007df3
cmp qword [rsp + 0x50], 8
jl 0x140007df3
xor r9d, r9d
mov qword [rsp + 0x28], r13
xor edx, edx
mov dword [rsp + 0x20], r13d
mov rcx, rdi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rsp + 0x48], rax
mov r15, rax
test rax, rax
je 0x140007df3
xor r9d, r9d
mov qword [rsp + 0x20], r13
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rsi, rax
test rax, rax
je 0x140007dea
cmp byte [rax], 0x44
jne 0x140007bbb
cmp byte [rax + 1], 0x43
jne 0x140007de1
cmp byte [rax + 3], 1
jne 0x140007de1
mov al, byte [rax + 2]
cmp al, 0x4e
je 0x1400078ea
mov ecx, 1
cmp al, 0x53
lea eax, [rcx + 2]
cmovne ecx, eax
jmp 0x1400078f2
mov ecx, r13d
mov eax, 3
cmp ecx, eax
je 0x140007de1
test ecx, ecx
je 0x140007a91
sub ecx, 1
je 0x140007915
cmp ecx, 1
je 0x140007bce
jmp 0x140007de1
lea rcx, str.cabinet.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
je 0x140007e3e
lea rdx, str.Decompress
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14002e450], rax
test rax, rax
je 0x140007e3e
lea rdx, str.CreateDecompressor
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14002e458], rax
test rax, rax
je 0x140007e3e
lea rdx, str.CloseDecompressor
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14002e460], rax
test rax, rax
je 0x140007e3e
mov eax, dword [rsp + 0x50]
mov qword [rbp - 0x70], rax
mov qword [rsp + 0x68], r13
test rax, rax
je 0x140007c1a
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r8, [rsp + 0x68]
xor edx, edx
mov ecx, 0x20000005
call qword [0x14002e458]
test eax, eax
je 0x140007a78
cmp dword [rsi + 8], r13d
je 0x140007a78
cmp dword [rsi + 4], r13d
je 0x140007a78
mov rcx, qword [0x14002e920]
mov edx, 8
mov r8d, dword [rsi + 8]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rsp + 0x58], rax
mov r13, rax
test rax, rax
je 0x140007a75
mov r14d, dword [rsi + 4]
lea rdi, [rsi + 0xc]
xor r15d, r15d
test r14d, r14d
je 0x140007a6e
mov edx, dword [rdi]
lea rax, [r15 + rdx]
cmp rax, qword [rbp - 0x70]
ja 0x140007a69
mov eax, dword [rdi + 4]
add r12d, eax
cmp r12d, dword [rsi + 8]
ja 0x140007a69
and qword [rsp + 0x28], 0
lea r8d, [rdx - 4]
mov rcx, qword [rsp + 0x68]
lea rdx, [rdi + 8]
mov r9, r13
mov qword [rsp + 0x20], rax
call qword [0x14002e450]
mov ebx, eax
test eax, eax
je 0x140007a69
add r14d, 0xffffffff
je 0x140007a69
mov ecx, dword [rdi]
mov eax, dword [rdi + 4]
add ecx, 4
add rdi, rcx
add r13, rax
add r15, rcx
jmp 0x140007a11
mov r13, qword [rsp + 0x58]
mov r12d, dword [rsi + 8]
mov r14, r13
xor r13d, r13d
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140007c25
call qword [0x14002e460]
jmp 0x140007c25
mov edx, dword [rsp + 0x50]
mov r15, r13
test rdx, rdx
je 0x140007bab
and dword [rbp - 0x80], ebx
lea rdi, [rbp - 0x20]
movsd xmm1, qword [rbp - 0x80]
xor eax, eax
movsd qword [rbp - 0x50], xmm1
lea ecx, [rax + 0x50]
rep stosb byte [rdi], al
lea rax, [rsi + 4]
mov qword [rsp + 0x70], rax
lea rcx, [rbp - 0x60]
lea rax, [rdx - 4]
mov qword [rsp + 0x78], rax
lea rdx, [rbp - 0x20]
movups xmm0, xmmword [rsp + 0x70]
movaps xmmword [rbp - 0x60], xmm0
call qword [sym.imp.msdelta.dll_GetDeltaInfoB]
test eax, eax
je 0x140007b9b
movups xmm0, xmmword [rsp + 0x70]
xor eax, eax
lea rdi, [rbp - 0x40]
lea r9, [rsp + 0x58]
movaps xmmword [rbp - 0x60], xmm0
lea r8, [rbp - 0x60]
movsd xmm0, qword [rbp - 0x80]
lea rdx, [rsp + 0x70]
lea ecx, [rax + 0x18]
movsd qword [rbp - 0x50], xmm0
rep stosb byte [rdi], al
movups xmm0, xmmword [rbp - 0x40]
lea ecx, [rax + 0x10]
movsd xmm1, qword [rbp - 0x30]
lea rdi, [rsp + 0x58]
rep stosb byte [rdi], al
xor ecx, ecx
movaps xmmword [rsp + 0x70], xmm0
movsd qword [rbp - 0x80], xmm1
call qword [sym.imp.msdelta.dll_ApplyDeltaB]
mov ebx, eax
test eax, eax
je 0x140007b88
mov rcx, qword [0x14002e920]
mov edx, 8
mov r8, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r15, rax
test rax, rax
je 0x140007b7b
mov r8, qword [rsp + 0x60]
mov rcx, rax
mov rdx, qword [rsp + 0x58]
call fcn.14001aff0
mov r13, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.msdelta.dll_DeltaFree]
jmp 0x140007b93
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, r15
mov r12, r13
jmp 0x140007ba6
mov ecx, reloc.Cabinet.dll_FCIAddFile
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor r13d, r13d
jmp 0x140007c25
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140007ddc
cmp byte [rax], 0x4d
jne 0x140007de1
cmp byte [rax + 1], 0x5a
jne 0x140007de1
mov edi, dword [rsp + 0x50]
test rdi, rdi
je 0x140007c1a
mov rcx, qword [0x14002e920]
mov r8d, edi
mov edx, 8
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r14, rax
test rax, rax
je 0x140007c10
mov r8d, edi
mov rdx, rsi
mov rcx, rax
mov r12d, edi
call fcn.14001aff0
mov ebx, 1
jmp 0x140007c25
mov r14, r13
mov ecx, 8
jmp 0x140007c1f
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
je 0x140007dd7
mov rdx, qword [0x14002e920]
lea rdi, [rbp + 0x30]
xor eax, eax
mov ecx, 0x820
rep stosb byte [rdi], al
lea rcx, [rbp + 0x30]
add rdx, 0x480
call fcn.1400017f8
lea rdx, str.InetMgr.exe
lea rcx, [rbp + 0x30]
call fcn.14000174c
mov dword [rbp + 0xca8], r13d
test r14, r14
je 0x140007e34
test r12d, r12d
je 0x140007e34
mov qword [rsp + 0x30], r13
lea rcx, [rbp + 0x30]
mov dword [rsp + 0x28], r13d
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140007e34
lea r9, [rbp + 0xca8]
mov qword [rsp + 0x20], r13
mov r8d, r12d
mov rdx, r14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rbp + 0xca8], r12d
mov ebx, r13d
sete bl
test ebx, ebx
je 0x140007dd7
mov rdx, qword [0x14002e920]
lea rdi, [rbp + 0x850]
xor eax, eax
mov ecx, 0x410
rep stosb byte [rdi], al
lea rcx, [rbp + 0x850]
add rdx, 0x276
call fcn.1400017f8
lea rdx, str.inetsrv_
lea rcx, [rbp + 0x850]
call fcn.14000174c
mov r8d, 1
lea rdx, [rbp + 0x850]
lea rcx, [rbp + 0x30]
call fcn.14000ad64
mov ebx, eax
test eax, eax
je 0x140007dd7
mov rdx, qword [0x14002e920]
lea rcx, [rbp + 0x30]
add rdx, 0x480
call fcn.1400017f8
lea rdx, str.MSCOREE.DLL
lea rcx, [rbp + 0x30]
call fcn.14000174c
mov r8d, dword [rbp + 0xcb8]
lea rcx, [rbp + 0x30]
mov rdx, qword [rbp + 0xcb0]
call fcn.14000ea58
mov ebx, eax
test eax, eax
je 0x140007e39
mov r8d, 1
lea rdx, [rbp + 0x850]
lea rcx, [rbp + 0x30]
call fcn.14000ad64
mov ebx, eax
test eax, eax
je 0x140007dd7
lea rdx, str.InetMgr.exe
lea rcx, [rbp + 0x850]
call fcn.14000174c
xor edx, edx
mov dword [rsp + 0x20], 1
lea rcx, [rbp + 0x850]
lea r9d, [rdx + 5]
call fcn.14000ed8c
mov ebx, eax
mov rdi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x48]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14, r14
je 0x140007e17
mov rcx, qword [0x14002e920]
mov r8, r14
xor edx, edx
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
mov rbx, qword [rsp + 0xda0]
add rsp, 0xd60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ebx, r13d
jmp 0x140007dd7
mov r15, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
jmp 0x140007de1