Function at 0x4b6180
Capabilities:
Check if file exists
Create directory
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 [0x7024bc]
xor eax, ebp
mov dword [esp + 0xa8], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x50], 0xffffffff
lea edi, [esp + 0x70]
push 0x27b
push str..._.._base_files_file_util_win.cc
push str.CreateDirectoryAndGetError
push edi
call fcn.004994e0
add esp, 0x10
lea ecx, [esp + 0x20]
push 0
push edi
call fcn.004ab280
cmp byte [esi + 0xb], 0
mov ebx, esi
jns 0x4b61f8
mov ebx, dword [esi]
mov edi, dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4b622a
mov bl, 1
test al, 0x10
jne 0x4b63af
test edi, edi
je 0x4b621b
mov dword [edi], 0xfffffff7
push 0x50
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x4b63af
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], 0xffffffff
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.00496060
movzx edx, byte [esp + 0x1f]
mov eax, edx
test dl, dl
jns 0x4b625d
mov eax, dword [esp + 0x18]
movzx ecx, byte [esi + 0xb]
test cl, cl
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
js 0x4b6279
mov edx, esi
cmp eax, ecx
jne 0x4b62c5
test eax, eax
jne 0x4b6284
jmp 0x4b62b1
cmp eax, dword [esi + 4]
jne 0x4b62c5
mov edx, dword [esi]
test eax, eax
je 0x4b62b1
lea edi, [esp + 0x14]
cmp byte [esp + 0x10], 0
jns 0x4b6293
mov edi, dword [esp + 0x14]
xor ecx, ecx
nop word cs:[eax + eax]
nop
movzx ebx, word [edi + ecx*2]
cmp bx, word [edx + ecx*2]
jne 0x4b62c5
add ecx, 1
cmp eax, ecx
jne 0x4b62a0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4b62be
mov dword [eax], 0xfffffffc
push 2
jmp 0x4b639e
mov edi, dword [ebp + 0xc]
push edi
lea eax, [esp + 0x18]
push eax
call fcn.004b6180
add esp, 8
test al, al
je 0x4b63a4
push 0
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x4b63a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], eax
cmp eax, 0xb7
jne 0x4b638a
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x90], xmm0
movdqa xmmword [esp + 0x80], xmm0
movdqa xmmword [esp + 0x70], xmm0
mov dword [esp + 0xa4], 0xffffffff
mov dword [esp + 0xa0], 0xffffffff
lea edi, [esp + 0x60]
push 0x1f1
push str..._.._base_files_file_util_win.cc
push str.DirectoryExists
push edi
call fcn.004994e0
add esp, 0x10
lea ecx, [esp + 0x70]
push 0
push edi
call fcn.004ab280
cmp byte [esi + 0xb], 0
jns 0x4b636b
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
lea ecx, [esp + 0x70]
call fcn.004ab2f0
cmp esi, 0xffffffff
mov edi, dword [ebp + 0xc]
je 0x4b638a
and esi, 0x10
jne 0x4b63a6
test edi, edi
mov esi, dword [esp + 0xc]
je 0x4b639d
push esi
call fcn.004b7ab0
add esp, 4
mov dword [edi], eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
lea ecx, [esp + 0x14]
call fcn.00495790
lea ecx, [esp + 0x20]
call fcn.004ab2f0
mov ecx, dword [esp + 0xa8]
xor ecx, ebp
call fcn.0064180a
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret