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

Disassembly:
push 0xffffffffffffffff
push 0x50eb37
mov eax, dword fs:[0]
push eax
sub esp, 0x4c8
mov eax, dword [0x5405a0]
xor eax, esp
mov dword [esp + 0x4c0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5405a0]
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.004023c0
lea esi, [esp + 0x1c]
mov byte [esp + 0x4e4], 1
call fcn.0040f2f0
lea eax, [esp + 0x298]
cmp byte [esp + 0x3a6], bl
jne 0x4121d7
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.00436ef0
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.004ccfcd
mov dword [esp + 0x38], fcn.004cf168
mov dword [esp + 0x3c], fcn.004ccef0
call fcn.0043a090
mov dword [esp + 0x40], ebx
mov byte [esp + 0x4e4], 3
lea eax, [esp + 0x178]
cmp byte [esp + 0x288], bl
jne 0x412248
mov eax, dword [esp + 0x174]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4123ea
shr eax, 4
not al
and al, 1
je 0x4123ea
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x170]
lea ebx, [esp + 0x28]
call fcn.0042e870
test al, al
jne 0x412336
lea ecx, [esp + 0x16c]
call fcn.00437b00
mov byte [esp + 0x4e4], 2
cmp byte [esp + 0x160], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x44], esi
jne 0x4122c1
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x50]
cmp eax, ecx
je 0x4122c1
push eax
call fcn.004ccef0
add esp, 4
lea edi, [esp + 0x24]
call fcn.0042eb90
cmp byte [esp + 0x288], 0
mov dword [esp + 0x16c], esi
jne 0x4122f6
mov eax, dword [esp + 0x174]
lea edx, [esp + 0x178]
cmp eax, edx
je 0x4122f6
push eax
call fcn.004ccef0
add esp, 4
cmp byte [esp + 0x3a6], 0
jne 0x41231b
mov eax, dword [esp + 0x3a0]
lea ecx, [esp + 0x298]
cmp eax, ecx
je 0x41231b
push eax
call fcn.004ccef0
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x4e4], 0xffffffff
call fcn.004393f0
xor al, al
jmp 0x412487
add ebp, 0x364
mov edi, ebp
call fcn.004131d0
xor esi, esi
cmp dword [esp + 0x40], esi
jle 0x4123e8
xor edi, edi
mov bl, 4
lea ecx, [esp + 0x3ac]
call fcn.0043a090
mov byte [esp + 0x4e4], bl
test esi, esi
jl 0x412398
cmp esi, dword [esp + 0x40]
jge 0x412398
mov edx, dword [esp + 0x24]
cmp byte [edi + edx + 0x11c], 0
lea eax, [edi + edx + 8]
je 0x412387
add eax, 4
jmp 0x412389
mov eax, dword [eax]
add eax, 4
lea edx, [esp + 0x3ac]
call fcn.0043a2e0
lea eax, [esp + 0x3ac]
push eax
mov eax, ebp
call fcn.00413160
cmp byte [esp + 0x4c8], 0
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
jne 0x4123d7
mov eax, dword [esp + 0x3b4]
lea ecx, [esp + 0x3b8]
cmp eax, ecx
je 0x4123d7
push eax
call fcn.004ccef0
add esp, 4
inc esi
add edi, 0x124
cmp esi, dword [esp + 0x40]
jl 0x412353
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 0x412419
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x50]
cmp eax, edx
je 0x412419
push eax
call fcn.004ccef0
add esp, 4
lea edi, [esp + 0x24]
call fcn.0042eb90
mov dword [esp + 0x16c], esi
cmp byte [esp + 0x288], bl
jne 0x41244d
mov eax, dword [esp + 0x174]
lea ecx, [esp + 0x178]
cmp eax, ecx
je 0x41244d
push eax
call fcn.004ccef0
add esp, 4
cmp byte [esp + 0x3a6], bl
jne 0x412471
mov eax, dword [esp + 0x3a0]
lea edx, [esp + 0x298]
cmp eax, edx
je 0x412471
push eax
call fcn.004ccef0
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x4e4], 0xffffffff
call fcn.004393f0
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.004ccee1
add esp, 0x4d4
ret 4