Function at 0x4096cc
Capabilities:
Check if file exists

Disassembly:
push 0x240
mov eax, 0x50f54b
call fcn.004d0314
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 8]
mov ebx, 0x527fec
push ebx
push eax
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x234], edi
call fcn.004025b6
mov dword [ebp - 4], edi
xor eax, eax
push 0x206
mov word [ebp - 0x21c], ax
xor esi, esi
lea eax, [ebp - 0x21a]
push edi
inc esi
push eax
mov dword [ebp - 0x234], esi
call fcn.004ce6f0
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
call fcn.0040df3e
mov dword [ebp - 4], esi
lea esi, [ebp - 0x22c]
call fcn.0040d18b
mov byte [ebp - 4], 2
push dword [eax]
lea eax, [ebp - 0x220]
push eax
call fcn.004022e5
mov byte [ebp - 4], 3
lea eax, [ebp - 0x220]
lea edi, [ebp - 0x228]
call fcn.00403a2e
mov byte [ebp - 4], 2
lea eax, [ebp - 0x220]
push eax
call fcn.004025f7
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.004028da
push 0x52b71c
mov eax, edi
call fcn.0040d65b
push dword [ebp - 0x228]
call dword [0x51a4b0]
test eax, eax
je 0x40999a
push dword [ebp - 0x228]
lea eax, [ebp - 0x21c]
push 0x104
push eax
push ebx
push str.UserPsw
push str.FamilialAffection
call dword [0x51a3d8]
mov esi, dword [ebp - 0x230]
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.0040283d
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x40999a
and dword [ebp - 0x220], 0
mov byte [ebp - 4], 4
mov ebx, dword [esi]
test ebx, ebx
jne 0x4097fb
xor esi, esi
jmp 0x40987e
push ebx
call dword [0x51a3cc]
mov edi, eax
inc edi
xor esi, esi
push esi
mov eax, edi
cdq
push 2
push edx
push eax
mov dword [ebp - 0x22c], edi
call fcn.004d5390
cmp edx, esi
jg 0x40983e
jl 0x409827
cmp eax, 0x7fffffff
ja 0x40983e
push edx
push eax
lea ecx, [ebp - 0x22c]
call fcn.0040e152
mov edi, dword [ebp - 0x22c]
pop ecx
pop ecx
jmp 0x409843
mov eax, 0x80070057
cmp eax, esi
jl 0x40987e
cmp edi, 0x400
jg 0x409865
push edi
call fcn.0040e0aa
pop ecx
test al, al
je 0x409865
mov eax, edi
call fcn.004dd0c0
mov eax, esp
jmp 0x409871
push edi
lea esi, [ebp - 0x220]
call fcn.0040e067
push 3
push edi
push ebx
mov esi, eax
call fcn.0040e007
mov esi, eax
lea eax, [ebp - 0x24c]
push eax
call fcn.0040905d
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x230]
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
lea ecx, [ebp - 0x24c]
push ecx
mov ecx, esi
call fcn.0040e2be
pop ecx
lea eax, [ebp - 0x221]
push eax
lea eax, [ebp - 0x24c]
mov byte [ebp - 0x221], 0
call fcn.004095e1
lea eax, [ebp - 0x24c]
call fcn.004096ad
mov ebx, eax
test ebx, ebx
je 0x40991d
push ebx
call dword [0x51a348]
mov edi, eax
inc edi
push 0
mov eax, edi
cdq
push 2
push edx
push eax
mov dword [ebp - 0x22c], edi
call fcn.004d5390
test edx, edx
jg 0x409914
jl 0x4098fd
cmp eax, 0x7fffffff
ja 0x409914
push edx
push eax
lea ecx, [ebp - 0x22c]
call fcn.0040e152
mov edi, dword [ebp - 0x22c]
pop ecx
pop ecx
jmp 0x409919
mov eax, 0x80070057
test eax, eax
jge 0x409921
xor eax, eax
jmp 0x409958
cmp edi, 0x400
jg 0x40993f
push edi
call fcn.0040e0aa
pop ecx
test al, al
je 0x40993f
mov eax, edi
call fcn.004dd0c0
mov eax, esp
jmp 0x40994b
push edi
lea esi, [ebp - 0x220]
call fcn.0040e067
push 3
shr edi, 1
push edi
push ebx
mov esi, eax
call fcn.0040e11f
push eax
push dword [ebp - 0x230]
call fcn.0040283d
mov byte [ebp - 4], 4
lea eax, [ebp - 0x24c]
push eax
call fcn.004090dc
mov byte [ebp - 4], 1
cmp dword [ebp - 0x220], 0
je 0x40999a
mov eax, dword [ebp - 0x220]
mov esi, dword [eax]
push eax
mov dword [ebp - 0x220], esi
call fcn.004cad3f
pop ecx
test esi, esi
jne 0x409981
mov byte [ebp - 4], 0
lea eax, [ebp - 0x228]
push eax
call fcn.004025f7
mov eax, dword [ebp - 0x230]
lea esp, [ebp - 0x25c]
call fcn.004d0397
ret