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

Disassembly:
push 0xffffffffffffffff
push 0x507137
mov eax, dword fs:[0]
push eax
sub esp, 0x4c8
mov eax, dword [0x5375a0]
xor eax, esp
mov dword [esp + 0x4c0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5375a0]
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.0040f500
lea eax, [esp + 0x298]
cmp byte [esp + 0x3a6], bl
jne 0x4124c7
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.00435960
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.004c61e0
mov dword [esp + 0x38], fcn.004c83aa
mov dword [esp + 0x3c], fcn.004c6103
call fcn.00438ae0
mov dword [esp + 0x40], ebx
mov byte [esp + 0x4e4], 3
lea eax, [esp + 0x178]
cmp byte [esp + 0x288], bl
jne 0x412538
mov eax, dword [esp + 0x174]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4126d7
shr eax, 4
not al
and al, 1
je 0x4126d7
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x170]
lea ebx, [esp + 0x28]
call fcn.0042e040
test al, al
jne 0x41261b
lea ecx, [esp + 0x16c]
call fcn.00436570
mov byte [esp + 0x4e4], 2
cmp byte [esp + 0x160], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x44], esi
jne 0x4125b1
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x50]
cmp eax, ecx
je 0x4125b1
push eax
call fcn.004c6103
add esp, 4
lea edi, [esp + 0x24]
call fcn.0042e360
cmp byte [esp + 0x288], 0
mov dword [esp + 0x16c], esi
jne 0x4125e6
mov eax, dword [esp + 0x174]
lea edx, [esp + 0x178]
cmp eax, edx
je 0x4125e6
push eax
call fcn.004c6103
add esp, 4
cmp byte [esp + 0x3a6], 0
jne 0x41260b
mov eax, dword [esp + 0x3a0]
lea ecx, [esp + 0x298]
cmp eax, ecx
je 0x41260b
push eax
call fcn.004c6103
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.00437e60
xor al, al
jmp 0x412769
add ebp, 0x7c4
mov edi, ebp
call fcn.00413440
xor esi, esi
cmp dword [esp + 0x40], esi
jle 0x4126d5
xor edi, edi
mov bl, 4
jmp 0x412640
lea ecx, [esp + 0x3ac]
call fcn.00438ae0
mov byte [esp + 0x4e4], bl
test esi, esi
jl 0x412685
cmp esi, dword [esp + 0x40]
jge 0x412685
mov edx, dword [esp + 0x24]
cmp byte [edi + edx + 0x11c], 0
lea eax, [edi + edx + 8]
je 0x412674
add eax, 4
jmp 0x412676
mov eax, dword [eax]
add eax, 4
lea edx, [esp + 0x3ac]
call fcn.00438d30
lea eax, [esp + 0x3ac]
push eax
mov eax, ebp
call fcn.004133d0
cmp byte [esp + 0x4c8], 0
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
jne 0x4126c4
mov eax, dword [esp + 0x3b4]
lea ecx, [esp + 0x3b8]
cmp eax, ecx
je 0x4126c4
push eax
call fcn.004c6103
add esp, 4
inc esi
add edi, 0x124
cmp esi, dword [esp + 0x40]
jl 0x412640
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 0x412706
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x50]
cmp eax, edx
je 0x412706
push eax
call fcn.004c6103
add esp, 4
lea edi, [esp + 0x24]
call fcn.0042e360
mov dword [esp + 0x16c], esi
cmp byte [esp + 0x288], bl
jne 0x41273a
mov eax, dword [esp + 0x174]
lea ecx, [esp + 0x178]
cmp eax, ecx
je 0x41273a
push eax
call fcn.004c6103
add esp, 4
cmp byte [esp + 0x3a6], bl
jne 0x41275e
mov eax, dword [esp + 0x3a0]
lea edx, [esp + 0x298]
cmp eax, edx
je 0x41275e
push eax
call fcn.004c6103
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.00437e60
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.004c60f4
add esp, 0x4d4
ret 4