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

Disassembly:
push 0xffffffffffffffff
push 0x50d447
mov eax, dword fs:[0]
push eax
sub esp, 0x4c8
mov eax, dword [0x53f5a0]
xor eax, esp
mov dword [esp + 0x4c0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53f5a0]
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.004023d0
lea esi, [esp + 0x1c]
mov byte [esp + 0x4e4], 1
call fcn.0040f8d0
lea eax, [esp + 0x298]
cmp byte [esp + 0x3a6], bl
jne 0x412887
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.00435dc0
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.004cc39d
mov dword [esp + 0x38], fcn.004ce4c2
mov dword [esp + 0x3c], fcn.004cc2c0
call fcn.00438f20
mov dword [esp + 0x40], ebx
mov byte [esp + 0x4e4], 3
lea eax, [esp + 0x178]
cmp byte [esp + 0x288], bl
jne 0x4128f8
mov eax, dword [esp + 0x174]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x412a97
shr eax, 4
not al
and al, 1
je 0x412a97
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x170]
lea ebx, [esp + 0x28]
call fcn.0042e2f0
test al, al
jne 0x4129db
lea ecx, [esp + 0x16c]
call fcn.004369b0
mov byte [esp + 0x4e4], 2
cmp byte [esp + 0x160], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x44], esi
jne 0x412971
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x50]
cmp eax, ecx
je 0x412971
push eax
call fcn.004cc2c0
add esp, 4
lea edi, [esp + 0x24]
call fcn.0042e610
cmp byte [esp + 0x288], 0
mov dword [esp + 0x16c], esi
jne 0x4129a6
mov eax, dword [esp + 0x174]
lea edx, [esp + 0x178]
cmp eax, edx
je 0x4129a6
push eax
call fcn.004cc2c0
add esp, 4
cmp byte [esp + 0x3a6], 0
jne 0x4129cb
mov eax, dword [esp + 0x3a0]
lea ecx, [esp + 0x298]
cmp eax, ecx
je 0x4129cb
push eax
call fcn.004cc2c0
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.004382a0
xor al, al
jmp 0x412b29
add ebp, 0x7c4
mov edi, ebp
call fcn.004135f0
xor esi, esi
cmp dword [esp + 0x40], esi
jle 0x412a95
xor edi, edi
mov bl, 4
jmp 0x412a00
lea ecx, [esp + 0x3ac]
call fcn.00438f20
mov byte [esp + 0x4e4], bl
test esi, esi
jl 0x412a45
cmp esi, dword [esp + 0x40]
jge 0x412a45
mov edx, dword [esp + 0x24]
cmp byte [edi + edx + 0x11c], 0
lea eax, [edi + edx + 8]
je 0x412a34
add eax, 4
jmp 0x412a36
mov eax, dword [eax]
add eax, 4
lea edx, [esp + 0x3ac]
call fcn.00439130
lea eax, [esp + 0x3ac]
push eax
mov eax, ebp
call fcn.00413580
cmp byte [esp + 0x4c8], 0
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
jne 0x412a84
mov eax, dword [esp + 0x3b4]
lea ecx, [esp + 0x3b8]
cmp eax, ecx
je 0x412a84
push eax
call fcn.004cc2c0
add esp, 4
inc esi
add edi, 0x124
cmp esi, dword [esp + 0x40]
jl 0x412a00
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 0x412ac6
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x50]
cmp eax, edx
je 0x412ac6
push eax
call fcn.004cc2c0
add esp, 4
lea edi, [esp + 0x24]
call fcn.0042e610
mov dword [esp + 0x16c], esi
cmp byte [esp + 0x288], bl
jne 0x412afa
mov eax, dword [esp + 0x174]
lea ecx, [esp + 0x178]
cmp eax, ecx
je 0x412afa
push eax
call fcn.004cc2c0
add esp, 4
cmp byte [esp + 0x3a6], bl
jne 0x412b1e
mov eax, dword [esp + 0x3a0]
lea edx, [esp + 0x298]
cmp eax, edx
je 0x412b1e
push eax
call fcn.004cc2c0
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.004382a0
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.004cc2b1
add esp, 0x4d4
ret 4