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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4ad33b38]
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 0x4ad032d8
mov dword [ebp - 0x21c], eax
call fcn.4ad032ed
push eax
call fcn.4ad080ab
push 0
push 0
push dword [esi + 0x3c]
call fcn.4ad02d3d
mov ebx, eax
push edi
push ebx
call fcn.4ad080ab
test eax, eax
je 0x4ad09548
mov ax, word [ebx]
inc ebx
inc ebx
test ax, ax
jne 0x4ad0953e
test ebx, ebx
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
je 0x4ad11bdb
push ebx
call edi
pop ecx
mov esi, eax
test esi, esi
je 0x4ad13b40
cmp esi, 0x104
jae 0x4ad11bf1
test ebx, ebx
je 0x4ad0958e
push ebx
call fcn.4ad02f54
test eax, eax
je 0x4ad0958e
push ebx
call fcn.4ad02f54
push eax
push ebx
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push ebx
call fcn.4ad07eed
cmp eax, 1
mov ecx, dword [ebp - 0x210]
mov dword [ecx], eax
je 0x4ad13b4a
lea esi, [ebx + esi*2 + 2]
cmp word [esi], 0
je 0x4ad13b55
push esi
call edi
cmp word [esi + eax*2 + 2], 0
pop ecx
jne 0x4ad13b40
push esi
call edi
cmp eax, 0x104
pop ecx
ja 0x4ad11bf1
push esi
call fcn.4ad02f54
test eax, eax
je 0x4ad095ec
push esi
call fcn.4ad02f54
push eax
push esi
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
mov ax, word [esi + 2]
cmp ax, 0x3a
jne 0x4ad13b7a
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.4ad02ec4
test eax, eax
jne 0x4ad11bf1
mov esi, dword [ebp - 0x210]
mov eax, dword [esi]
mov eax, dword [eax + 0x14]
test byte [eax], 0x10
jne 0x4ad0967f
xor eax, eax
mov ax, word [0x4ad34440]
push eax
push dword [ebp - 0x214]
call fcn.4ad026cd
mov ebx, eax
test ebx, ebx
je 0x4ad11be2
inc ebx
inc ebx
xor eax, eax
mov ax, word [0x4ad34440]
push eax
mov eax, dword [esi]
push dword [eax + 0xc]
call fcn.4ad026cd
test eax, eax
jne 0x4ad0966d
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test ebx, ebx
je 0x4ad0967f
test eax, eax
je 0x4ad0967f
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.4ad02ec4
test eax, eax
jne 0x4ad11bf1
push eax
mov dword [ebp - 0x210], eax
mov dword [0x4ad2b9c4], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp - 0x21c]
and dword [esi], 0
push ebx
call fcn.4ad02ea5
mov ax, word [eax]
cmp ax, word [0x4ad34440]
je 0x4ad13be6
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4ad13c07
test al, 0x10
jne 0x4ad11bcb
xor esi, esi
cmp dword [ebp - 0x210], esi
jne 0x4ad11b6b
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor eax, eax
pop ebx
call fcn.4ad01389
leave
ret 0x20
xor eax, eax
mov ax, word [0x4ad34440]
push eax
push dword [ebp - 0x214]
call fcn.4ad026cd
cmp eax, esi
mov dword [ebp - 0x210], eax
je 0x4ad11b8f
push eax
call edi
pop ecx
mov esi, eax
test ebx, ebx
je 0x4ad11bed
push ebx
call edi
pop ecx
lea eax, [eax + esi + 1]
cmp eax, 0x104
ja 0x4ad11bf1
test ebx, ebx
je 0x4ad096f4
cmp dword [ebp - 0x210], 0
je 0x4ad096f4
push dword [ebp - 0x210]
push ebx
call dword [sym.imp.msvcrt.dll_wcscat]
pop ecx
pop ecx
jmp 0x4ad096f4
xor eax, eax
inc eax
mov dword [esi], eax
mov dword [ebp - 0x210], eax
jmp 0x4ad096e6
xor esi, esi
jmp 0x4ad0955c
mov ebx, dword [ebp - 0x214]
jmp 0x4ad09651
xor eax, eax
jmp 0x4ad11b97
push 0x232e
jmp 0x4ad13c2d
push 0x232a
jmp 0x4ad13c2d
push dword [0x4ad2b9c4]
jmp 0x4ad13c2d
mov eax, dword [0x4ad33aa8]
mov ax, word [eax]
and word [ebp - 0x208], 0
mov word [ebp - 0x20c], ax
mov word [ebp - 0x20a], 0x3a
jmp 0x4ad0960a
cmp word [esi], 0x5c
jne 0x4ad13b8a
cmp ax, 0x5c
je 0x4ad095fa
mov eax, dword [0x4ad33aa8]
mov ax, word [eax]
and word [ebp - 0x208], 0
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
mov word [ebp - 0x20a], 0x3a
call edi
push esi
mov dword [ebp - 0x218], eax
call edi
pop ecx
pop ecx
mov ecx, dword [ebp - 0x218]
lea eax, [eax + ecx + 1]
cmp eax, 0x104
ja 0x4ad11bf1
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
jmp 0x4ad09608
test ebx, ebx
mov dword [ebp - 0x210], 1
je 0x4ad13bfa
push ebx
call edi
pop ecx
jmp 0x4ad13bfc
xor eax, eax
and word [ebx + eax*2 - 2], 0
jmp 0x4ad096ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x4ad2b9c4], eax
je 0x4ad096e6
cmp eax, 2
je 0x4ad096e6
cmp eax, 3
je 0x4ad096e6
push eax
call fcn.4ad1c56e
int3