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

Disassembly:
sub esp, 0x170
lea eax, [esp + 8]
mov dword [0x1001f8f0], 0
push ebx
push ebp
push esi
push edi
push eax
push 0x100120d4
call fcn.10001830
mov edi, str.xxxxxxxxxx
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x18]
mov edx, ecx
mov esi, edi
mov edi, 0x1001f8f8
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x1001f5f8
and ecx, 3
push str._s_s
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x88]
push ecx
call fcn.1000ab90
add esp, 0x10
lea edx, [esp + 0x7c]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000538e
push 0
push esi
call ebx
mov edi, eax
push 4
push 0x3000
push edi
push 0
call ebp
lea ecx, [esp + 0x14]
push 0
push ecx
push edi
push eax
push esi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push 0x100120e8
mov dword [0x1001f8f0], edx
mov dword [0x1001f8f4], edi
call fcn.10001830
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x1001f8f8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x18]
mov dword [0x1001f92c], 0
push eax
push 0x100120f8
call fcn.10001830
mov edi, str.xxxxxxxxxx
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x18]
mov edx, ecx
mov esi, edi
mov edi, 0x1001f934
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x1001f5f8
and ecx, 3
push str._s_s
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x88]
push ecx
call fcn.1000ab90
add esp, 0x10
lea edx, [esp + 0x7c]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10005486
push 0
push esi
call ebx
mov edi, eax
push 4
push 0x3000
push edi
push 0
call ebp
lea ecx, [esp + 0x14]
push 0
push ecx
push edi
push eax
push esi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push 0x10012108
mov dword [0x1001f92c], edx
mov dword [0x1001f930], edi
call fcn.10001830
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x1001f934
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.xxxxxxxxxx
or ecx, 0xffffffff
xor eax, eax
mov dword [0x1001f968], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x1001f970
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
push 0x10012114
call fcn.10001830
add esp, 8
lea edx, [esp + 0x18]
lea eax, [esp + 0x7c]
push edx
push 0x1001f5f8
push str._s_s
push eax
call fcn.1000ab90
add esp, 0x10
lea ecx, [esp + 0x7c]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000557a
push 0
push esi
call ebx
mov edi, eax
push 4
push 0x3000
push edi
push 0
call ebp
lea edx, [esp + 0x14]
push 0
push edx
push edi
push eax
push esi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push 0x10012124
mov dword [0x1001f968], eax
mov dword [0x1001f96c], edi
call fcn.10001830
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x1001f970
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.xxxxxxxxxx
or ecx, 0xffffffff
xor eax, eax
mov dword [0x1001f9a4], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x1001f9ac
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
push 0x10012130
call fcn.10001830
add esp, 8
lea edx, [esp + 0x18]
lea eax, [esp + 0x7c]
push edx
push 0x1001f5f8
push str._s_s
push eax
call fcn.1000ab90
add esp, 0x10
lea ecx, [esp + 0x7c]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000566e
push 0
push esi
call ebx
mov edi, eax
push 4
push 0x3000
push edi
push 0
call ebp
lea edx, [esp + 0x14]
push 0
push edx
push edi
push eax
push esi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push 0x10012140
mov dword [0x1001f9a4], eax
mov dword [0x1001f9a8], edi
call fcn.10001830
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x1001f9ac
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.xxxxxxxxxx
or ecx, 0xffffffff
xor eax, eax
mov dword [0x1001f9e0], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x1001f9e8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
push 0x1001214c
call fcn.10001830
add esp, 8
lea edx, [esp + 0x18]
lea eax, [esp + 0x7c]
push edx
push 0x1001f5f8
push str._s_s
push eax
call fcn.1000ab90
add esp, 0x10
lea ecx, [esp + 0x7c]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10005762
push 0
push esi
call ebx
mov edi, eax
push 4
push 0x3000
push edi
push 0
call ebp
lea edx, [esp + 0x14]
push 0
push edx
push edi
push eax
push esi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push 0x1001215c
mov dword [0x1001f9e0], eax
mov dword [0x1001f9e4], edi
call fcn.10001830
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x1001f9e8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.xxxxxxxxxx
or ecx, 0xffffffff
xor eax, eax
mov dword [0x1001fa1c], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x1001fa24
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
push str.OpenMapTask.txt
call fcn.10001830
add esp, 8
lea edx, [esp + 0x18]
lea eax, [esp + 0x7c]
push edx
push 0x1001f5f8
push str._s_s
push eax
call fcn.1000ab90
add esp, 0x10
lea ecx, [esp + 0x7c]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10005856
push 0
push esi
call ebx
mov edi, eax
push 4
push 0x3000
push edi
push 0
call ebp
lea edx, [esp + 0x14]
push 0
push edx
push edi
push eax
push esi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push str.OpenMapTask
mov dword [0x1001fa1c], eax
mov dword [0x1001fa20], edi
call fcn.10001830
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x1001fa24
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.xxxxxxxxxx
or ecx, 0xffffffff
xor eax, eax
mov dword [0x1001fa58], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x1001fa60
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
push 0x10012184
call fcn.10001830
add esp, 8
lea edx, [esp + 0x18]
lea eax, [esp + 0x7c]
push edx
push 0x1001f5f8
push str._s_s
push eax
call fcn.1000ab90
add esp, 0x10
lea ecx, [esp + 0x7c]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000594a
push 0
push esi
call ebx
mov edi, eax
push 4
push 0x3000
push edi
push 0
call ebp
lea edx, [esp + 0x14]
push 0
push edx
push edi
push eax
push esi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push 0x10012190
mov dword [0x1001fa58], eax
mov dword [0x1001fa5c], edi
call fcn.10001830
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x1001fa60
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.xxxxxxxxxx
or ecx, 0xffffffff
xor eax, eax
mov dword [0x1001fa94], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x1001fa9c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
push 0x10012198
call fcn.10001830
add esp, 8
lea edx, [esp + 0x18]
lea eax, [esp + 0x7c]
push edx
push 0x1001f5f8
push str._s_s
push eax
call fcn.1000ab90
add esp, 0x10
lea ecx, [esp + 0x7c]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10005a39
push 0
push esi
call ebx
mov edi, eax
push 4
push 0x3000
push edi
push 0
call ebp
lea edx, [esp + 0x14]
push 0
mov ebx, eax
push edx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x18]
mov dword [0x1001fa94], ebx
push eax
push 0x100121a8
mov dword [0x1001fa98], edi
call fcn.10001830
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x1001fa9c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x170
ret