Function at 0x11050400
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x118
push ebx
push ebp
push esi
push edi
call fcn.1107d9cb
mov edi, eax
mov esi, edx
call fcn.1107d9b2
push esi
push edi
push edx
push eax
call fcn.1109d850
push 0
push 0x3b9aca00
push ebx
push ecx
mov dword [esp + 0x24], eax
mov ebp, edx
call fcn.1107ec60
push esi
push edi
push edx
push eax
call fcn.1109d930
push 0
push 0x3b9aca00
push ebp
push dword [esp + 0x20]
mov esi, eax
mov edi, edx
call fcn.1107ec60
add esi, eax
mov dword [0x110d7210], esi
mov esi, dword [0x110e5128]
adc edi, edx
mov dword [0x110d7214], edi
mov edi, dword [0x110e5124]
cmp edi, esi
je 0x11050499
add edi, 0x24
lea esp, [esp]
mov ecx, dword [edi]
test ecx, ecx
je 0x1105068a
mov eax, dword [ecx]
call dword [eax + 8]
add edi, 0x28
lea eax, [edi - 0x24]
cmp eax, esi
jne 0x11050480
mov eax, dword [0x110c09f0]
push 0x110b7a00
mov ecx, dword [eax]
mov eax, dword [0x110e3e04]
inc eax
add eax, ecx
push eax
push dword [0x5193cc]
lea eax, [esp + 0x2c]
push str._s_savegame_slot_.2d_sfall_s.sav
push eax
call fcn.11011d70
add esp, 0x14
lea eax, [esp + 0x20]
push eax
push 0
push str.Loading_save_game:__s_n
call fcn.1100ff40
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
lea eax, [esp + 0x2c]
add esp, 0xc
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
cmp edi, 0xffffffff
je 0x110505ad
mov ecx, edi
call fcn.11034e70
test al, al
jne 0x11050636
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x14]
push 0
push eax
push 4
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push edi
call esi
mov ecx, dword [0x110c0b2c]
lea eax, [esp + 0x14]
cmp dword [esp + 0x18], 0xfffffff
push 0
cmovg ecx, dword [esp + 0x1c]
push eax
push 4
lea eax, [esp + 0x28]
mov dword [0x110c0b2c], ecx
push eax
push edi
call esi
mov eax, dword [esp + 0x1c]
shr eax, 0x10
cmp dword [esp + 0x14], 4
mov dword [0x110c694c], eax
jne 0x11050636
mov ecx, edi
call fcn.11059eb0
test al, al
je 0x11050636
mov ecx, edi
call fcn.110753b0
cmp eax, 0xffffffff
je 0x11050636
test eax, eax
jne 0x110505a8
mov ecx, edi
call fcn.11039f00
test al, al
jne 0x11050636
push edi
call ebx
jmp 0x110505bb
push 1
xor edx, edx
mov ecx, str.Cannot_open_sfallgv.sav___assuming_non_sfall_save.
call fcn.11011060
mov eax, dword [0x110c09f0]
push 0x110b8230
mov ecx, dword [eax]
mov eax, dword [0x110e3e04]
inc eax
add eax, ecx
push eax
push dword [0x5193cc]
lea eax, [esp + 0x2c]
push str._s_savegame_slot_.2d_sfall_s.sav
push eax
call fcn.11011d70
add esp, 0x14
xor edx, edx
mov ecx, str.Loading_data_from_sfalldb.sav...
push 1
call fcn.11011060
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea eax, [esp + 0x38]
push eax
call ebp
mov edi, eax
cmp edi, 0xffffffff
je 0x11050672
mov ecx, edi
call fcn.11032430
test al, al
jne 0x11050636
mov ecx, edi
call fcn.11020a60
test al, al
jne 0x11050636
push edi
call ebx
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call ebx
lea eax, [esp + 0x20]
push eax
push 0
push str.ERROR_reading_data:__s_n
call fcn.1100ff40
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push str._n_SFALL__ERROR_reading_data:__s
call fcn.11014530
xor eax, eax
add esp, 8
cmp byte [0x110c6683], al
sete al
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 1
xor edx, edx
mov ecx, str.Cannot_open_sfalldb.sav.
call fcn.11011060
pop edi
xor al, al
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.1107d041
int3