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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101251d7
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x10167c60]
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 dword [ebp - 0x14c], ecx
xor esi, esi
call fcn.100088b0
mov ecx, eax
test ecx, ecx
je 0x1003f18a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x144], eax
lea eax, [ebp - 0x144]
mov dword [ebp - 4], esi
push eax
push 0x71
call fcn.100132d0
add esp, 8
lea ecx, [ebp - 0x145]
call fcn.1003ecc0
push eax
lea eax, [ebp - 0x144]
push eax
call fcn.100131f0
add esp, 8
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp - 0x144]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x150], eax
cmp eax, 0xffffffff
je 0x1003f147
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jle 0x1003effe
lea esi, [edi + 8]
push esi
call fcn.100c4998
push esi
mov ebx, eax
push 0
push ebx
call fcn.100e67c0
mov esi, dword [ebp - 0x150]
lea eax, [ebp - 0x154]
add esp, 0x10
push 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x1003f004
mov esi, dword [ebp - 0x150]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1003f145
test edi, edi
je 0x1003f145
push 0x64
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.100e67c0
add esp, 0xc
lea eax, [ebp - 0x74]
push 0x32
push eax
call fcn.100bfd10
push 0xfde9
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x140]
call fcn.1001c220
push dword [eax]
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 1
call fcn.10007a50
mov eax, dword [ebp - 0x140]
lea ecx, [ebp - 0x13c]
cmp eax, ecx
je 0x1003f074
push eax
call fcn.100e9f68
add esp, 4
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], 0
push ebx
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 4
call fcn.10007a50
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.100958a0
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa4]
mov esi, eax
call fcn.10007e60
test esi, esi
je 0x1003f122
cmp dword [ebp - 0x78], 0x10
lea edx, [ebp - 0x8c]
mov edi, dword [ebp - 0x14c]
cmovae edx, dword [ebp - 0x8c]
lea esi, [edi + 0x20]
test edx, edx
jne 0x1003f0f1
xor ecx, ecx
jmp 0x1003f10d
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x14c], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003f100
sub ecx, dword [ebp - 0x14c]
push ecx
push edx
mov ecx, esi
call fcn.1003e510
push esi
mov ecx, edi
call fcn.1003f1a0
mov esi, eax
jmp 0x1003f124
xor esi, esi
push ebx
call fcn.100c49a1
add esp, 4
lea ecx, [ebp - 0x8c]
call fcn.10007e60
lea ecx, [ebp - 0xbc]
call fcn.10007e60
jmp 0x1003f147
xor esi, esi
mov edx, dword [ebp - 0x144]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003f16c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
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.100c495f
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10008520
int3