Function at 0x45fa90
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4b3008]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [ebp + 8], 1
push ebx
push esi
push edi
mov edi, ecx
jne 0x45fe6e
push 0x7c1d48
lea eax, [ebp - 0x10c]
push str._sInOutGRSMap.dat
push eax
call fcn.00404440
add esp, 0xc
lea eax, [ebp - 0x10c]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0x10], eax
cmp eax, 0xffffffff
jne 0x45fb0a
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a034d
mov esp, ebp
pop ebp
ret 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [0x4b46ec]
mov esi, eax
lea eax, [ebp - 0x20c]
push str._d_InOutGRSMap.dat
push eax
call fcn.00404440
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push esi
push 0
push 4
push 0
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [edi + 0x14], eax
test eax, eax
jne 0x45fb65
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a034d
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push 0
push 0
push 0
push 6
push eax
call ebx
mov dword [edi + 0x18], eax
test eax, eax
jne 0x45fb95
mov eax, 3
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a034d
mov esp, ebp
pop ebp
ret 4
cmp dword [edi + 0x240], 0
je 0x45fc7f
push 0x7c1d48
lea eax, [ebp - 0x10c]
push str._sPipeLineMap.dat
push eax
call fcn.00404440
add esp, 0xc
lea eax, [ebp - 0x10c]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0x1c], eax
cmp eax, 0xffffffff
jne 0x45fbfa
mov eax, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a034d
mov esp, ebp
pop ebp
ret 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [0x4b46ec]
mov esi, eax
lea eax, [ebp - 0x20c]
push str._d_PipeLineMap.dat
push eax
call fcn.00404440
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push esi
push 0
push 4
push 0
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [edi + 0x20], eax
test eax, eax
jne 0x45fc55
mov eax, 5
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a034d
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 0
push 6
push eax
call ebx
mov dword [edi + 0x24], eax
test eax, eax
jne 0x45fc7f
mov eax, 6
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a034d
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x7c1e58]
test eax, eax
jne 0x45fcec
cmp dword [edi + 0x244], eax
jne 0x45fd04
push 0x7c1d48
lea eax, [ebp - 0x10c]
push str._sControlActions.dat
push eax
call fcn.00404440
add esp, 0xc
lea eax, [ebp - 0x10c]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0x34], eax
cmp eax, 0xffffffff
jne 0x45fde5
mov eax, 0xa
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a034d
mov esp, ebp
pop ebp
ret 4
cmp eax, 1
jne 0x45fc90
mov eax, dword [edi + 0xf8]
sub eax, dword [edi + 0xf4]
sar eax, 2
test eax, eax
je 0x45fc90
push 0x7c1d48
lea eax, [ebp - 0x10c]
push str._sCompressorShopMap.dat
push eax
call fcn.00404440
add esp, 0xc
lea eax, [ebp - 0x10c]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0x28], eax
cmp eax, 0xffffffff
jne 0x45fd5c
mov eax, 7
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a034d
mov esp, ebp
pop ebp
ret 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [0x4b46ec]
mov esi, eax
lea eax, [ebp - 0x20c]
push str._d_CompressorShopMap.dat
push eax
call fcn.00404440
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push esi
push 0
push 4
push 0
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [edi + 0x2c], eax
test eax, eax
jne 0x45fdb7
mov eax, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a034d
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 0
push 6
push eax
call ebx
mov dword [edi + 0x30], eax
test eax, eax
jne 0x45fc90
mov eax, 9
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a034d
mov esp, ebp
pop ebp
ret 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [0x4b46ec]
mov esi, eax
lea eax, [ebp - 0x20c]
push str._d_ControlActions.dat
push eax
call fcn.00404440
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push esi
push 0
push 4
push 0
push dword [edi + 0x34]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [edi + 0x38], eax
test eax, eax
jne 0x45fe40
mov eax, 0xb
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a034d
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 0
push 6
push eax
call ebx
mov dword [edi + 0x3c], eax
test eax, eax
jne 0x45fef2
mov eax, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a034d
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x45fe7e
push eax
call ebx
mov eax, dword [edi + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x45fe8e
push eax
call esi
mov eax, dword [edi + 0x10]
test eax, eax
je 0x45fe98
push eax
call esi
mov eax, dword [edi + 0x24]
test eax, eax
je 0x45fea2
push eax
call ebx
mov eax, dword [edi + 0x20]
test eax, eax
je 0x45feac
push eax
call esi
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x45feb6
push eax
call esi
mov eax, dword [edi + 0x30]
test eax, eax
je 0x45fec0
push eax
call ebx
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x45feca
push eax
call esi
mov eax, dword [edi + 0x28]
test eax, eax
je 0x45fed4
push eax
call esi
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x45fede
push eax
call ebx
mov eax, dword [edi + 0x38]
test eax, eax
je 0x45fee8
push eax
call esi
mov eax, dword [edi + 0x34]
test eax, eax
je 0x45fef2
push eax
call esi
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a034d
mov esp, ebp
pop ebp
ret 4