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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62288d
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x6a5418]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
call fcn.0059b900
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x6c], eax
cmp eax, 0xffffffff
jne 0x59b698
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
je 0x59b68e
sub eax, 2
je 0x59b684
sub eax, 1
jne 0x59b698
mov eax, 0xa
jmp 0x59b880
mov eax, 8
jmp 0x59b880
mov eax, 7
jmp 0x59b880
mov ecx, esi
sub ecx, edi
nop dword [eax]
movzx eax, word [edi]
lea edi, [edi + 2]
mov word [ecx + edi + 0x6e], ax
test ax, ax
jne 0x59b6a0
push 0
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0
push eax
push 0x44
lea edi, [esi + 0x28]
push edi
push dword [esi + 0x6c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push dword [esi + 0x6c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [edi], 0xfed0c
mov edx, eax
mov dword [ebp - 0x50], edx
je 0x59b6f5
mov ecx, esi
call fcn.0059b900
mov eax, 9
jmp 0x59b880
movups xmm0, xmmword [esi + 0x2c]
mov ecx, dword [ebp + 0xc]
movups xmmword [esi + 8], xmm0
movups xmm0, xmmword [esi + 0x4c]
movups xmmword [esi + 0x18], xmm0
test ecx, ecx
je 0x59b73b
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 0x59b770
mov eax, dword [ecx]
xor dword [esi + 0x18], eax
mov eax, dword [ecx + 4]
xor dword [esi + 0x1c], eax
mov eax, dword [ecx + 8]
xor dword [esi + 0x20], eax
mov eax, dword [ecx + 0xc]
xor dword [esi + 0x24], eax
mov eax, dword [ecx + 0x10]
xor dword [edi], eax
mov eax, dword [ecx + 0x14]
xor dword [edi + 4], eax
mov eax, dword [ecx + 0x18]
xor dword [esi + 0x30], eax
mov eax, dword [ecx + 0x1c]
xor dword [esi + 0x34], eax
mov eax, 0x44
cmp edx, eax
jbe 0x59b87e
nop dword [eax]
push 0
push 0
push 0
push eax
push dword [esi + 0x6c]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
lea eax, [ebp - 0x48]
push eax
push 0x14
lea eax, [ebp - 0x24]
push eax
push dword [esi + 0x6c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x68], ecx
lea edx, [ecx + eax]
mov dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x24]
mov ecx, esi
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x20]
movups xmm0, xmmword [ebp - 0x70]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x44]
push eax
movups xmmword [ebp - 0x3c], xmm0
lea eax, [ebp - 0x88]
mov dword [ebp - 0x5c], edi
movq xmm0, qword [ebp - 0x60]
push eax
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x44], edi
movq qword [ebp - 0x2c], xmm0
call fcn.00448740
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x7c], xmm0
cmp byte [eax + 0xd], 0
jne 0x59b80e
cmp edi, dword [eax + 0x10]
jae 0x59b872
cmp dword [esi + 4], 0x5555555
je 0x59b89d
mov edi, dword [esi]
mov dword [ebp - 0x58], esi
push 0x30
mov dword [ebp - 4], 0
mov dword [ebp - 0x54], 0
call fcn.0059852b
movups xmm0, xmmword [ebp - 0x44]
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
mov dword [ebp - 0x54], 0
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [ebp - 0x34]
push eax
push dword [ebp - 0x78]
movups xmmword [eax + 0x20], xmm0
mov dword [eax], edi
push dword [ebp - 0x7c]
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov word [eax + 0xc], 0
call fcn.00445560
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x50]
jb 0x59b780
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005984ec
mov esp, ebp
pop ebp
ret 0xc
call fcn.004457c0
int3