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

Disassembly:
mov eax, 0x4c5d4c
call fcn.004bf97c
sub esp, 0x144
push ebx
push esi
mov esi, ecx
test esi, esi
mov ebx, edx
je 0x442dd4
push dword [ebx + 0x28ec]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x442dd4
push edi
push dword [esi + 8]
lea edi, [ebp - 0x10]
call fcn.00402faf
and dword [ebp - 4], 0
mov esi, dword [esi]
test esi, esi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x1c], esi
jne 0x442c89
lea esi, [ebx + 0x3198]
cmp dword [esi], 0
je 0x442c89
call edi
mov ecx, dword [esi]
add ecx, 0x3e8
cmp eax, ecx
jae 0x442c89
mov dword [ebp - 0x1c], 1
call edi
xor esi, esi
mov dword [ebx + 0x3198], eax
cmp dword [0x4e6164], esi
je 0x442ca3
cmp dword [0x4e60d8], esi
jne 0x442cc6
cmp dword [0x4e5eac], esi
je 0x442cb9
push esi
push esi
lea eax, [ebx + 0x28e8]
push eax
call fcn.0045ee55
cmp dword [ebp - 0x1c], esi
jne 0x442cd1
cmp dword [0x4e5ea8], esi
je 0x442cd1
lea ecx, [ebx + 0x28e8]
call fcn.0045efef
mov eax, dword [ebx + 0x29d8]
add ebx, 0x28e8
cmp eax, esi
mov dword [ebp - 0x18], ebx
je 0x442ce9
mov eax, dword [eax + 4]
jmp 0x442ceb
xor eax, eax
mov edi, dword [ebp - 0x1c]
push dword [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
neg edi
sbb edi, edi
and edi, eax
call ebx
cmp eax, 0xffffffff
je 0x442da0
test al, 0x10
jne 0x442df9
mov esi, dword [sym.imp.MSVCRT.dll__mbsrchr]
push 0x2e
push dword [ebp - 0x10]
call esi
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x20], eax
je 0x442da0
push str..lnk
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x442e29
and dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
call fcn.00452c2d
test eax, eax
je 0x442e18
push 2
push 0x104
lea eax, [ebp - 0x150]
push eax
xor ecx, ecx
lea eax, [ebp - 0x14]
call fcn.00452ca7
test eax, eax
je 0x442e18
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x10]
call fcn.0040305d
push dword [ebp - 0x10]
call ebx
cmp eax, 0xffffffff
jne 0x442de4
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x442da0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push edi
push dword [ebp - 0x10]
mov edi, dword [ebp - 0x18]
call fcn.004602ec
mov edi, eax
cmp dword [ebp - 0x1c], 0
jne 0x442dbf
push 1
push edi
mov edi, dword [ebp - 0x18]
call fcn.0045f81d
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
pop edi
je 0x442dd4
push eax
call fcn.00401377
mov ecx, dword [ebp - 0xc]
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
leave
ret
test al, 0x10
je 0x442e0c
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x442df9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [0x4e6280]
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call fcn.004604c7
jmp 0x442dae
push 0x2e
push dword [ebp - 0x10]
call esi
pop ecx
pop ecx
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x442e29
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x442da0
xor ebx, ebx
lea ecx, [ebp - 0x20]
push ebx
push ecx
call fcn.00401809
mov esi, dword [ebp - 0x20]
push str..cue
push esi
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 0x10
test eax, eax
jne 0x442ea6
lea eax, [esi - 0xc]
cmp eax, dword [0x4e4154]
je 0x442e67
push eax
call fcn.00401377
push ebx
lea eax, [ebp - 0x4c]
call fcn.0040411b
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 2
call fcn.004533da
test eax, eax
je 0x442e95
mov ebx, dword [ebp - 0x18]
push 1
push 1
push edi
lea ecx, [ebp - 0x4c]
call fcn.0045fc9b
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 0
call fcn.00404156
jmp 0x442dae
push esi
mov eax, 0x4e6330
call fcn.004a2eb8
test eax, eax
lea eax, [esi - 0xc]
je 0x442ee0
cmp eax, dword [0x4e4154]
je 0x442ec6
push eax
call fcn.00401377
push ebx
lea eax, [ebp - 0x4c]
call fcn.0040411b
mov byte [ebp - 4], 3
push dword [ebp - 0x10]
lea ecx, [ebp - 0x4c]
call fcn.004542f8
jmp 0x442e81
cmp eax, dword [0x4e4154]
je 0x442da0
push eax
call fcn.00401377
jmp 0x442da0