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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x554c10
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x5ec3c8]
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, 0x5cbd74
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.00425da0
test eax, eax
jns 0x441b0a
test edi, edi
je 0x4419a2
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.00419c40
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x441790
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x60]
call fcn.0041ff00
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 0x4417b0
push ecx
lea eax, [ebp - 0x12]
push eax
push esi
lea ecx, [ebp - 0xe0]
call fcn.00431c60
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 0x4417f0
push ecx
lea eax, [ebp - 0x12]
push eax
push esi
lea ecx, [ebp - 0xc8]
call fcn.00431c60
push 8
push str.._Error
push ecx
lea ecx, [ebp - 0xc8]
call fcn.00442db0
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.0041ff00
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.004263b0
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.0041ff00
lea ecx, [ebp - 0x78]
call fcn.004196c0
lea ecx, [ebp - 0x98]
call fcn.004196c0
lea ecx, [ebp - 0xb0]
call fcn.004196c0
lea ecx, [ebp - 0xc8]
call fcn.004196c0
lea ecx, [ebp - 0xe0]
call fcn.004196c0
push 0x5f6004
call fcn.004f3b86
mov edi, dword [0x5f977c]
add esp, 4
test edi, edi
je 0x44193d
lock inc dword [edi + 4]
mov edi, dword [0x5f977c]
mov esi, dword [0x5f9778]
push 0x5f6004
call fcn.004f3ba2
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 0x44198e
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x44198e
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax]
call eax
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x44198e
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.004196c0
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 0x441740
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 0x4419c7
push ecx
lea eax, [ebp - 0x4b]
push eax
push esi
lea ecx, [ebp - 0x98]
call fcn.00431fa0
lea eax, [ebp - 0x98]
mov edx, str.Failed_to_open_the_file:
push eax
lea ecx, [ebp - 0x78]
call fcn.004349a0
mov ecx, dword [ebp - 0x84]
add esp, 4
cmp ecx, 0x10
jb 0x441a52
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x441a48
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x441ca2
push ecx
push edx
call fcn.0050a4c5
add esp, 8
push 0x5f6004
call fcn.004f3b86
mov eax, dword [0x5f977c]
add esp, 4
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x441a77
lock inc dword [eax + 4]
mov eax, dword [0x5f977c]
mov dword [ebp - 0x7c], eax
mov esi, dword [0x5f9778]
push 0x5f6004
call fcn.004f3ba2
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 0x441acb
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x441acb
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax]
call eax
lock xadd dword [esi + 8], edi
dec edi
jne 0x441acb
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 4]
call eax
mov ecx, dword [ebp - 0x64]
cmp ecx, 0x10
jb 0x441c9b
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x441af9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x441ca7
push ecx
push edx
call fcn.0050a4c5
add esp, 8
xor al, al
jmp 0x441c07
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 0x441b7b
call fcn.00425d70
test eax, eax
jns 0x441b78
push 0x5f6004
call fcn.004f3b86
mov eax, dword [0x5f977c]
add esp, 4
mov dword [ebp - 0x40], eax
test eax, eax
je 0x441b4f
lock inc dword [eax + 4]
mov eax, dword [0x5f977c]
mov dword [ebp - 0x40], eax
mov esi, dword [0x5f9778]
push 0x5f6004
call fcn.004f3ba2
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 0x441c72
mov eax, dword [ebp - 0x48]
push eax
mov dword [esi + 0xc], eax
call fcn.0052540f
add esp, 4
mov dword [esi + 8], eax
test eax, eax
jne 0x441bdc
push 0x5f6004
call fcn.004f3b86
mov eax, dword [0x5f977c]
add esp, 4
mov dword [ebp - 0x40], eax
test eax, eax
je 0x441bb3
lock inc dword [eax + 4]
mov eax, dword [0x5f977c]
mov dword [ebp - 0x40], eax
mov esi, dword [0x5f9778]
push 0x5f6004
call fcn.004f3ba2
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 0x441c72
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 0x441c24
call fcn.00425d70
test eax, eax
js 0x441c29
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.0050a47b
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 0x40], edi
je 0x441c05
push 0x5f6004
call fcn.004f3b86
mov eax, dword [0x5f977c]
add esp, 4
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x441c4e
lock inc dword [eax + 4]
mov eax, dword [0x5f977c]
mov dword [ebp - 0x7c], eax
mov esi, dword [0x5f9778]
push 0x5f6004
call fcn.004f3ba2
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 0x441c9b
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x441c9b
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax]
call eax
lock xadd dword [esi + 8], edi
dec edi
jne 0x441c9b
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 4]
call eax
xor al, al
jmp 0x441c07
call fcn.00522dda
call fcn.00522dda
int3