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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4ad240ac]
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 0x4ad087d2
test di, di
je 0x4ad04875
cmp byte [ebp - 0x20d], 0
jne 0x4ad04846
test al, al
jne 0x4ad04846
push edi
push str._______t_
call fcn.4ad01892
test eax, eax
jne 0x4ad04875
cmp dword [ebp - 0x214], 0xffffffff
jne 0x4ad04862
push edi
push 0x4ad24678
call fcn.4ad01892
test eax, eax
jne 0x4ad06fff
xor al, al
mov word [ebp + ebx*2 - 0x20c], di
inc ebx
cmp ebx, 0x103
jb 0x4ad04814
test ebx, ebx
je 0x4ad172f8
xor eax, eax
cmp dword [ebp - 0x214], 0xffffffff
mov word [ebp + ebx*2 - 0x20c], ax
jne 0x4ad06fd4
push dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push eax
push 0x2a
call fcn.4ad046f3
mov edi, eax
mov dword [ebp - 0x214], edi
cmp edi, 0xffffffff
je 0x4ad06f3f
cmp edi, 0x14
je 0x4ad08097
mov byte [ebp - 0x20d], 0
mov byte [ebp - 0x20e], 0
cmp edi, 0xffffffff
je 0x4ad06f61
mov eax, dword [esi + 0x38]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4ad048df
sub eax, edx
sar eax, 1
cmp ebx, eax
jne 0x4ad17300
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.4ad0139d
leave
ret 8
push dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push eax
push 0x2d
call fcn.4ad046f3
cmp eax, 0x2d
jne 0x4ad048c2
jmp 0x4ad048fb
xor ebx, ebx
mov byte [ebp - 0x20f], bl
mov eax, dword [esi + 0x38]
movzx edi, word [eax + ebx*2]
test di, di
je 0x4ad06fcb
cmp di, 0x22
je 0x4ad087ec
cmp byte [ebp - 0x20d], 0
jne 0x4ad06fb5
cmp byte [ebp - 0x20e], 0
jne 0x4ad06fb5
push edi
call dword [sym.imp.msvcrt.dll_iswspace]
pop ecx
test eax, eax
jne 0x4ad06fcb
push edi
push 0x4ad24670
call fcn.4ad01892
test eax, eax
jne 0x4ad06fcb
cmp di, word [0x4ad4061c]
je 0x4ad06fcb
inc ebx
mov byte [ebp - 0x20e], 0
cmp byte [ebp - 0x20f], 0
je 0x4ad06f69
jmp 0x4ad048d9
mov byte [ebp - 0x20f], 1
jmp 0x4ad06fbd
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4ad08675
mov ebx, dword [ebp - 0x214]
xor eax, eax
mov word [ebp + ebx*2 - 0x20c], ax
jmp 0x4ad04894
cmp byte [0x4ad24081], 0
je 0x4ad04875
mov dword [ebp - 0x214], ebx
jmp 0x4ad04862
mov dword [esi + 0x40], 1
jmp 0x4ad048c2
test al, 0x10
je 0x4ad04894
jmp 0x4ad06fea
cmp byte [ebp - 0x20d], 0
sete al
test al, al
mov byte [ebp - 0x20d], al
sete al
jmp 0x4ad04825
cmp byte [ebp - 0x20d], 0
sete al
test al, al
mov byte [ebp - 0x20d], al
sete byte [ebp - 0x20e]
jmp 0x4ad06f7f
lea eax, [ebx - 1]
jmp 0x4ad048fb
lea edi, [eax + 1]
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4ad1731d
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4ad1730d
sub eax, edx
sar eax, 1
add edi, eax
lea eax, [edi + edi]
push eax
call fcn.4ad0190d
mov ecx, dword [esi + 0x38]
add ebx, ebx
add ecx, ebx
push ecx
push edi
push eax
mov dword [ebp - 0x218], eax
call fcn.4ad017fb
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4ad1734f
push eax
push edi
push dword [ebp - 0x218]
call fcn.4ad01a89
mov eax, dword [ebp - 0x218]
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x38]
xor ecx, ecx
mov word [ebx + eax], cx
jmp 0x4ad048f5