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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4ad33b78]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x220], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x210], eax
mov eax, dword [ebp + 0x1c]
push edi
push 0x4ad02bb4
mov dword [ebp - 0x21c], eax
call fcn.4ad02bc9
push eax
call fcn.4ad06479
push 0
push 0
push dword [esi + 0x3c]
call fcn.4ad017d6
mov ebx, eax
push edi
push ebx
call fcn.4ad06479
test eax, eax
je 0x4ad0bd14
mov ax, word [ebx]
inc ebx
inc ebx
test ax, ax
jne 0x4ad0bd0a
cmp word [ebx], 0
je 0x4ad135c5
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
push ebx
call edi
mov esi, eax
cmp esi, 0x104
pop ecx
ja 0x4ad0bf2c
push ebx
call fcn.4ad01349
test eax, eax
je 0x4ad0bd50
push ebx
call fcn.4ad01349
push eax
push ebx
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push ebx
call fcn.4ad062eb
cmp eax, 1
mov ecx, dword [ebp - 0x210]
mov dword [ecx], eax
je 0x4ad135cf
lea esi, [ebx + esi*2 + 2]
cmp word [esi], 0
je 0x4ad135da
push esi
call edi
cmp word [esi + eax*2 + 2], 0
pop ecx
jne 0x4ad135c5
push esi
call edi
cmp eax, 0x104
pop ecx
ja 0x4ad0bf2c
push esi
call fcn.4ad01349
test eax, eax
je 0x4ad0bdae
push esi
call fcn.4ad01349
push eax
push esi
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
mov ax, word [esi + 2]
cmp ax, 0x3a
jne 0x4ad135ff
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push dword [ebp + 0x20]
push ebx
push dword [ebp - 0x214]
call fcn.4ad01aa5
test eax, eax
jne 0x4ad0bf2c
mov esi, dword [ebp - 0x210]
mov eax, dword [esi]
mov eax, dword [eax + 0x14]
test byte [eax], 0x10
jne 0x4ad0be41
xor eax, eax
mov ax, word [0x4ad33b8c]
push eax
push dword [ebp - 0x214]
call fcn.4ad01a53
mov ebx, eax
test ebx, ebx
je 0x4ad0bf1d
inc ebx
inc ebx
xor eax, eax
mov ax, word [0x4ad33b8c]
push eax
mov eax, dword [esi]
push dword [eax + 0xc]
call fcn.4ad01a53
test eax, eax
jne 0x4ad0be2f
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test ebx, ebx
je 0x4ad0be41
test eax, eax
je 0x4ad0be41
push eax
push ebx
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push dword [ebp + 0x24]
mov ebx, dword [ebp - 0x220]
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.4ad01aa5
test eax, eax
jne 0x4ad0bf2c
push eax
mov dword [ebp - 0x210], eax
mov dword [0x4ad2ba04], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp - 0x21c]
and dword [esi], 0
push ebx
call fcn.4ad01a79
mov ax, word [eax]
cmp ax, word [0x4ad33b8c]
je 0x4ad1366b
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4ad1368c
test al, 0x10
je 0x4ad0beaf
xor eax, eax
inc eax
mov dword [esi], eax
mov dword [ebp - 0x210], eax
xor esi, esi
cmp dword [ebp - 0x210], esi
je 0x4ad0bf0c
xor eax, eax
mov ax, word [0x4ad33b8c]
push eax
push dword [ebp - 0x214]
call fcn.4ad01a53
cmp eax, esi
mov dword [ebp - 0x210], eax
je 0x4ad0bedd
push eax
call edi
pop ecx
mov esi, eax
test ebx, ebx
je 0x4ad0bf28
push ebx
call edi
pop ecx
lea eax, [eax + esi + 1]
cmp eax, 0x104
ja 0x4ad0bf2c
test ebx, ebx
je 0x4ad0bf0c
cmp dword [ebp - 0x210], 0
je 0x4ad0bf0c
push dword [ebp - 0x210]
push ebx
call dword [sym.imp.msvcrt.dll_wcscat]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor eax, eax
pop ebx
call fcn.4ad01305
leave
ret 0x20
mov ebx, dword [ebp - 0x214]
jmp 0x4ad0be13
xor eax, eax
jmp 0x4ad0bee5
push 0x232e
jmp 0x4ad136b2