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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xb0
mov esi, dword [ebp + 8]
mov eax, dword [0x591014]
xor eax, ebp
mov dword [esp + 0xa8], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x20]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea ebx, [esp + 0x60]
push 0x27c
push str....._base_files_file_util_win.cc
push str.CreateDirectoryAndGetError
push ebx
call fcn.004a26d0
add esp, 0x10
mov ecx, edi
push 0
push ebx
call fcn.004a9540
cmp byte [esi + 0xb], 0
mov ebx, esi
jns 0x45410b
mov ebx, dword [esi]
mov edi, dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x454145
mov bl, 1
test al, 0x10
je 0x45424e
lea ecx, [esp + 0x20]
call fcn.004a95a0
mov ecx, dword [esp + 0xa8]
xor ecx, ebp
call fcn.004c66e3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
dec eax
lea edi, [esp + 4]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, esi
push edi
call fcn.004a1dc0
movzx ecx, byte [edi + 0xb]
test cl, cl
jns 0x45416a
mov edi, dword [esp + 8]
jmp 0x45416f
mov edi, ecx
and edi, 0x7f
movzx eax, byte [esi + 0xb]
test al, al
jns 0x45417c
mov edx, dword [esi + 4]
jmp 0x454181
mov edx, eax
and edx, 0x7f
cmp edi, edx
je 0x454269
push dword [ebp + 0xc]
lea eax, [esp + 8]
push eax
call fcn.004540a0
add esp, 8
test al, al
je 0x4542bf
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
je 0x4541be
lea ecx, [esp + 4]
call fcn.004a1da0
jmp 0x454124
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], eax
cmp eax, 0xb7
jne 0x45423b
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x60]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea eax, [esp + 0x10]
push 0x1ef
push str....._base_files_file_util_win.cc
push str.DirectoryExists
push eax
call fcn.004a26d0
add esp, 0x10
mov ecx, edi
push 0
lea eax, [esp + 0x14]
push eax
call fcn.004a9540
cmp byte [esi + 0xb], 0
jns 0x45421b
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
lea ecx, [esp + 0x60]
call fcn.004a95a0
cmp esi, 0xffffffff
je 0x45423b
and esi, 0x10
jne 0x4541b0
cmp dword [ebp + 0xc], 0
je 0x4542b6
push dword [esp]
call fcn.00454cc0
add esp, 4
jmp 0x4542b1
test edi, edi
je 0x45425a
mov eax, edi
mov dword [edi], 0xfffffff7
push 0x50
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x454124
test edi, edi
je 0x45429f
lea edx, [esp + 4]
mov dword [esp], edx
test cl, cl
jns 0x45427f
mov ecx, dword [esp + 4]
mov dword [esp], ecx
mov ecx, esi
test al, al
jns 0x454287
mov ecx, dword [esi]
xor edx, edx
mov eax, dword [esp]
movzx eax, word [eax + edx*2]
cmp ax, word [ecx + edx*2]
jne 0x454189
inc edx
cmp edi, edx
jne 0x454289
mov eax, 0xfffffffc
mov dword [esp], 2
cmp dword [ebp + 0xc], 0
je 0x4542b6
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push dword [esp]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x4541b0