Function at 0x1001ea50
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009eb9c
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x100cc144]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0xe8], 0
je 0x1001f01b
lea eax, [ebp - 0x44]
push eax
call fcn.1001cf60
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
mov dword [ebp - 4], 0
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001f013
cmp dword [ebp - 0x30], 8
lea edx, [ebp - 0x44]
mov dword [ebp - 0x50], 0
cmovae edx, dword [ebp - 0x44]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], ax
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001eae0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x60]
call fcn.1000e930
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 1
push eax
call fcn.100173f0
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
mov ebx, eax
mov esi, edx
call fcn.100043b0
test esi, esi
jne 0x1001eb26
cmp ebx, 0x14
jb 0x1001f013
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push 0x100a6700
cmovae eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0
push eax
call fcn.1007c937
mov eax, dword [ebp - 0x48]
add esp, 0xc
test eax, eax
je 0x1001ef51
push 2
push 0
push 0
push eax
call fcn.1007cd21
push dword [ebp - 0x48]
call fcn.1007d315
push 0
push 0
push 0
push dword [ebp - 0x48]
mov esi, eax
mov ebx, edx
mov dword [ebp - 0x7c], esi
call fcn.1007cd21
push dword [ebp - 0x48]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 2
push 1
push 4
push eax
call fcn.1007c16b
mov eax, dword [ebp - 0x14]
add esp, 0x34
cmp eax, dword [edi + 0xf0]
ja 0x1001eeed
push dword [ebp - 0x48]
lea eax, [ebp - 0x24]
xorps xmm0, xmm0
push 1
push 8
push eax
movlpd qword [ebp - 0x24], xmm0
call fcn.1007c16b
push dword [ebp - 0x48]
mov eax, dword [ebp - 0x24]
xorps xmm0, xmm0
mov dword [edi + 0x98], eax
mov eax, dword [ebp - 0x20]
push 1
mov dword [edi + 0x9c], eax
lea eax, [ebp - 0x2c]
push 8
push eax
movlpd qword [ebp - 0x2c], xmm0
call fcn.1007c16b
mov eax, dword [ebp - 0x2c]
add esp, 0x20
cmp dword [ebp - 0x14], 2
xorps xmm0, xmm0
mov dword [edi + 0x90], eax
mov eax, dword [ebp - 0x28]
mov dword [edi + 0x94], eax
movlpd qword [ebp - 0x1c], xmm0
jb 0x1001ed16
push dword [ebp - 0x48]
lea eax, [ebp - 0x1c]
push 1
push 8
push eax
call fcn.1007c16b
mov eax, dword [ebp - 0x1c]
add esp, 0x10
mov ecx, dword [ebp - 0x18]
add eax, 0x1c
adc ecx, 0
cmp eax, esi
jne 0x1001ec3b
cmp ecx, ebx
je 0x1001ed16
call fcn.10031890
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x1001eeed
push 0x53
push str.d:jenkins.jenkinsworkspacedefragger_defragdefragdefrag_file_system_ntfs_fs.cc
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], al
call fcn.10007190
push 3
push 0x100a57c0
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 2
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
call fcn.10007190
push 0x2bc
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x114]
call fcn.10003b10
mov esi, eax
push str._error__file_size_error__file_size:
push esi
mov byte [ebp - 4], 4
call fcn.10004a70
add esp, 8
mov ecx, esi
push ebx
push dword [ebp - 0x7c]
call fcn.1001cd90
push str.__file_info_size:
push esi
call fcn.10004a70
add esp, 8
mov ecx, esi
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.1001cd90
call fcn.10031890
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x114]
call fcn.10004b90
lea ecx, [ebp - 0x60]
call fcn.10004360
lea ecx, [ebp - 0x78]
jmp 0x1001eee4
push dword [ebp - 0x48]
mov ecx, dword [edi + 0xc]
call fcn.10014450
mov dword [ebp - 0x7c], eax
mov ebx, edx
test eax, eax
jne 0x1001edf6
test ebx, ebx
jne 0x1001edf6
call fcn.10031890
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x1001ede9
push 0x53
push str.d:jenkins.jenkinsworkspacedefragger_defragdefragdefrag_file_system_ntfs_fs.cc
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], al
call fcn.10007190
push 3
push 0x100a57c0
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 5
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], bl
call fcn.10007190
push 0x2c4
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x114]
call fcn.10003b10
mov esi, eax
push str._error__read_cache_file_failed
push esi
mov byte [ebp - 4], 7
call fcn.10004a70
add esp, 8
call fcn.10031890
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x114]
call fcn.10004b90
lea ecx, [ebp - 0x78]
call fcn.10004360
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], bl
call fcn.10004360
mov ecx, dword [edi + 0xc]
call fcn.1001d110
jmp 0x1001eeed
cmp eax, dword [ebp - 0x1c]
jne 0x1001ee04
cmp ebx, dword [ebp - 0x18]
je 0x1001eeed
cmp dword [ebp - 0x14], 2
jb 0x1001eeed
call fcn.10031890
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x1001eeed
push 0x53
push str.d:jenkins.jenkinsworkspacedefragger_defragdefragdefrag_file_system_ntfs_fs.cc
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], al
call fcn.10007190
push 3
push 0x100a57c0
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 8
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
call fcn.10007190
push 0x2c9
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x114]
call fcn.10003b10
mov esi, eax
push str._warning__read_size___save_size__read_size:
push esi
mov byte [ebp - 4], 0xa
call fcn.10004a70
add esp, 8
mov ecx, esi
push ebx
push dword [ebp - 0x7c]
call fcn.1001cd90
push str.__save_size:
push esi
call fcn.10004a70
add esp, 8
mov ecx, esi
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.1001cd90
call fcn.10031890
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x114]
call fcn.10004b90
lea ecx, [ebp - 0x78]
call fcn.10004360
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.10004360
push dword [ebp - 0x48]
call fcn.1007c9f5
mov esi, dword [edi + 0xc]
lea eax, [ebp - 0x60]
add esp, 4
mov dword [ebp - 0x48], 0
lea ecx, [edi + 0x18]
push 1
push 0
push eax
call fcn.10022900
push str..allfile.txt
push eax
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 0xb
push eax
call fcn.100083e0
add esp, 0xc
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0xc
jb 0x1001ef34
mov eax, dword [eax]
push eax
mov ecx, esi
call fcn.10014f60
lea ecx, [ebp - 0x78]
call fcn.100043b0
lea ecx, [ebp - 0x60]
call fcn.100043b0
jmp 0x1001f013
call fcn.10031890
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x1001f013
push 0x53
push str.d:jenkins.jenkinsworkspacedefragger_defragdefragdefrag_file_system_ntfs_fs.cc
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], al
call fcn.10007190
push 3
push 0x100a57c0
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
call fcn.10007190
push 0x2d4
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x114]
call fcn.10003b10
mov esi, eax
push str._error__open_ntdb_failed__path:
push esi
mov byte [ebp - 4], 0xf
call fcn.10004a70
add esp, 8
lea eax, [ebp - 0x44]
mov ecx, esi
push eax
call fcn.10018f90
mov esi, eax
call fcn.10031890
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x114]
call fcn.10004b90
lea ecx, [ebp - 0x78]
call fcn.10004360
lea ecx, [ebp - 0x60]
call fcn.10004360
lea ecx, [ebp - 0x44]
call fcn.100043b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10039fbc
mov esp, ebp
pop ebp
ret