Function at 0x10014680
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x10072414]
xor eax, ebp
mov dword [ebp - 0x2c], eax
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x100146ba
jmp 0x1001495e
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
ja 0x100146de
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001495e
cmp dword [ebp - 4], 0x400000
jae 0x10014763
mov eax, dword [ebp - 4]
push eax
call fcn.1004251a
add esp, 4
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0xb0]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], 0
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10014746
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 4]
jne 0x10014746
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.10014600
add esp, 0xc
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xb4], ecx
mov edx, dword [ebp - 0xb4]
push edx
call fcn.10043b1e
add esp, 4
jmp 0x10014954
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x10014785
jmp 0x1001495e
mov byte [ebp - 0x1d], 1
mov dword [ebp - 0x28], 0x10000
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x88]
push ecx
call fcn.100133c0
add esp, 4
mov dword [ebp - 0x8c], 0
jmp 0x100147cc
mov edx, dword [ebp - 0x8c]
add edx, 1
mov dword [ebp - 0x8c], edx
mov eax, dword [ebp - 0x8c]
cmp eax, dword [ebp - 0x18]
jae 0x10014834
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x24]
push edx
push 0
push 4
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
jne 0x10014802
mov byte [ebp - 0x1d], 0
jmp 0x10014834
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x90]
push edx
lea eax, [ebp - 0x88]
push eax
call fcn.10013400
add esp, 0xc
mov ecx, dword [ebp - 0x90]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [ebp - 0x24]
add edx, dword [ebp - 0x28]
mov dword [ebp - 0x24], edx
jmp 0x100147bd
movzx eax, byte [ebp - 0x1d]
test eax, eax
je 0x100148a7
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp - 0x28]
test edx, edx
je 0x100148a7
push 0
mov ecx, dword [ebp - 0x24]
push ecx
push 0
push 4
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
jne 0x10014871
mov byte [ebp - 0x1d], 0
jmp 0x100148a7
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x98]
push ecx
mov edx, dword [ebp - 0x94]
push edx
lea eax, [ebp - 0x88]
push eax
call fcn.10013400
add esp, 0xc
mov ecx, dword [ebp - 0x94]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
movzx edx, byte [ebp - 0x1d]
test edx, edx
je 0x1001494a
mov byte [ebp - 0xa8], 0
xor eax, eax
mov dword [ebp - 0xa7], eax
mov dword [ebp - 0xa3], eax
mov dword [ebp - 0x9f], eax
mov word [ebp - 0x9b], ax
mov byte [ebp - 0x99], al
lea ecx, [ebp - 0x88]
push ecx
lea edx, [ebp - 0xa8]
push edx
call fcn.10013510
add esp, 8
mov dword [ebp - 0xac], 0
jmp 0x1001490c
mov eax, dword [ebp - 0xac]
add eax, 1
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 0x10
jge 0x1001494a
mov ecx, dword [ebp - 0xac]
movzx edx, byte [ebp + ecx - 0xa8]
and edx, 0xff
push edx
push str._02x
push 3
mov eax, dword [ebp - 0xac]
shl eax, 1
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + eax*2]
push edx
call fcn.10045c49
add esp, 0x10
jmp 0x100148fd
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.10042ec5
mov esp, ebp
pop ebp
ret