Function at 0x44d7a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524d20
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x552064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [0x56453c]
mov ecx, edi
mov edx, dword [0x564538]
sub ecx, edx
sar ecx, 2
cmp ecx, 1
jbe 0x44d7f0
lea eax, [edx + 4]
mov dword [0x56453c], eax
jmp 0x44d834
jae 0x44d834
mov eax, dword [0x564540]
sub eax, edx
sar eax, 2
cmp eax, 1
jae 0x44d810
push ecx
push 1
mov ecx, 0x564538
call fcn.00435310
jmp 0x44d834
lea eax, [ecx*4]
mov esi, edi
sub esi, eax
add esi, 4
mov eax, esi
sub eax, edi
push eax
push 0
push edi
call fcn.004fdf60
add esp, 0xc
mov dword [0x56453c], esi
mov edi, dword [0x564548]
mov ecx, edi
mov edx, dword [0x564544]
sub ecx, edx
cmp ecx, 1
jbe 0x44d853
lea eax, [edx + 1]
mov dword [0x564548], eax
jmp 0x44d88f
jae 0x44d88f
mov eax, dword [0x56454c]
sub eax, edx
cmp eax, 1
jae 0x44d870
push ecx
push 1
mov ecx, 0x564544
call fcn.00414600
jmp 0x44d88f
mov esi, 1
sub esi, ecx
add esi, edi
mov eax, esi
sub eax, edi
push eax
push 0
push edi
call fcn.004fdf60
add esp, 0xc
mov dword [0x564548], esi
mov edi, dword [0x564554]
mov ecx, edi
mov edx, dword [0x564550]
sub ecx, edx
sar ecx, 2
cmp ecx, 1
jbe 0x44d8b1
lea eax, [edx + 4]
mov dword [0x564554], eax
jmp 0x44d8f5
jae 0x44d8f5
mov eax, dword [0x564558]
sub eax, edx
sar eax, 2
cmp eax, 1
jae 0x44d8d1
push ecx
push 1
mov ecx, 0x564550
call fcn.00435310
jmp 0x44d8f5
lea eax, [ecx*4]
mov esi, edi
sub esi, eax
add esi, 4
mov eax, esi
sub eax, edi
push eax
push 0
push edi
call fcn.004fdf60
add esp, 0xc
mov dword [0x564554], esi
mov ebx, dword [0x563dac]
test ebx, ebx
jne 0x44d9e8
mov esi, 9
xor edi, edi
mov dword [ebp - 0xd4], esi
lea ecx, [esi + 0xc]
and ecx, 0xfffffffc
call fcn.004a2590
mov byte [eax + 8], 0
mov dword [eax + 4], esi
lea esi, [eax + 8]
mov dword [eax], 1
mov eax, dword [ebp - 0xd4]
mov byte [esi + eax], 0
push edi
push ebx
push esi
call fcn.004fe1f0
add esp, 0xc
lea eax, [esi + edi]
push 9
push str._Save.lgs
push eax
call fcn.004fe1f0
add esp, 0xc
mov dword [ebp - 0xd4], esi
test esi, esi
je 0x44dcad
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x44dc92
test al, 0x10
jne 0x44dc92
push 0xb8
lea eax, [ebp - 0xd0]
push 0
push eax
call fcn.004fdf60
add esp, 4
lea ecx, [ebp - 0xd0]
push 0x20
push esi
call fcn.00429440
lea ecx, [ebp - 0xd0]
mov dword [ebp - 4], 0
call fcn.004a2130
mov edi, eax
test edi, edi
jg 0x44da03
mov eax, dword [esi - 8]
add esi, 0xfffffff8
cmp eax, 0xffffffff
je case.0x44dad2.0
dec eax
mov dword [esi], eax
test eax, eax
jg case.0x44dad2.0
push esi
call fcn.00501c9e
add esp, 4
lea ecx, [ebp - 0xd0]
call fcn.00425e40
jmp 0x44dcad
mov edi, dword [ebx - 4]
lea esi, [edi + 9]
mov dword [ebp - 0xd4], esi
test esi, esi
jg 0x44d910
xor esi, esi
jmp 0x44d935
lea edx, [ebp - 0xd4]
mov ecx, edi
call fcn.004964f0
mov eax, edi
lea ecx, [ebp - 0xd0]
mov edi, dword [ebp - 0xd4]
cdq
push edx
push eax
push edi
call fcn.004323a0
test edi, edi
je case.0x44dad2.0
cmp dword [edi - 4], 0xd
jne 0x44da5c
mov ecx, edi
mov edx, str.LcfGlobalSave
mov esi, 9
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x44da5c
add ecx, 4
add edx, 4
sub esi, 4
jae 0x44da41
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x44da5c
mov bl, 1
jmp 0x44da5e
xor bl, bl
mov eax, dword [edi - 8]
lea ecx, [edi - 8]
cmp eax, 0xffffffff
je 0x44da79
dec eax
mov dword [ecx], eax
test eax, eax
jg 0x44da79
push ecx
call fcn.00501c9e
add esp, 4
test bl, bl
je case.0x44dad2.0
mov eax, dword [ebp - 0xd0]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xc4], 1
jne case.0x44dad2.0
xor esi, esi
nop word [eax + eax]
push 0
push 1
lea eax, [ebp - 0x11]
mov byte [ebp - 0x11], 0
push eax
lea ecx, [ebp - 0xd0]
call fcn.004323a0
mov cl, byte [ebp - 0x11]
movsx eax, cl
and eax, 0x7f
shl esi, 7
add esi, eax
test cl, cl
js 0x44daa0
cmp esi, 3
ja case.default.0x44dad2
jmp dword [esi*4 + 0x44dccc]
xor esi, esi
nop dword [eax + eax]
push 0
push 1
lea eax, [ebp - 0x11]
mov byte [ebp - 0x11], 0
push eax
lea ecx, [ebp - 0xd0]
call fcn.004323a0
mov cl, byte [ebp - 0x11]
movsx eax, cl
and eax, 0x7f
shl esi, 7
add esi, eax
test cl, cl
js 0x44dae0
test esi, esi
jle 0x44dc6e
mov ebx, dword [0x564548]
lea edi, [esi + 1]
mov ecx, dword [0x564544]
mov edx, ebx
sub edx, ecx
cmp edi, edx
jae 0x44db32
lea eax, [edi + ecx]
mov dword [0x564548], eax
jmp 0x44db6a
jbe 0x44db6a
mov eax, dword [0x56454c]
sub eax, ecx
cmp edi, eax
jbe 0x44db4d
push ecx
push edi
mov ecx, 0x564544
call fcn.00414600
jmp 0x44db64
sub edi, edx
push edi
push 0
push ebx
call fcn.004fdf60
lea ecx, [edi + ebx]
add esp, 0xc
mov dword [0x564548], ecx
mov ecx, dword [0x564544]
mov eax, esi
cdq
push edx
push eax
lea eax, [ecx + 1]
push eax
lea ecx, [ebp - 0xd0]
call fcn.004323a0
jmp 0x44dc6e
xor esi, esi
push 0
push 1
lea eax, [ebp - 0x11]
mov byte [ebp - 0x11], 0
push eax
lea ecx, [ebp - 0xd0]
call fcn.004323a0
mov cl, byte [ebp - 0x11]
movsx eax, cl
and eax, 0x7f
shl esi, 7
add esi, eax
test cl, cl
js 0x44db85
and esi, 0xfffffffc
mov eax, esi
cdq
and edx, 3
add eax, edx
sar eax, 2
test eax, eax
jle 0x44dc6e
lea ecx, [eax + 1]
push ecx
mov ecx, 0x564550
call fcn.004519a0
mov eax, esi
lea ecx, [ebp - 0xd0]
cdq
push edx
push eax
mov eax, dword [0x564550]
add eax, 4
push eax
call fcn.004323a0
jmp 0x44dc6e
xor esi, esi
push 0
push 1
lea eax, [ebp - 0x11]
mov byte [ebp - 0x11], 0
push eax
lea ecx, [ebp - 0xd0]
call fcn.004323a0
mov cl, byte [ebp - 0x11]
movsx eax, cl
and eax, 0x7f
shl esi, 7
add esi, eax
test cl, cl
js 0x44dbf2
push esi
mov edx, 0x564538
lea ecx, [ebp - 0xd0]
call fcn.00492670
add esp, 4
jmp 0x44dc6e
xor esi, esi
push 0
push 1
lea eax, [ebp - 0x11]
mov byte [ebp - 0x11], 0
push eax
lea ecx, [ebp - 0xd0]
call fcn.004323a0
mov dl, byte [ebp - 0x11]
movsx ecx, dl
and ecx, 0x7f
shl esi, 7
add esi, ecx
test dl, dl
js 0x44dc33
push 1
mov eax, esi
lea ecx, [ebp - 0xd0]
cdq
push edx
push eax
call fcn.00436320
mov eax, dword [ebp - 0xd0]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xc4], 1
je 0x44da98
lea ecx, [ebp - 0xd0]
call fcn.00425e40
jmp 0x44dcad
mov eax, dword [esi - 8]
add esi, 0xfffffff8
cmp eax, 0xffffffff
je 0x44dcad
dec eax
mov dword [esi], eax
test eax, eax
jg 0x44dcad
push esi
call fcn.00501c9e
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e66f2
mov esp, ebp
pop ebp
ret