Function at 0x140077660
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
sub rsp, 0x3c8
mov qword [rsp + 0x100], 0xfffffffffffffffe
mov rax, qword [0x1402126b0]
xor rax, rsp
mov qword [rsp + 0x3b0], rax
lea rcx, [rsp + 0x220]
call fcn.14001ca30
nop
lea rcx, [rsp + 0x220]
call fcn.140010300
movzx eax, al
test eax, eax
je 0x1400776b9
lea rcx, [rsp + 0x220]
call fcn.140009960
jmp 0x140077c2c
mov edx, 0xc0
lea rcx, [rsp + 0x2f0]
call fcn.14000c8b0
lea rcx, [rsp + 0x2f0]
call fcn.140049a50
nop
mov edx, reloc.WS2_32.dll_WSASetLastError
lea rcx, [rsp + 0x280]
call fcn.14000c8b0
lea rcx, [rsp + 0x280]
call fcn.14005c5b0
nop
mov edx, Ordinal_41
lea rcx, [rsp + 0x1d8]
call fcn.14000c8b0
xor edx, edx
lea rcx, [rsp + 0x1d8]
call fcn.1400541d0
nop
mov qword [rsp + 0x40], 0xffffffffffffffff
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x220]
call fcn.1400097a0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], Ordinal_133
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov r8d, 3
mov edx, 0xc0000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xffffffffffffffff
jne 0x14007777c
jmp 0x140077b9d
mov dword [rsp + 0x1cc], 0
lea rdx, [rsp + 0x1cc]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x1400779bd
mov eax, dword [rsp + 0x48]
mov ecx, eax
call fcn.140138904
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x1400777d6
jmp 0x140077b9d
mov dword [rsp + 0x1c8], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x1c8]
mov r8d, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x14007781f
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x1c8], eax
je 0x140077824
jmp 0x140077b9d
lea rcx, [rsp + 0x200]
call fcn.140009a60
nop
mov eax, dword [rsp + 0x48]
mov r8d, eax
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x200]
call fcn.140009810
lea rax, [rsp + 0x148]
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x168]
mov qword [rsp + 0x98], rax
lea rdx, [0x1401d6b70]
mov rcx, qword [rsp + 0x88]
call fcn.140009a10
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0xa8], rax
lea rdx, [rsp + 0x200]
mov rcx, qword [rsp + 0x98]
call fcn.140010660
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xb0], rax
mov r9d, 1
mov r8, qword [rsp + 0xa8]
mov rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0x108]
call fcn.140009070
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xc0], rax
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0x200]
call fcn.1400105d0
nop
lea rcx, [rsp + 0x108]
call fcn.140009960
mov r9b, 1
lea r8, [rsp + 0x1d8]
lea rdx, [rsp + 0x200]
lea rcx, [rsp + 0x2f0]
call fcn.140049b20
movzx eax, al
test eax, eax
jne 0x1400779b0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x220]
call fcn.1400097a0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], Ordinal_133
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, 1
mov edx, 0xc0000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xffffffffffffffff
jne 0x1400779b0
lea rcx, [rsp + 0x200]
call fcn.140009960
jmp 0x140077b9d
lea rcx, [rsp + 0x200]
call fcn.140009960
lea rcx, [rsp + 0x1d8]
call fcn.14006bc30
lea rcx, [rsp + 0x1d8]
call fcn.14006c720
lea rcx, [rsp + 0x1d8]
call fcn.14006bdf0
lea rcx, [rsp + 0x1d8]
call fcn.14006ca50
lea rcx, [rsp + 0x1d8]
call fcn.14006b9e0
lea rcx, [rsp + 0x1d8]
call fcn.14006c3f0
lea r8, [rsp + 0x1d8]
lea rdx, [rsp + 0x260]
lea rcx, [rsp + 0x280]
call fcn.14005c640
nop
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x1d0], 0
lea rcx, [rsp + 0x240]
call fcn.140009a60
nop
lea rax, [rsp + 0x188]
mov qword [rsp + 0xc8], rax
lea rax, [rsp + 0x1a8]
mov qword [rsp + 0xd8], rax
lea rdx, str.IFCfsei_sfsoe638
mov rcx, qword [rsp + 0xc8]
call fcn.140009a10
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0xe8], rax
lea rdx, [rsp + 0x260]
mov rcx, qword [rsp + 0xd8]
call fcn.140010660
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0xf0], rax
mov r9d, 1
mov r8, qword [rsp + 0xe8]
mov rdx, qword [rsp + 0xf0]
lea rcx, [rsp + 0x128]
call fcn.140008c90
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x240]
call fcn.1400105d0
nop
lea rcx, [rsp + 0x128]
call fcn.140009960
lea rcx, [rsp + 0x240]
call fcn.140009780
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x240]
call fcn.1400097a0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x1d0]
mov rcx, qword [rsp + 0x70]
mov r8d, ecx
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
nop
lea rcx, [rsp + 0x240]
call fcn.140009960
nop
lea rcx, [rsp + 0x260]
call fcn.140009960
xor eax, eax
test eax, eax
jne 0x14007772d
cmp qword [rsp + 0x40], 0xffffffffffffffff
je 0x140077bb0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x50], 0
je 0x140077bf2
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140138344
cmp qword [rsp + 0x60], 0
jne 0x140077bdf
mov qword [rsp + 0x78], 0
jmp 0x140077bf2
mov qword [rsp + 0x50], 0x8123
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x1d8]
call fcn.140054900
nop
lea rcx, [rsp + 0x280]
call fcn.1400533d0
nop
lea rcx, [rsp + 0x2f0]
call fcn.14000e200
nop
lea rcx, [rsp + 0x220]
call fcn.140009960
nop
jmp 0x140077c2c
mov rcx, qword [rsp + 0x3b0]
xor rcx, rsp
call fcn.140138320
add rsp, 0x3c8
ret