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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
test edi, edi
jne 0x55726c
pop edi
mov eax, 0x3ea
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
call fcn.004f36b0
add esp, 4
cmp eax, 2
jne 0x5572c8
cmp word [edi + 2], 0x3a
jne 0x5572c8
push 0x55747551
push edi
call fcn.004f36e0
add esp, 4
add eax, 4
push eax
call fcn.004f3590
mov esi, eax
add esp, 8
mov dword [ebp - 8], esi
test esi, esi
je 0x5572dd
push 0x5c
push edi
push str._s_c
push edi
call fcn.004f36e0
add esp, 4
add eax, 4
push eax
push esi
call fcn.004f3b60
add esp, 0x14
mov dword [ebp - 4], esi
jmp 0x5572ec
push dword [ebp + 0x10]
push edi
call fcn.004f3d00
mov esi, eax
mov dword [ebp - 8], eax
add esp, 8
test esi, esi
jne 0x5572e9
pop esi
pop edi
mov eax, 0xc
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], eax
push esi
call fcn.004f36e0
add eax, 4
push 0x59747551
push eax
mov dword [ebp - 0x10], eax
call fcn.004f3590
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x557317
push dword [ebp - 4]
lea esi, [eax + 0xc]
jmp 0x557580
push dword [ebp - 8]
push dword [ebp - 0x10]
push esi
call fcn.004f3880
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5573eb
xor edi, edi
push esi
call fcn.004f36b0
add esp, 4
cmp word [esi + eax*2 - 2], 0x3a
jne 0x557365
push 0x6ce50c
call fcn.004f36b0
push eax
push 0x6ce50c
push dword [ebp - 0x10]
push esi
call fcn.004f3920
add esp, 0x14
push 0
push 0
push esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov ebx, eax
mov dword [ebp - 0x10], eax
test ebx, ebx
jne 0x5574b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004f1a60
add esp, 4
mov ebx, eax
test byte [0x9538a8], 8
je 0x5573c8
push ebx
call fcn.004f1b00
push eax
push ebx
push ebx
push esi
push str.GetLongPathName___failed_for:_file__s:_err__d__0x_x_:__s
push 0x104
push str.E:_workspace_AC_CC_Windows_TACC_MASTER_master_src_solidifier_utl_utl_winnt_user.c
push str.utl_get_long_name_alloc
push dword [0x7d0568]
push 8
call fcn.004f21c0
add esp, 0x2c
push 0x57747551
push dword [ebp + 8]
call fcn.004f3d00
mov ebx, eax
xor esi, esi
add esp, 8
mov eax, 0xc
test ebx, ebx
cmove esi, eax
jmp 0x557564
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], ebx
push 0x5c
push esi
call fcn.004f39a0
add esp, 8
mov dword [ebp - 0x14], eax
test eax, eax
je 0x557596
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x557419
mov edx, 0x5c
mov word [ecx], dx
xor ecx, ecx
mov dword [ebp - 0xc], eax
push 0x6e047c
push esi
mov word [eax], cx
call fcn.004f37c0
add esp, 8
test eax, eax
je 0x557596
push 0x6ce50c
push esi
call fcn.004f37c0
add esp, 8
test eax, eax
je 0x557596
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x557461
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x5573f4
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
add eax, 2
push 0x5a747551
push eax
call fcn.004f3d00
mov edi, eax
add esp, 8
mov eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 4], eax
test edi, edi
jne 0x557338
push esi
call fcn.004f3570
push dword [ebp - 0xc]
lea esi, [edi + 0xc]
call fcn.004f3570
mov eax, dword [ebp + 0xc]
add esp, 8
mov dword [eax], ebx
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x5574c8
push edi
call fcn.004f36e0
add ebx, 2
add esp, 4
add ebx, eax
mov dword [ebp - 0x10], ebx
lea eax, [ebx*2 + 2]
push 0x58747551
push eax
mov dword [ebp + 8], eax
call fcn.004f3590
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x5574eb
lea esi, [eax + 0xc]
jmp 0x557564
push dword [ebp - 0x10]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x557551
xor esi, esi
test edi, edi
je 0x557564
push ebx
call fcn.004f36b0
add esp, 4
cmp word [ebx + eax*2 - 2], 0x5c
je 0x557533
cmp word [edi], 0x5c
je 0x557533
push 0x6ce50c
call fcn.004f36b0
push eax
push 0x6ce50c
push dword [ebp + 8]
push ebx
call fcn.004f3920
add esp, 0x14
push edi
call fcn.004f36b0
push eax
push edi
push dword [ebp + 8]
push ebx
call fcn.004f3920
push dword [ebp - 4]
call fcn.004f3570
add esp, 0x18
jmp 0x557573
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call fcn.004f3570
add esp, 4
xor ebx, ebx
push dword [ebp - 8]
call fcn.004f3570
add esp, 4
test edi, edi
je 0x55757c
push edi
call fcn.004f3570
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
call fcn.004f3570
mov eax, dword [ebp + 0xc]
add esp, 4
mov dword [eax], ebx
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.004f3570
push 0x56747551
push edi
xor esi, esi
call fcn.004f3d00
mov ebx, eax
add esp, 0xc
mov eax, dword [ebp - 4]
test ebx, ebx
jne 0x5575b8
lea esi, [ebx + 0xc]
push eax
call fcn.004f3570
add esp, 4
xor eax, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret