Function at 0x10053e30
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10107530
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10137920]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x30], ebx
push ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x18]
push 0x101134e8
push eax
push ebx
lea ecx, [ebp + 8]
call fcn.10015e10
lea edi, [ebx + 8]
test eax, eax
je 0x10053ff0
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], edi
jae 0x10053e8b
lea eax, [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10053ff0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], edi
jae 0x10053eb7
lea eax, [ebp + 8]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10053f1d
lea ecx, [ebp - 0x2c]
mov edi, 0xf
push ecx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov ecx, esi
mov byte [esi], 0
call fcn.10004040
cmp dword [ebp - 0x18], 0x10
jb 0x10053f00
mov edx, dword [ebp - 0x2c]
push edx
call fcn.10065453
add esp, 4
cmp dword [ebp + 0x1c], 8
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], 0
jb 0x1005401b
mov eax, dword [ebp + 8]
push eax
jmp 0x10054013
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
jne 0x10053f57
lea ecx, [ebp - 0x2c]
push ecx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], eax
mov ecx, esi
mov byte [esi], al
call fcn.10004040
lea ecx, [ebp - 0x2c]
call fcn.100f0520
lea ecx, [ebp + 8]
call fcn.1000b180
jmp 0x1005401b
push ebx
call fcn.1006669a
add esp, 4
push 0
lea edx, [ebp - 0x34]
push edx
push ebx
push eax
push edi
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
test ebx, ebx
je 0x10053f97
nop
mov eax, dword [ebp - 0x30]
movzx ecx, byte [edi + eax]
push ecx
push 1
lea ecx, [ebp - 0x2c]
call fcn.10009ad0
inc edi
cmp edi, ebx
jb 0x10053f80
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x10053fa7
push eax
call fcn.100654af
add esp, 4
lea edx, [ebp - 0x2c]
mov edi, 0xf
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], 0
push edx
mov ecx, esi
mov byte [esi], 0
call fcn.10004040
cmp dword [ebp - 0x18], 0x10
jb 0x10053fd6
mov eax, dword [ebp - 0x2c]
push eax
call fcn.10065453
add esp, 4
cmp dword [ebp + 0x1c], 8
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jb 0x1005401b
mov ecx, dword [ebp + 8]
push ecx
jmp 0x10054013
push ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push 0x1012307e
mov ecx, esi
mov byte [esi], 0
call fcn.10004560
cmp dword [ebp + 0x1c], edi
jb 0x1005401b
mov edx, dword [ebp + 8]
push edx
call fcn.10065453
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006656c
mov esp, ebp
pop ebp
ret