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

Disassembly:
push 0xffffffffffffffff
push 0x1099ec8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x1001f54
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], ebx
call fcn.0108e799
mov dword [esp + 0x68], ebx
call fcn.01095539
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x78]
push eax
lea ecx, [esp + 0x14]
push 0x10029e0
push ecx
call fcn.01089297
add esp, 0xc
push ebx
lea ecx, [esp + 0x30]
call fcn.01084770
mov edx, dword [esp + 0x10]
push 0x1002948
push edx
lea ecx, [esp + 0x34]
mov byte [esp + 0x70], 1
call fcn.01084d60
cmp eax, ebx
je 0x103d44a
lea ecx, [esp + 0x2c]
mov byte [esp + 0x68], bl
call fcn.01084cd0
or edi, 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x68], edi
call fcn.0108e72b
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
add esp, 0x5c
ret
push 0x1001f54
lea ecx, [esp + 0x1c]
call fcn.0108e799
push 0x1001f54
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], 2
call fcn.0108e799
lea ecx, [esp + 0x20]
mov byte [esp + 0x68], 3
call fcn.01084f70
lea eax, [esp + 0x20]
push eax
push 0x1004b28
lea ecx, [esp + 0x34]
mov byte [esp + 0x70], 4
call fcn.01084980
mov esi, eax
cmp esi, ebx
jne 0x103d4a5
mov ecx, dword [esp + 0x20]
push ecx
lea ecx, [esp + 0x18]
call fcn.0108e8b4
lea ecx, [esp + 0x20]
mov byte [esp + 0x68], 3
call fcn.01085020
lea ecx, [esp + 0x2c]
call fcn.010847e0
cmp esi, ebx
je 0x103d512
lea ecx, [esp + 0x14]
mov byte [esp + 0x68], 2
call fcn.0108e72b
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 1
call fcn.0108e72b
lea ecx, [esp + 0x2c]
mov byte [esp + 0x68], bl
call fcn.01084cd0
lea ecx, [esp + 0x10]
mov dword [esp + 0x68], 0xffffffff
call fcn.0108e72b
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
add esp, 0x5c
ret
mov ebp, dword [esp + 0x74]
mov edx, dword [esp + 0x14]
push ebp
push edx
lea eax, [esp + 0x20]
push 0x1004b20
push eax
call fcn.01089297
mov ecx, dword [esp + 0x28]
add esp, 0x10
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocStringLen
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x103d59c
lea ecx, [esp + 0x14]
mov byte [esp + 0x68], 2
call fcn.0108e72b
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 1
call fcn.0108e72b
lea ecx, [esp + 0x2c]
mov byte [esp + 0x68], bl
call fcn.01084cd0
lea ecx, [esp + 0x10]
mov dword [esp + 0x68], edi
call fcn.0108e72b
pop edi
pop esi
pop ebp
mov eax, 0xfffffffd
pop ebx
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
add esp, 0x5c
ret
push 0x1002ccc
push ebp
call fcn.0105897f
add esp, 8
test eax, eax
je 0x103d6b1
push 0x1002cd4
push ebp
call fcn.0105897f
add esp, 8
test eax, eax
je 0x103d6b1
push 0x1002cc4
push ebp
call fcn.0105897f
add esp, 8
test eax, eax
jne 0x103d742
mov eax, dword [esp + 0x70]
push ebx
lea edx, [esp + 0x20]
push edx
push 0x200001
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x103d64e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
mov byte [esp + 0x68], 2
call fcn.0108e72b
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 1
call fcn.0108e72b
lea ecx, [esp + 0x2c]
mov byte [esp + 0x68], bl
call fcn.01084cd0
lea ecx, [esp + 0x10]
mov dword [esp + 0x68], edi
call fcn.0108e72b
pop edi
pop esi
pop ebp
mov eax, 0xfffffffb
pop ebx
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
add esp, 0x5c
ret
cmp dword [esp + 0x1c], 0x200000
jbe 0x103d742
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
mov byte [esp + 0x68], 2
call fcn.0108e72b
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 1
call fcn.0108e72b
lea ecx, [esp + 0x2c]
mov byte [esp + 0x68], bl
call fcn.01084cd0
lea ecx, [esp + 0x10]
mov dword [esp + 0x68], edi
call fcn.0108e72b
pop edi
pop esi
pop ebp
mov eax, 0xfffffffc
pop ebx
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
add esp, 0x5c
ret
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, edi
je 0x103d65c
cmp eax, 0x7f800
ja 0x103d65c
mov edx, dword [esp + 0x70]
push ebx
lea ecx, [esp + 0x20]
push ecx
push 0x7f800
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x103d5f9
test dword [esp + 0x1c], 0x7ff
je 0x103d742
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
mov byte [esp + 0x68], 2
call fcn.0108e72b
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 1
call fcn.0108e72b
lea ecx, [esp + 0x2c]
mov byte [esp + 0x68], bl
call fcn.01084cd0
lea ecx, [esp + 0x10]
mov dword [esp + 0x68], edi
call fcn.0108e72b
pop edi
pop esi
pop ebp
mov eax, 0xfffffffa
pop ebx
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
add esp, 0x5c
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
mov byte [esp + 0x68], 2
call fcn.0108e72b
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 1
call fcn.0108e72b
lea ecx, [esp + 0x2c]
mov byte [esp + 0x68], bl
call fcn.01084cd0
lea ecx, [esp + 0x10]
mov dword [esp + 0x68], edi
call fcn.0108e72b
mov ecx, dword [esp + 0x60]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c
ret