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

Disassembly:
mov eax, 0x473fcd
call fcn.00473e04
sub esp, 0x124
push ebx
push esi
push 0x103
lea eax, [ebp - 0x12f]
mov byte [ebp - 0x130], 0
mov ebx, ecx
push 0
push eax
mov dword [ebp - 0x20], ebx
call fcn.00443c10
lea eax, [ebx + 0x29c]
push eax
lea ecx, [ebx + 0x28c]
mov dword [ebp - 0x10], eax
push ecx
lea edx, [ebx + 0x20c]
mov dword [ebp - 0x14], ecx
push edx
add ebx, 0x108
mov dword [ebp - 0x18], edx
push ebx
lea eax, [ebp - 0x130]
mov dword [ebp - 0x28], ebx
push str._s_mupdb__s__s__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
lea eax, [ebp - 0x130]
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push ebx
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40a267
xor al, al
jmp 0x40a447
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call fcn.0043d6b0
push edi
mov ebx, eax
push 0
push ebx
mov dword [ebp - 0x24], ebx
call fcn.00443c10
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
add esp, 0x10
push 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], 0
jne 0x40a2b0
xor al, al
jmp 0x40a446
push 0x2c
call fcn.0043d6b0
pop ecx
mov dword [ebp - 0x2c], eax
and dword [ebp - 4], 0
test eax, eax
je 0x40a2d4
push ecx
push ecx
push 3
push edi
push ebx
mov ecx, eax
call fcn.0040abd6
mov edi, eax
jmp 0x40a2d6
xor edi, edi
or dword [ebp - 4], 0xffffffff
test edi, edi
jne 0x40a2eb
push ebx
call fcn.0043d685
xor al, al
jmp 0x40a445
mov eax, dword [edi]
xor ebx, ebx
push ebx
push dword [0x494880]
mov ecx, edi
push 1
call dword [eax + 0x18]
test eax, eax
je 0x40a323
xor esi, esi
inc esi
mov eax, dword [edi]
mov ecx, edi
push 0
push dword [0x494880]
push esi
call dword [eax + 0x18]
test eax, eax
je 0x40a31e
cmp byte [eax], 0
je 0x40a31e
inc ebx
inc esi
test eax, eax
jne 0x40a304
push dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ecx, esi
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x10]
mov eax, dword [esi]
push dword [ebp - 0x18]
call dword [eax]
xor esi, esi
test ebx, ebx
je 0x40a430
mov eax, dword [edi]
lea ecx, [esi + 1]
push 0
push str.fileset
mov dword [ebp - 0x14], ecx
push ecx
mov ecx, edi
call dword [eax + 0x18]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x40a425
mov edx, dword [edi]
mov ecx, edi
push 0
push str.shared
push esi
call dword [edx + 0x14]
xor ecx, ecx
mov esi, eax
mov eax, dword [ebp + 8]
test esi, esi
setne cl
push ecx
mov edx, dword [eax]
mov ecx, eax
push dword [ebp + 0xc]
call dword [edx + 0x50]
mov edx, dword [edi]
mov ecx, edi
mov dword [ebp - 0x10], eax
mov eax, 0x48086e
push eax
push str.location
push dword [ebp - 0x14]
call dword [edx + 0x18]
mov ecx, dword [ebp - 0x20]
add ecx, 4
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x28]
test esi, esi
cmovne eax, ecx
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebp - 0x18]
lea ecx, [eax - 1]
mov al, byte [ecx + edx]
cmp al, 0x5c
je 0x40a3cd
cmp al, 0x2f
jne 0x40a3cf
xor ecx, ecx
push dword [ebp + 0xc]
test ecx, ecx
mov eax, 0x480b40
mov ecx, 0x48086e
cmove eax, ecx
push eax
push edx
lea eax, [ebp - 0x130]
push str._s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x130]
add esp, 0x14
mov eax, dword [esi]
push ecx
push dword [ebp - 0x10]
mov ecx, esi
call dword [eax + 0x54]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40a425
mov eax, dword [esi]
mov ecx, esi
push 0x18
push dword [ebp - 0x10]
call dword [eax + 0x6c]
mov esi, dword [ebp - 0x14]
cmp esi, ebx
jb 0x40a343
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
push dword [ebp - 0x24]
call fcn.0043d685
test ebx, ebx
setne al
pop ecx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8