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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ad50
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x60b3c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], ecx
mov esi, dword [ebp + 8]
mov eax, 0x5ec654
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x7c], eax
nop
mov edi, dword [eax]
sub esp, 0x14
mov dword [ebp - 0x80], edi
push 1
push esi
call fcn.0044e1e0
test eax, eax
jns 0x44e6bb
test edi, edi
je 0x44e553
push 0x1c
xorps xmm0, xmm0
mov dword [ebp - 0x50], 0
push str.Attempted_to_open_the_file:
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x4c], 0
movups xmmword [ebp - 0x60], xmm0
call fcn.00417c00
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44e340
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x60]
call fcn.0041b8d0
lea esi, [ebp - 0x12]
mov ecx, edi
nop
mov eax, 0xcccccccd
sub esi, 2
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x30
mov word [esi], cx
mov ecx, edx
test ecx, ecx
jne 0x44e360
push ecx
lea eax, [ebp - 0x12]
push eax
push esi
lea ecx, [ebp - 0xe0]
call fcn.0044fb10
lea esi, [ebp - 0x12]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
nop dword [eax]
mov eax, 0xcccccccd
sub esi, 2
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x30
mov word [esi], cx
mov ecx, edx
test ecx, ecx
jne 0x44e3a0
push ecx
lea eax, [ebp - 0x12]
push eax
push esi
lea ecx, [ebp - 0xc8]
call fcn.0044fb10
push 8
push str.._Error
push 0
lea ecx, [ebp - 0xc8]
call fcn.004205d0
mov dword [ebp - 0xa0], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0xb0], xmm0
mov dword [ebp - 0x9c], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
push 0xb
push str.._Sleeping
movups xmmword [ebp - 0xb0], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xa0], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0xb0]
call fcn.0041b8d0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x98], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x88], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0x98]
push eax
push dword [ebp - 0x40]
lea ecx, [ebp - 0x78]
call fcn.0044f960
cmp dword [ebp - 0x64], 8
lea eax, [ebp - 0x78]
push dword [ebp - 0x68]
cmovae eax, dword [ebp - 0x78]
lea ecx, [ebp - 0x60]
push eax
call fcn.0041b8d0
lea ecx, [ebp - 0x78]
call fcn.00417680
lea ecx, [ebp - 0x98]
call fcn.00417680
lea ecx, [ebp - 0xb0]
call fcn.00417680
lea ecx, [ebp - 0xc8]
call fcn.00417680
lea ecx, [ebp - 0xe0]
call fcn.00417680
push 0x615004
call fcn.004f98eb
mov edi, dword [0x6170c0]
add esp, 4
test edi, edi
je 0x44e4ee
lock inc dword [edi + 4]
mov edi, dword [0x6170c0]
mov esi, dword [0x6170bc]
push 0x615004
call fcn.004f9907
mov eax, dword [esi]
add esp, 4
cmp dword [ebp - 0x4c], 8
mov ecx, esi
mov edx, dword [eax]
lea eax, [ebp - 0x60]
cmovae eax, dword [ebp - 0x60]
push eax
call edx
test edi, edi
je 0x44e53f
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x44e53f
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax]
call eax
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x44e53f
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 4]
call eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x60]
call fcn.00417680
mov esi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x40]
add eax, 4
mov dword [ebp - 0x7c], eax
cmp eax, str.include
jne 0x44e2f0
lea esi, [ebp - 0x4b]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov dword [ebp - 0x7c], ecx
mov eax, 0xcccccccd
dec esi
mul ecx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
mov eax, dword [ebp - 0x7c]
add cl, cl
sub al, cl
mov ecx, edx
add al, 0x30
mov byte [esi], al
mov eax, edx
mov dword [ebp - 0x7c], eax
test eax, eax
jne 0x44e578
push ecx
lea eax, [ebp - 0x4b]
push eax
push esi
lea ecx, [ebp - 0x98]
call fcn.004416b0
lea eax, [ebp - 0x98]
mov edx, str.Failed_to_open_the_file:
push eax
lea ecx, [ebp - 0x78]
call fcn.00443f20
mov ecx, dword [ebp - 0x84]
add esp, 4
cmp ecx, 0x10
jb 0x44e603
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x44e5f9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44e853
push ecx
push edx
call fcn.0050fd95
add esp, 8
push 0x615004
call fcn.004f98eb
mov eax, dword [0x6170c0]
add esp, 4
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x44e628
lock inc dword [eax + 4]
mov eax, dword [0x6170c0]
mov dword [ebp - 0x7c], eax
mov esi, dword [0x6170bc]
push 0x615004
call fcn.004f9907
mov eax, dword [esi]
add esp, 4
cmp dword [ebp - 0x64], 0x10
mov ecx, esi
mov edx, dword [eax + 4]
lea eax, [ebp - 0x78]
cmovae eax, dword [ebp - 0x78]
push eax
call edx
mov esi, dword [ebp - 0x7c]
test esi, esi
je 0x44e67c
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x44e67c
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax]
call eax
lock xadd dword [esi + 8], edi
dec edi
jne 0x44e67c
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 4]
call eax
mov ecx, dword [ebp - 0x64]
cmp ecx, 0x10
jb 0x44e84c
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x44e6aa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44e858
push ecx
push edx
call fcn.0050fd95
add esp, 8
xor al, al
jmp 0x44e7b8
mov esi, dword [ebp - 0x40]
lea eax, [ebp - 0x44]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x48], eax
cmp eax, 0xffffffff
jne 0x44e72c
call fcn.0044e1c0
test eax, eax
jns 0x44e729
push 0x615004
call fcn.004f98eb
mov eax, dword [0x6170c0]
add esp, 4
mov dword [ebp - 0x40], eax
test eax, eax
je 0x44e700
lock inc dword [eax + 4]
mov eax, dword [0x6170c0]
mov dword [ebp - 0x40], eax
mov esi, dword [0x6170bc]
push 0x615004
call fcn.004f9907
mov eax, dword [esi]
add esp, 4
mov ecx, esi
mov eax, dword [eax + 4]
push str.Failed_to_get_size
call eax
mov esi, dword [ebp - 0x40]
jmp 0x44e823
mov eax, dword [ebp - 0x48]
push eax
mov dword [esi + 0xc], eax
call fcn.0052a360
add esp, 4
mov dword [esi + 8], eax
test eax, eax
jne 0x44e78d
push 0x615004
call fcn.004f98eb
mov eax, dword [0x6170c0]
add esp, 4
mov dword [ebp - 0x40], eax
test eax, eax
je 0x44e764
lock inc dword [eax + 4]
mov eax, dword [0x6170c0]
mov dword [ebp - 0x40], eax
mov esi, dword [0x6170bc]
push 0x615004
call fcn.004f9907
mov eax, dword [esi]
add esp, 4
mov ecx, esi
mov eax, dword [eax + 4]
push str.Failed_to_allocate_memory
call eax
mov esi, dword [ebp - 0x40]
jmp 0x44e823
mov edi, dword [esi + 0xc]
lea eax, [ebp - 0x40]
push 0
push eax
push edi
push dword [esi + 8]
mov dword [ebp - 0x40], 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44e7d5
call fcn.0044e1c0
test eax, eax
js 0x44e7da
mov al, 1
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.0050fd4b
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 0x40], edi
je 0x44e7b6
push 0x615004
call fcn.004f98eb
mov eax, dword [0x6170c0]
add esp, 4
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x44e7ff
lock inc dword [eax + 4]
mov eax, dword [0x6170c0]
mov dword [ebp - 0x7c], eax
mov esi, dword [0x6170bc]
push 0x615004
call fcn.004f9907
mov eax, dword [esi]
add esp, 4
mov ecx, esi
mov eax, dword [eax + 4]
push str.Failed_to_read_file_to_memory
call eax
mov esi, dword [ebp - 0x7c]
test esi, esi
je 0x44e84c
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x44e84c
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax]
call eax
lock xadd dword [esi + 8], edi
dec edi
jne 0x44e84c
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 4]
call eax
xor al, al
jmp 0x44e7b8
call fcn.0052865a
call fcn.0052865a
int3