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

Disassembly:
mov eax, 0x4c5298
call fcn.004bf97c
sub esp, 0x138
mov eax, dword [ebp + 8]
test eax, eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
je 0x4537af
cmp byte [eax], 0
je 0x4537af
push eax
lea edi, [ebp + 8]
call fcn.00402faf
and dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
test eax, eax
mov ebx, dword [ebp + 8]
jne 0x45371d
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push ebx
call edi
cmp eax, 0xffffffff
je 0x453632
test al, 0x10
jne 0x4537c7
mov esi, dword [sym.imp.MSVCRT.dll__mbsrchr]
push 0x2e
push ebx
call esi
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
je 0x45371a
push str..lnk
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x4536ac
and dword [ebp + 0xc], eax
push ebx
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00452c2d
test eax, eax
je 0x45369b
push 2
push 0x104
lea eax, [ebp - 0x144]
push eax
xor ecx, ecx
lea eax, [ebp + 0xc]
call fcn.00452ca7
test eax, eax
je 0x45369b
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp + 8]
call fcn.0040305d
mov ebx, dword [ebp + 8]
push ebx
call edi
cmp eax, 0xffffffff
jne 0x453673
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x453632
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0x4c91aa
lea edi, [ebp + 0xc]
call fcn.00402faf
push 0
push 0xfffffffffffffffe
push dword [ebp - 0x10]
mov edx, edi
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.0045336f
mov esi, eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x453781
push eax
call fcn.00401377
jmp 0x453781
test al, 0x10
je 0x453691
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4537c7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4537c7
push 0x2e
push ebx
call esi
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4536ac
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x45371a
lea ecx, [ebp + 0xc]
push 0
push ecx
call fcn.00401809
mov esi, dword [ebp + 0xc]
push str..cue
push esi
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 0x10
test eax, eax
jne 0x4536e7
lea eax, [esi - 0xc]
cmp eax, dword [0x4e4154]
je 0x45373c
push eax
call fcn.00401377
jmp 0x45373c
push esi
mov eax, 0x4e6330
call fcn.004a2eb8
test eax, eax
je 0x453709
lea eax, [esi - 0xc]
cmp eax, dword [0x4e4154]
je 0x453751
push eax
call fcn.00401377
jmp 0x453751
add esi, 0xfffffff4
cmp esi, dword [0x4e4154]
je 0x45371a
push esi
call fcn.00401377
xor eax, eax
inc eax
cmp eax, 2
je 0x453632
cmp eax, 1
je 0x453632
test eax, eax
je 0x453632
cmp eax, 3
jne 0x45374c
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x10]
call fcn.004533da
mov esi, eax
jmp 0x453781
cmp eax, 4
jne 0x4537c2
push 0
lea eax, [ebp - 0x40]
call fcn.0040411b
push ebx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.004542f8
test eax, eax
je 0x453796
push dword [ebp - 0x10]
lea esi, [ebp - 0x40]
call fcn.00458108
mov esi, eax
lea eax, [ebp - 0x40]
call fcn.00404156
lea eax, [ebx - 0xc]
cmp eax, dword [0x4e4154]
je 0x453792
push eax
call fcn.00401377
mov eax, esi
jmp 0x4537b1
lea eax, [ebp - 0x40]
call fcn.00404156
lea eax, [ebx - 0xc]
cmp eax, dword [0x4e4154]
je 0x4537af
push eax
call fcn.00401377
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
cmp eax, 5
jne 0x45379e
push dword [0x4e6280]
mov ecx, dword [ebp - 0x10]
push ebx
call fcn.004537ec
add ebx, 0xfffffff4
cmp ebx, dword [0x4e4154]
je 0x4537e7
push ebx
call fcn.00401377
xor eax, eax
inc eax
jmp 0x4537b1