Function at 0x4512d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55a510
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x5caea4]
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 eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 2
push 0
push 0xffffffffffffffff
push 0xfffffffffffffffc
push dword [esi]
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x45140b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x58]
call fcn.0044ccb0
push 0x2b
push str.readTail:_Cannot_set_file_pointer_1_._Code
push ecx
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00452ee0
xor ecx, ecx
add esi, 0x30
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x68], xmm0
movups xmmword [ebp - 0x30], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x30]
movq qword [ebp - 0x38], xmm0
movq qword [ebp - 0x20], xmm0
cmp esi, eax
je 0x451394
mov ecx, esi
call fcn.00448eb0
movups xmm0, xmmword [ebp - 0x68]
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x38]
movq qword [esi + 0x10], xmm0
jmp 0x4513ce
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x4513ce
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4513c4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45165f
push edx
push ecx
call fcn.00518d68
add esp, 8
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x451640
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x451636
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x451664
jmp 0x451636
push 0
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4515d6
cmp dword [ebp - 0x14], 4
jne 0x4515d6
cmp dword [ebp - 0x18], 0x10203ff
je 0x45146e
push 0
mov byte [esi + 0xc0], 0
lea eax, [ebp - 0x40]
push dword [edi + 4]
mov ecx, esi
push dword [edi]
push eax
call fcn.0044d1e0
mov edx, dword [eax]
mov dword [edi], edx
mov eax, dword [eax + 4]
mov ecx, esi
push 0x50
push dword [ebp - 0x34]
mov dword [edi + 4], eax
call fcn.00451040
jmp 0x451642
push 2
push 0
push 0xffffffffffffffff
push 0xffffffffffffffc0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x45150a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x58]
call fcn.0044ccb0
push eax
mov edx, str.readTail:_Cannot_set_file_pointer_2_._Code
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.00452b10
add esp, 4
lea ecx, [esi + 0x30]
push eax
call fcn.00448f10
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x4514f1
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4514e7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x451669
push edx
push ecx
call fcn.00518d68
add esp, 8
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
jmp 0x4513ce
push 0
lea eax, [ebp - 0x14]
push eax
push 0x40
lea eax, [esi + 0x50]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x451568
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x451568
cmp eax, 0x40
jne 0x451568
cmp byte [esi + 0x51], 0
je 0x451541
mov byte [esi + 0xc0], 2
mov byte [ebp - 0x3c], 2
jmp 0x45154c
mov byte [esi + 0xc0], 1
mov byte [ebp - 0x3c], 1
push dword [ebp - 0x3c]
lea eax, [ebp - 0x60]
mov ecx, esi
push dword [edi + 4]
push dword [edi]
push eax
call fcn.0044d1e0
mov ecx, dword [eax]
mov dword [edi], ecx
jmp 0x451457
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x58]
call fcn.0044ccb0
push eax
mov edx, str.readTail:_Cannot_read_file_2_._Code
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x30]
call fcn.00452b10
add esp, 4
lea ecx, [esi + 0x30]
push eax
call fcn.00448f10
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x4514f1
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4514e7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4514e7
jmp 0x451664
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x58]
call fcn.0044ccb0
push eax
mov edx, str.readTail:_Cannot_read_file_1_._Code
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00452b10
mov edi, eax
add esi, 0x30
add esp, 4
cmp esi, edi
je 0x451599
mov ecx, esi
call fcn.00448eb0
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
jmp 0x451599
push edx
push ecx
call fcn.00518d68
add esp, 8
xor al, al
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.00518b27
mov esp, ebp
pop ebp
ret 8
call fcn.005343f1
call fcn.005343f1
call fcn.005343f1
int3