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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x6ae450]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
call fcn.005e1f20
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x8c], eax
cmp eax, 0xffffffff
jne 0x5e1d08
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
je 0x5e1cf1
sub eax, 2
je 0x5e1cda
dec eax
jne 0x5e1d08
pop edi
mov eax, 0xa
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b509b
mov esp, ebp
pop ebp
ret 0xc
pop edi
mov eax, 8
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b509b
mov esp, ebp
pop ebp
ret 0xc
pop edi
mov eax, 7
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b509b
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [esi + 0x90]
sub ecx, edi
movzx eax, word [edi]
lea edi, [edi + 2]
mov word [ecx + edi - 2], ax
test ax, ax
jne 0x5e1d10
push ebx
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push 0x44
lea edi, [esi + 0x48]
push edi
push dword [esi + 0x8c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push dword [esi + 0x8c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [edi], 0xa0fed0c
mov ebx, eax
je 0x5e1d77
mov ecx, esi
call fcn.005e1f20
pop ebx
pop edi
mov eax, 9
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b509b
mov esp, ebp
pop ebp
ret 0xc
movdqu xmm0, xmmword [esi + 0x4c]
mov ecx, dword [ebp + 0xc]
movdqu xmmword [esi + 8], xmm0
movdqu xmm0, xmmword [esi + 0x5c]
movdqu xmmword [esi + 0x18], xmm0
movdqu xmm0, xmmword [esi + 0x6c]
movdqu xmmword [esi + 0x28], xmm0
movdqu xmm0, xmmword [esi + 0x7c]
movdqu xmmword [esi + 0x38], xmm0
test ecx, ecx
je 0x5e1dd5
mov eax, dword [ecx]
xor dword [esi + 8], eax
mov eax, dword [ecx + 4]
xor dword [esi + 0xc], eax
mov eax, dword [ecx + 8]
xor dword [esi + 0x10], eax
mov eax, dword [ecx + 0xc]
xor dword [esi + 0x14], eax
mov eax, dword [ecx + 0x10]
xor dword [esi + 0x18], eax
mov eax, dword [ecx + 0x14]
xor dword [esi + 0x1c], eax
mov eax, dword [ecx + 0x18]
xor dword [esi + 0x20], eax
mov eax, dword [ecx + 0x1c]
xor dword [esi + 0x24], eax
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x5e1e0b
mov eax, dword [ecx]
xor dword [esi + 0x28], eax
mov eax, dword [ecx + 4]
xor dword [esi + 0x2c], eax
mov eax, dword [ecx + 8]
xor dword [esi + 0x30], eax
mov eax, dword [ecx + 0xc]
xor dword [esi + 0x34], eax
mov eax, dword [ecx + 0x10]
xor dword [esi + 0x38], eax
mov eax, dword [ecx + 0x14]
xor dword [esi + 0x3c], eax
mov eax, dword [ecx + 0x18]
xor dword [esi + 0x40], eax
mov eax, dword [ecx + 0x1c]
xor dword [esi + 0x44], eax
mov edi, 0x44
cmp ebx, edi
jbe 0x5e1ea3
push 0
push 0
push 0
push edi
push dword [esi + 0x8c]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
lea eax, [ebp - 0x1c]
push eax
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x8c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], 0
lea edi, [ecx + eax]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov ecx, esi
mov eax, dword [ebp - 0x14]
movdqu xmm0, xmmword [ebp - 0x34]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x5c], eax
movzx eax, byte [0x6ffa95]
push eax
lea eax, [ebp - 0x5c]
push eax
movdqu xmmword [ebp - 0x54], xmm0
lea eax, [ebp - 0x3c]
movq xmm0, qword [ebp - 0x24]
push 0
push eax
movq qword [ebp - 0x44], xmm0
call fcn.005e1070
cmp edi, ebx
jb 0x5e1e18
mov ecx, dword [ebp - 4]
xor eax, eax
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.005b509b
mov esp, ebp
pop ebp
ret 0xc