Function at 0x100014a0
Capabilities:
Check if file exists
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x334
mov eax, dword [0x1001c024]
xor eax, esp
mov dword [esp + 0x330], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
xor eax, eax
push edi
push 0x1fe
mov esi, ecx
push eax
lea edx, [esp + 0x142]
xor ecx, ecx
push edx
mov dword [esp + 0x28], 0x20
xor edi, edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov word [esp + 0x144], cx
call fcn.100064e0
add esp, 0xc
xor eax, eax
push 0x7e
push eax
lea ecx, [esp + 0x42]
push ecx
mov word [esp + 0x44], ax
call fcn.100064e0
add esp, 0xc
xor edx, edx
push 0x7e
push edx
lea eax, [esp + 0xc2]
push eax
mov word [esp + 0xc4], dx
call fcn.100064e0
add esp, 0xc
test ebx, ebx
jne 0x1000155c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
xor eax, eax
add edi, eax
adc eax, 0x81000a
mov dword [esp + 0x14], eax
jmp 0x100017f4
cmp dword [esi + 4], edi
jne 0x100017f4
lea ecx, [esi + 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push ebx
lea eax, [esi + 0x14]
push 0x104
push eax
call fcn.10004b70
mov eax, dword [ebp + 0x10]
add esp, 0xc
test eax, eax
jne 0x10001590
mov eax, 0xa00000
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov ecx, 0x100000
test eax, eax
je 0x100015a1
mov ecx, eax
mov dword [esi + 8], ecx
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10004891
add esp, 4
mov dword [esi + 0x10], eax
test eax, eax
jne 0x100015de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
xor eax, eax
add edi, eax
adc eax, 0x910003
mov dword [esp + 0x14], eax
jmp 0x100017f4
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
lea ebx, [esi + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x21c], eax
cmp eax, 0xffffffff
jne 0x10001668
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1000162a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
xor eax, eax
add edi, eax
adc eax, 0xa30070
mov dword [esp + 0x14], eax
jmp 0x100017f4
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x21c], eax
cmp eax, 0xffffffff
jne 0x10001668
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
xor eax, eax
add edi, eax
adc eax, 0xb20070
mov dword [esp + 0x14], eax
jmp 0x100017f4
mov ecx, dword [esi + 0x21c]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x10001698
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
xor eax, eax
add edi, eax
adc eax, 0xba0015
mov dword [esp + 0x14], eax
jmp 0x100017f4
mov edx, dword [esp + 0x24]
mov ecx, dword [esi + 0xc]
xor eax, eax
cmp edx, eax
jl 0x100016d1
jg 0x100016af
mov eax, dword [esp + 0x20]
cmp eax, ecx
jb 0x100016d1
mov ecx, dword [esi + 0x21c]
push 0
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x100016e4
mov eax, dword [esi + 0x21c]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x10]
push str._r_n_r_n
push ecx
push edx
call fcn.10004b70
add esp, 0xc
push 0
call fcn.10001260
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x24]
call fcn.100010b0
xor eax, eax
and edx, 0xffff
or eax, edx
jne 0x10001764
mov edx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x144]
push str.OS_Name:_s_Version:_s_Bits:_d_r_n
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x10]
add esp, 0x14
lea eax, [esp + 0x138]
push eax
push ecx
push edx
call fcn.10004b70
add esp, 0xc
jmp 0x1000178f
lea eax, [esp + 0x138]
push str.Unknown_operating_system_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x10]
lea ecx, [esp + 0x140]
push ecx
push edx
push eax
call fcn.10004b70
add esp, 0x14
push 1
call fcn.10001260
lea ebx, [esp + 0x28]
call fcn.10003f50
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
push ecx
push str.EasyUEFI
lea edx, [esp + 0x14c]
push str._S_Version:_d._d._d._d_r_n
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x10]
add esp, 0x1c
lea eax, [esp + 0x138]
push eax
push ecx
push edx
call fcn.10004b70
add esp, 0xc
push 1
call fcn.10001260
mov dword [esi + 4], 1
movzx ecx, word [esp + 0x14]
xor eax, eax
or eax, ecx
je 0x1000180f
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
mov dword [esi + 4], 1
call edx
mov ecx, dword [esp + 0x33c]
mov edx, dword [esp + 0x14]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1000446e
mov esp, ebp
pop ebp
ret 0xc