Function at 0x2664b70
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
push esi
push edi
lea edi, [ebp - 0x45c]
mov ecx, 0x117
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x23f6480]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x23e8452
call fcn.026a74de
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.0263a290
add esp, 4
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x2664c1f
push 0x100
lea ecx, [ebp - 0x130]
push ecx
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.026a5ffe
push eax
call fcn.0263adf0
add esp, 0xc
push eax
mov edx, dword [ebp + 0xc]
push edx
push 0x23f4e88
mov eax, dword [ebp + 0x10]
push eax
call fcn.02615ca0
add esp, 0x10
mov dword [ebp - 8], 0x4d
jmp 0x2664e38
mov esi, esp
push 0
push 0x80
push 3
push 0
push 1
push closesocket
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp esi, esp
call fcn.026a5ffe
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x2664c93
push 0x100
lea edx, [ebp - 0x238]
push edx
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.026a5ffe
push eax
call fcn.0263adf0
add esp, 0xc
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0x23f4ebc
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.02615ca0
add esp, 0x10
mov dword [ebp - 8], 0x4d
jmp 0x2664e38
mov esi, esp
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp esi, esp
call fcn.026a5ffe
test eax, eax
jne 0x2664cf4
push 0x100
lea ecx, [ebp - 0x340]
push ecx
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.026a5ffe
push eax
call fcn.0263adf0
add esp, 0xc
push eax
mov edx, dword [ebp + 0xc]
push edx
push 0x23f4ee8
mov eax, dword [ebp + 0x10]
push eax
call fcn.02615ca0
add esp, 0x10
mov dword [ebp - 8], 0x4d
jmp 0x2664e38
cmp dword [ebp - 0x14], 0
jl 0x2664d27
jg 0x2664d05
cmp dword [ebp - 0x18], 0x100000
jbe 0x2664d27
push 0x100000
push 0x23f4f20
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.02615ca0
add esp, 0xc
mov dword [ebp - 8], 0x4d
jmp 0x2664e38
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
add eax, 1
mov esi, esp
push eax
call dword [0x23ea098]
add esp, 4
cmp esi, esp
call fcn.026a5ffe
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x2664d5b
mov dword [ebp - 8], 0x1b
jmp 0x2664e38
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 0x28]
jae 0x2664e10
mov edx, dword [ebp - 0x28]
sub edx, dword [ebp - 0x2c]
mov dword [ebp - 0x348], edx
mov dword [ebp - 0x350], 0
mov esi, esp
push 0
lea eax, [ebp - 0x350]
push eax
mov ecx, dword [ebp - 0x348]
push ecx
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, esp
call fcn.026a5ffe
test eax, eax
jne 0x2664dee
push 0x100
lea ecx, [ebp - 0x458]
push ecx
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.026a5ffe
push eax
call fcn.0263adf0
add esp, 0xc
push eax
mov edx, dword [ebp + 0xc]
push edx
push 0x23f4f50
mov eax, dword [ebp + 0x10]
push eax
call fcn.02615ca0
add esp, 0x10
mov dword [ebp - 8], 0x4d
jmp 0x2664e38
cmp dword [ebp - 0x350], 0
jne 0x2664dff
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], ecx
jmp 0x2664e0b
mov edx, dword [ebp - 0x2c]
add edx, dword [ebp - 0x350]
mov dword [ebp - 0x2c], edx
jmp 0x2664d5b
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x28]
mov byte [eax], 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.02664800
add esp, 0x14
mov dword [ebp - 8], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x2664e52
mov esi, esp
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.026a5ffe
nop
mov esi, esp
mov ecx, dword [ebp - 0x20]
push ecx
call dword [0x23ea09c]
add esp, 4
cmp esi, esp
call fcn.026a5ffe
mov dword [ebp - 0x20], 0
xor edx, edx
jne 0x2664e52
cmp dword [ebp - 0x24], 0
je 0x2664e8c
mov eax, dword [ebp - 0x24]
push eax
call fcn.026b63a6
add esp, 4
mov dword [ebp - 0x24], 0
xor ecx, ecx
jne 0x2664e73
mov eax, dword [ebp - 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x2664ec4]
call fcn.026a5faa
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.026a6086
add esp, 0x45c
cmp ebp, esp
call fcn.026a5ffe
mov esp, ebp
pop ebp
ret