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

Disassembly:
push 0xffffffffffffffff
push 0x1009ef49
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebp
push esi
push edi
mov eax, dword [0x100d8dd0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, ecx
xor edi, edi
push edi
mov dword [esp + 0x18], edi
call fcn.10058060
test al, al
jne 0x1005a28a
mov eax, dword [ebp]
mov ecx, dword [eax - 0xc]
cmp ecx, 3
jl 0x1005a0e1
cmp ecx, edi
jge 0x1005a0a0
push edi
push 0x1fb
push str.c:dvsp4_build_sw_toolswin32msvc90VC_atlmfcinclude_atlsimpstr.h
push 0x80070057
call fcn.10001ed0
cmp ecx, 1
movzx esi, word [eax]
jl 0x1005a08b
cmp ecx, 2
movzx edx, word [eax + 2]
jl 0x1005a08b
movzx eax, word [eax + 4]
cmp dx, 0x3a
jne 0x1005a0e1
cmp ax, 0x5c
je 0x1005a0c7
cmp ax, 0x2f
jne 0x1005a0e1
lea eax, [esi - 0x41]
cmp ax, 0x19
jbe 0x1005a28a
add esi, 0xffffff9f
cmp si, 0x19
jbe 0x1005a28a
lea ecx, [esp + 0x10]
call fcn.1001a820
mov dword [esp + 0x24], 1
mov esi, dword [esp + 0x30]
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
cmp eax, 0xffffffff
jne 0x1005a11f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1005a14e
cmp eax, 3
je 0x1005a14e
push 0
push 0
call fcn.100167a0
mov eax, dword [esi]
push eax
call edi
cmp eax, 0xffffffff
jne 0x1005a132
push 0
push 0
call fcn.100167a0
shr eax, 4
not al
and al, 1
je 0x1005a14e
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call fcn.10058f30
mov byte [esp + 0x24], 2
jmp 0x1005a174
mov edx, dword [esi]
cmp dword [edx - 0xc], 0
je 0x1005a162
push esi
lea ecx, [esp + 0x14]
call fcn.1001a720
jmp 0x1005a18c
lea eax, [esp + 0x30]
push eax
call fcn.100579f0
add esp, 4
mov byte [esp + 0x24], 3
push eax
lea ecx, [esp + 0x14]
call fcn.1001a720
mov byte [esp + 0x24], 1
lea ecx, [esp + 0x30]
call fcn.1001a900
mov eax, dword [ebp]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jne 0x1005a1c1
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.10019960
mov dword [esp + 0x14], 1
mov byte [esp + 0x24], 0
lea ecx, [esp + 0x10]
call fcn.1001a900
jmp 0x1005a2a2
jge 0x1005a1ca
push 0
jmp 0x1005a08c
movzx eax, word [eax]
cmp ax, 0x5c
je 0x1005a1d9
cmp ax, 0x2f
jne 0x1005a240
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x14]
call fcn.10058db0
mov byte [esp + 0x24], 4
push ebp
push eax
lea eax, [esp + 0x38]
push eax
call fcn.100582e0
add esp, 0xc
mov byte [esp + 0x24], 5
mov esi, dword [esp + 0x2c]
push eax
mov ecx, esi
call fcn.100154e0
mov dword [esp + 0x14], 1
mov byte [esp + 0x24], 4
lea ecx, [esp + 0x30]
call fcn.10001df0
mov byte [esp + 0x24], 1
lea ecx, [esp + 0x18]
call fcn.1001a900
mov byte [esp + 0x24], 0
lea ecx, [esp + 0x10]
call fcn.1001a900
jmp 0x1005a2a2
push ebp
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.100582e0
add esp, 0xc
mov byte [esp + 0x24], 6
mov esi, dword [esp + 0x2c]
push eax
mov ecx, esi
call fcn.100154e0
mov dword [esp + 0x14], 1
mov byte [esp + 0x24], 1
lea ecx, [esp + 0x30]
call fcn.10001df0
mov byte [esp + 0x24], 0
lea ecx, [esp + 0x10]
call fcn.1001a900
jmp 0x1005a2a2
mov esi, dword [esp + 0x2c]
push ebp
mov ecx, esi
call fcn.10019960
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], 1
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret 8