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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x3d4
mov ecx, dword [esp + 0x3e8]
lea eax, [esp + 0x34]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0x80
lea eax, [esp + 0xc0]
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0x80
cmp byte [ecx + 0x11], 1
jne case.0x4a5ddd.2
movzx eax, byte [ecx + 0x10]
dec eax
cmp eax, 5
ja case.0x4a5ddd.2
jmp dword [eax*4 + 0x515fd4]
mov esi, dword [ecx]
mov ebx, dword [ecx + 4]
jmp 0x4a5e02
lea eax, [esp + 0x28]
mov dword [esp], eax
call fcn.00465530
sub esp, 4
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], esi
cmp ebx, 4
mov dword [esp + 0x1c], esi
jb 0x4a5e62
cmp dword [esi], 0x5c2e5c5c
jne 0x4a5e62
jmp 0x4a5eb3
mov esi, dword [ecx]
movzx ebx, byte [esi]
test bl, 1
je 0x4a6031
mov ebx, dword [esi + 4]
mov esi, dword [esi + 8]
jmp 0x4a5e02
mov esi, dword [ecx]
test esi, esi
je case.0x4a5ddd.1
mov dword [esp], esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov ebx, eax
jmp 0x4a5e02
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
xor ebx, ebx
mov esi, 0xffffffa8
lea edi, [esp + 0x20]
jmp 0x4a5e75
add esi, 4
je 0x4a5ee8
mov ebp, dword [esi + 0x515df8]
mov dword [esp], ebp
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
cmp dword [esp + 0x24], eax
jne 0x4a5e70
mov dword [esp + 0x1c0], ebp
mov dword [esp + 0x1c4], eax
movsd xmm0, qword [esp + 0x1c0]
movsd qword [esp], xmm0
mov ecx, edi
call fcn.00460b20
sub esp, 8
test eax, eax
jne 0x4a5e70
xorps xmm0, xmm0
mov eax, dword [esp + 0x3ec]
movsd qword [eax + 0x10], xmm0
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov dword [eax + 0x18], 6
mov dword [eax + 0x1c], 0xffff
movups xmmword [eax + 0x20], xmm0
call fcn.00504d20
mov ebx, eax
xor edi, edi
jmp 0x4a606d
mov word [esp + 0x1d0], 0x105
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x1c0], eax
mov dword [esp + 0x1c4], ebx
lea eax, [esp + 0xb4]
mov dword [esp + 4], eax
lea eax, [esp + 0x1c0]
mov dword [esp], eax
mov dword [esp + 8], 0x104
call fcn.004a7d20
test eax, eax
je 0x4a5f33
mov edi, eax
mov ebx, edx
jmp 0x4a606d
mov eax, 0x2000000
cmp byte [esp + 0x3f0], 0
jne 0x4a5f67
mov eax, dword [esp + 0xb4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x4a5fbc
and eax, 0x400
shl eax, 0xb
or eax, 0x2000000
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x14], eax
movaps xmm0, xmmword [0x515b80]
movups xmmword [esp + 4], xmm0
mov dword [esp], ecx
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x4a5fbc
mov ecx, eax
mov edx, dword [esp + 0x3ec]
mov esi, eax
call fcn.004a9510
mov edi, eax
mov ebx, edx
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x4a606d
lea ebp, [esp + 0x1cc]
mov dword [esp + 0x1c0], ebp
mov dword [esp + 0x1c4], 0
mov dword [esp + 0x1c8], 0x104
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
cmp ecx, 2
jne 0x4a600e
xorps xmm0, xmm0
mov ecx, dword [esp + 0x3ec]
movsd qword [ecx + 0x10], xmm0
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ecx + 0x18], 1
jmp 0x4a6043
cmp eax, 0x20
mov ecx, dword [esp + 0x3ec]
jne 0x4a6039
xorps xmm0, xmm0
movsd qword [ecx + 0x10], xmm0
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ecx + 0x18], 9
jmp 0x4a6043
inc esi
shr ebx, 1
jmp 0x4a5e02
xorps xmm0, xmm0
movups xmmword [ecx + 0xc], xmm0
movups xmmword [ecx], xmm0
mov dword [ecx + 0x1c], 0xffff
movups xmmword [ecx + 0x20], xmm0
mov dword [esp], eax
call fcn.004b0bb0
mov edi, eax
mov ebx, edx
mov eax, dword [esp + 0x1c0]
cmp eax, ebp
je 0x4a606d
mov dword [esp], eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
lea ecx, [esp + 0xc0]
mov eax, dword [esp + 0xb4]
cmp eax, ecx
je 0x4a6087
mov dword [esp], eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x34]
cmp eax, ecx
je 0x4a609b
mov dword [esp], eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov eax, edi
mov edx, ebx
add esp, 0x3d4
pop esi
pop edi
pop ebx
pop ebp
ret