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

Disassembly:
push 0xffffffffffffffff
push 0x504657
mov eax, dword fs:[0]
push eax
sub esp, 0x4c8
mov eax, dword [0x5355a0]
xor eax, esp
mov dword [esp + 0x4c0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5355a0]
xor eax, esp
push eax
lea eax, [esp + 0x4dc]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4ec]
xor ebx, ebx
mov byte [esp + 0x20], bl
mov dword [esp + 0x1c], ebx
lea edi, [esp + 0x294]
mov dword [esp + 0x4e4], ebx
call fcn.004023f0
lea esi, [esp + 0x1c]
mov byte [esp + 0x4e4], 1
call fcn.0040d340
lea eax, [esp + 0x298]
cmp byte [esp + 0x3a6], bl
jne 0x40fc47
mov eax, dword [esp + 0x3a0]
push ebx
push ebx
push ebx
push str.DeleteCellList.ini
push str.ComponentsPicfaceTipListIni
add eax, 4
push eax
lea ecx, [esp + 0x184]
call fcn.00431ac0
lea ecx, [esp + 0x44]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], fcn.004c328d
mov dword [esp + 0x38], fcn.004c53b2
mov dword [esp + 0x3c], fcn.004c31b0
call fcn.004349d0
mov dword [esp + 0x40], ebx
mov byte [esp + 0x4e4], 3
lea eax, [esp + 0x178]
cmp byte [esp + 0x288], bl
jne 0x40fcb8
mov eax, dword [esp + 0x174]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40fe57
shr eax, 4
not al
and al, 1
je 0x40fe57
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x170]
lea ebx, [esp + 0x28]
call fcn.0042a470
test al, al
jne 0x40fd9b
lea ecx, [esp + 0x16c]
call fcn.004326d0
mov byte [esp + 0x4e4], 2
cmp byte [esp + 0x160], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x44], esi
jne 0x40fd31
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x50]
cmp eax, ecx
je 0x40fd31
push eax
call fcn.004c31b0
add esp, 4
lea edi, [esp + 0x24]
call fcn.0042a6b0
cmp byte [esp + 0x288], 0
mov dword [esp + 0x16c], esi
jne 0x40fd66
mov eax, dword [esp + 0x174]
lea edx, [esp + 0x178]
cmp eax, edx
je 0x40fd66
push eax
call fcn.004c31b0
add esp, 4
cmp byte [esp + 0x3a6], 0
jne 0x40fd8b
mov eax, dword [esp + 0x3a0]
lea ecx, [esp + 0x298]
cmp eax, ecx
je 0x40fd8b
push eax
call fcn.004c31b0
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.00433d50
xor al, al
jmp 0x40fee9
add ebp, 0x7c0
mov edi, ebp
call fcn.004109b0
xor esi, esi
cmp dword [esp + 0x40], esi
jle 0x40fe55
xor edi, edi
mov bl, 4
jmp 0x40fdc0
lea ecx, [esp + 0x3ac]
call fcn.004349d0
mov byte [esp + 0x4e4], bl
test esi, esi
jl 0x40fe05
cmp esi, dword [esp + 0x40]
jge 0x40fe05
mov edx, dword [esp + 0x24]
cmp byte [edi + edx + 0x11c], 0
lea eax, [edi + edx + 8]
je 0x40fdf4
add eax, 4
jmp 0x40fdf6
mov eax, dword [eax]
add eax, 4
lea edx, [esp + 0x3ac]
call fcn.00434c20
lea eax, [esp + 0x3ac]
push eax
mov eax, ebp
call fcn.00410940
cmp byte [esp + 0x4c8], 0
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
jne 0x40fe44
mov eax, dword [esp + 0x3b4]
lea ecx, [esp + 0x3b8]
cmp eax, ecx
je 0x40fe44
push eax
call fcn.004c31b0
add esp, 4
inc esi
add edi, 0x124
cmp esi, dword [esp + 0x40]
jl 0x40fdc0
xor ebx, ebx
mov byte [esp + 0x4e4], 2
mov esi, vtable.t_str.0
mov dword [esp + 0x44], esi
cmp byte [esp + 0x160], bl
jne 0x40fe86
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x50]
cmp eax, edx
je 0x40fe86
push eax
call fcn.004c31b0
add esp, 4
lea edi, [esp + 0x24]
call fcn.0042a6b0
mov dword [esp + 0x16c], esi
cmp byte [esp + 0x288], bl
jne 0x40feba
mov eax, dword [esp + 0x174]
lea ecx, [esp + 0x178]
cmp eax, ecx
je 0x40feba
push eax
call fcn.004c31b0
add esp, 4
cmp byte [esp + 0x3a6], bl
jne 0x40fede
mov eax, dword [esp + 0x3a0]
lea edx, [esp + 0x298]
cmp eax, edx
je 0x40fede
push eax
call fcn.004c31b0
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.00433d50
mov al, 1
mov ecx, dword [esp + 0x4dc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c0]
xor ecx, esp
call fcn.004c31a1
add esp, 0x4d4
ret 4