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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
push dword [ebp + 0xc]
push 0x4ad016d4
call fcn.4ad061f6
push eax
call fcn.4ad08884
mov eax, dword [ebp + 8]
xor esi, esi
push esi
push esi
push dword [eax + 0x3c]
call fcn.4ad12e5a
push dword [ebp + 0xc]
mov edi, eax
push edi
call fcn.4ad08884
test eax, eax
je 0x4ad08e88
mov ax, word [edi]
inc edi
inc edi
test ax, ax
jne 0x4ad08e7e
cmp word [edi], si
mov ebx, 0x232a
jne 0x4ad08e9d
push ebx
call fcn.4ad08677
mov esi, dword [ebp + 0x10]
jmp 0x4ad08ebd
cmp edi, esi
je 0x4ad08eab
push edi
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
mov esi, eax
cmp esi, 0x104
jbe 0x4ad08ebd
push 0x232e
call fcn.4ad08677
test edi, edi
je 0x4ad08edb
push edi
call fcn.4ad14661
test eax, eax
je 0x4ad08edb
push edi
call fcn.4ad14661
push eax
push edi
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
pop ecx
push edi
call fcn.4ad13677
mov ecx, dword [ebp + 0x18]
cmp eax, 1
mov dword [ecx], eax
jne 0x4ad08ef6
push dword [0x4ad1d000]
call fcn.4ad08677
lea esi, [edi + esi*2 + 2]
xor eax, eax
cmp word [esi], ax
jne 0x4ad08f26
mov ecx, dword [0x4ad1cff0]
mov cx, word [ecx]
mov word [ebp - 0x206], 0x3a
mov word [ebp - 0x208], cx
mov word [ebp - 0x204], ax
jmp 0x4ad09037
cmp esi, eax
je 0x4ad08f32
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
cmp word [esi + eax*2 + 2], 0
je 0x4ad08f3d
push ebx
jmp 0x4ad08f59
test esi, esi
je 0x4ad08f4b
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
jmp 0x4ad08f4d
xor eax, eax
cmp eax, 0x104
jbe 0x4ad08f63
push 0x232e
call fcn.4ad08677
jmp 0x4ad09037
test esi, esi
je 0x4ad08f81
push esi
call fcn.4ad14661
test eax, eax
je 0x4ad08f81
push esi
call fcn.4ad14661
push eax
push esi
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
pop ecx
mov ax, word [esi + 2]
cmp ax, 0x3a
je 0x4ad09019
cmp word [esi], 0x5c
jne 0x4ad08f9b
cmp ax, 0x5c
je 0x4ad09019
mov eax, dword [0x4ad1cff0]
xor ebx, ebx
mov ax, word [eax]
mov word [ebp - 0x206], 0x3a
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x208]
test eax, eax
mov word [ebp - 0x204], bx
je 0x4ad08fd6
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
mov ebx, eax
test esi, esi
je 0x4ad08fe4
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
jmp 0x4ad08fe6
xor eax, eax
lea eax, [eax + ebx + 1]
cmp eax, 0x104
jbe 0x4ad08ffb
push 0x232e
call fcn.4ad08677
lea eax, [ebp - 0x208]
test eax, eax
je 0x4ad09037
test esi, esi
je 0x4ad09037
lea eax, [ebp - 0x208]
push esi
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
jmp 0x4ad09035
lea eax, [ebp - 0x208]
test eax, eax
je 0x4ad09037
test esi, esi
je 0x4ad09037
lea eax, [ebp - 0x208]
push esi
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
pop ecx
push dword [ebp + 0x20]
push edi
push dword [ebp + 0x10]
call fcn.4ad14d91
test eax, eax
je 0x4ad09051
push 0x232e
call fcn.4ad08677
mov edi, dword [ebp + 0x18]
mov eax, dword [edi]
mov eax, dword [eax + 0x14]
test byte [eax], 0x10
jne 0x4ad090a6
mov ax, word [0x4ad1c744]
push eax
push dword [ebp + 0x10]
call fcn.4ad19436
mov esi, eax
test esi, esi
je 0x4ad09077
inc esi
inc esi
jmp 0x4ad0907a
mov esi, dword [ebp + 0x10]
mov ax, word [0x4ad1c744]
push eax
mov eax, dword [edi]
push dword [eax + 0xc]
call fcn.4ad19436
test eax, eax
jne 0x4ad09094
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test esi, esi
je 0x4ad090a6
test eax, eax
je 0x4ad090a6
push eax
push esi
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
pop ecx
push dword [ebp + 0x24]
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0x208]
push eax
push edi
call fcn.4ad14d91
test eax, eax
je 0x4ad090c7
push 0x232e
call fcn.4ad08677
xor ebx, ebx
and dword [0x4ad1d000], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp + 0x1c]
push edi
and dword [esi], ebx
call fcn.4ad1948c
mov ax, word [eax]
cmp ax, word [0x4ad1c744]
jne 0x4ad09106
push 1
test edi, edi
pop ebx
je 0x4ad090fe
push edi
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
jmp 0x4ad09100
xor eax, eax
and word [edi + eax*2 - 2], 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4ad0911d
test al, 0x10
je 0x4ad0913c
push 1
pop ebx
mov dword [esi], ebx
jmp 0x4ad0913c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x4ad1d000], eax
je 0x4ad0913c
cmp eax, 2
je 0x4ad0913c
cmp eax, 3
je 0x4ad0913c
push eax
call fcn.4ad08677
test ebx, ebx
je 0x4ad0919a
mov ax, word [0x4ad1c744]
push eax
push dword [ebp + 0x10]
call fcn.4ad19436
mov ebx, eax
test ebx, ebx
je 0x4ad09161
push ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
mov esi, eax
jmp 0x4ad09163
xor esi, esi
test edi, edi
je 0x4ad09171
push edi
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
jmp 0x4ad09173
xor eax, eax
lea eax, [eax + esi + 1]
cmp eax, 0x104
jbe 0x4ad09188
push 0x232e
call fcn.4ad08677
test edi, edi
je 0x4ad0919a
test ebx, ebx
je 0x4ad0919a
push ebx
push edi
call dword [sym.imp.MSVCRT.dll_wcscat]
pop ecx
pop ecx
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x20