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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4ad2406c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
or dword [ebp - 0x214], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x218], eax
xor al, al
push edi
mov byte [ebp - 0x20d], 0
xor ebx, ebx
mov ecx, dword [esi + 0x38]
movzx edi, word [ecx + ebx*2]
cmp di, 0x22
je 0x4ad08863
test di, di
je 0x4ad024f8
cmp byte [ebp - 0x20d], 0
jne 0x4ad024c9
test al, al
jne 0x4ad024c9
push edi
push str._______t_
call fcn.4ad014ac
test eax, eax
jne 0x4ad024f8
cmp dword [ebp - 0x214], 0xffffffff
jne 0x4ad024e5
push edi
push 0x4ad24638
call fcn.4ad014ac
test eax, eax
jne 0x4ad05243
xor al, al
mov word [ebp + ebx*2 - 0x20c], di
inc ebx
cmp ebx, 0x103
jb 0x4ad02497
test ebx, ebx
je 0x4ad16b0d
and word [ebp + ebx*2 - 0x20c], 0
cmp dword [ebp - 0x214], 0xffffffff
jne 0x4ad0525b
push dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push eax
push 0x2a
call fcn.4ad023b1
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x214], edi
je 0x4ad05124
cmp edi, 0x14
je 0x4ad05eae
cmp edi, 0xffffffff
mov byte [ebp - 0x20d], 0
mov byte [ebp - 0x20e], 0
je 0x4ad05146
mov eax, dword [esi + 0x38]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4ad02561
sub eax, edx
sar eax, 1
cmp ebx, eax
jne 0x4ad11fd0
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.4ad013fa
leave
ret 8
push dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push eax
push 0x2d
call fcn.4ad023b1
cmp eax, 0x2d
jne 0x4ad02544
jmp 0x4ad0257d
xor ebx, ebx
mov byte [ebp - 0x20f], bl
mov eax, dword [esi + 0x38]
movzx edi, word [eax + ebx*2]
test di, di
je 0x4ad051b0
cmp di, 0x22
je 0x4ad0887d
cmp byte [ebp - 0x20d], 0
jne 0x4ad0519a
cmp byte [ebp - 0x20e], 0
jne 0x4ad0519a
push edi
call dword [sym.imp.msvcrt.dll_iswspace]
test eax, eax
pop ecx
jne 0x4ad051b0
push edi
push 0x4ad24630
call fcn.4ad014ac
test eax, eax
jne 0x4ad051b0
cmp di, word [0x4ad405f0]
je 0x4ad051b0
inc ebx
mov byte [ebp - 0x20e], 0
cmp byte [ebp - 0x20f], 0
je 0x4ad0514e
jmp 0x4ad0255b
mov byte [ebp - 0x20f], 1
jmp 0x4ad051a2
cmp byte [0x4ad24041], 0
je 0x4ad024f8
mov dword [ebp - 0x214], ebx
jmp 0x4ad024e5
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4ad05281
mov ebx, dword [ebp - 0x214]
and word [ebp + ebx*2 - 0x20c], 0
jmp 0x4ad02516
test al, 0x10
je 0x4ad02516
jmp 0x4ad0526d
mov dword [esi + 0x40], 1
jmp 0x4ad02544
cmp byte [ebp - 0x20d], 0
sete al
test al, al
mov byte [ebp - 0x20d], al
sete al
jmp 0x4ad024a8
cmp byte [ebp - 0x20d], 0
sete al
test al, al
mov byte [ebp - 0x20d], al
sete byte [ebp - 0x20e]
jmp 0x4ad05164
lea edi, [eax + 1]
mov eax, dword [esi + 0x3c]
test eax, eax
jne 0x4ad120a0
lea eax, [edi + edi]
push eax
call fcn.4ad01f03
mov ecx, dword [esi + 0x38]
add ebx, ebx
add ecx, ebx
push ecx
push edi
push eax
mov dword [ebp - 0x218], eax
call fcn.4ad01416
mov eax, dword [esi + 0x3c]
test eax, eax
jne 0x4ad1208e
mov eax, dword [ebp - 0x218]
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x38]
and word [ebx + eax], 0
jmp 0x4ad02577
push eax
push edi
push dword [ebp - 0x218]
call fcn.4ad014d2
jmp 0x4ad12007
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4ad120a3
sub eax, edx
sar eax, 1
add edi, eax
jmp 0x4ad11fde
or eax, 0xffffffff
jmp 0x4ad0257d