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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x28], eax
je 0x103d152
push esi
push edi
push ebx
push eax
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x103d13e
cmp esi, ebx
je 0x103d13e
lea edi, [esi + 1]
push edi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
mov dword [ebp - 0x20], eax
je 0x103d135
push ebx
lea ecx, [ebp - 0x24]
push ecx
push esi
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x103d123
cmp dword [ebp - 0x24], esi
jne 0x103d123
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x50]
mov byte [eax + esi], bl
call fcn.010644f9
lea ecx, [ebp - 0x88]
call fcn.01066e42
call fcn.01066e3a
push edi
lea ecx, [ebp - 0x50]
call fcn.01064572
push eax
lea ecx, [ebp - 0x88]
call fcn.01067100
lea eax, [ebp - 0x2c]
push eax
push 0x1002e18
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x2c], ebx
call fcn.01066d02
mov ecx, dword [ebp - 0x2c]
cmp ecx, ebx
je 0x103d10e
lea eax, [ebp + 8]
push eax
push 0x1002e2c
mov dword [ebp + 8], ebx
call fcn.01066d02
cmp dword [ebp + 8], ebx
je 0x103d10e
mov edi, 0x1002e60
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
push 0x1002e3c
push ebx
mov dword [ebp - 0x1c], ebx
call fcn.01066db4
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x103d0f1
push 0x10
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
cmp esi, ebx
pop ecx
je 0x103d052
mov eax, dword [ebp - 0x1c]
or dword [ebp - 8], 1
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
call fcn.01064e8a
push eax
mov ecx, esi
call fcn.0103cde1
mov esi, eax
jmp 0x103d054
xor esi, esi
test byte [ebp - 8], 1
je 0x103d066
and dword [ebp - 8], 0xfffffffe
lea ecx, [ebp - 0x44]
call fcn.01064bb9
mov ecx, dword [ebp + 0xc]
push esi
call fcn.0105f868
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x30]
push eax
push 0x1002e48
mov dword [ebp - 0x30], ebx
call fcn.01066d02
mov ecx, dword [ebp - 0x30]
cmp ecx, ebx
je 0x103d0f1
lea eax, [ebp - 0xc]
push eax
push edi
mov dword [ebp - 0xc], ebx
call fcn.01066d02
cmp dword [ebp - 0xc], ebx
je 0x103d0f1
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x10], ebx
call fcn.01067059
test eax, eax
jl 0x103d0d1
push dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x103d0d1
push dword [ebp - 0x34]
mov ecx, esi
call fcn.0103ce8f
jmp 0x103d0d8
mov dword [ebp - 4], 0x80004005
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], ebx
call fcn.01066ce4
mov eax, dword [ebp - 0x14]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x103d09c
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], ebx
call fcn.01066ce4
mov eax, dword [ebp - 0x18]
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x103cffd
lea ecx, [ebp - 0x88]
call fcn.010674fe
lea ecx, [ebp - 0x50]
call fcn.01064519
jmp 0x103d12a
mov dword [ebp - 4], 0x80004005
push dword [ebp - 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x103d145
mov dword [ebp - 4], 0x8007000e
jmp 0x103d145
mov dword [ebp - 4], 0x80004005
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
jmp 0x103d159
mov dword [ebp - 4], 0x80004005
mov eax, dword [ebp - 4]
pop ebx
leave
ret 8