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

Disassembly:
test al, 0x10
je 0x4ad04293
jmp 0x4ad0555d
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 0x4ad0c123
test di, di
je 0x4ad04274
cmp byte [ebp - 0x20d], 0
jne 0x4ad04245
test al, al
jne 0x4ad04245
push edi
push str._______t_
call fcn.4ad018eb
test eax, eax
jne 0x4ad04274
cmp dword [ebp - 0x214], 0xffffffff
jne 0x4ad04261
push edi
push 0x4ad24678
call fcn.4ad018eb
test eax, eax
jne 0x4ad05572
xor al, al
mov word [ebp + ebx*2 - 0x20c], di
inc ebx
cmp ebx, 0x103
jb 0x4ad04213
test ebx, ebx
je 0x4ad1713d
xor eax, eax
cmp dword [ebp - 0x214], 0xffffffff
mov word [ebp + ebx*2 - 0x20c], ax
jne 0x4ad05547
push dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push eax
push 0x2a
call fcn.4ad040f2
mov edi, eax
mov dword [ebp - 0x214], edi
cmp edi, 0xffffffff
je 0x4ad054b2
cmp edi, 0x14
je 0x4ad0660b
mov byte [ebp - 0x20d], 0
mov byte [ebp - 0x20e], 0
cmp edi, 0xffffffff
je 0x4ad054d4
mov eax, dword [esi + 0x38]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4ad042de
sub eax, edx
sar eax, 1
cmp ebx, eax
jne 0x4ad17145
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.4ad013a9
leave
ret 8
push dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push eax
push 0x2d
call fcn.4ad040f2
cmp eax, 0x2d
jne 0x4ad042c1
jmp 0x4ad042fa
xor ebx, ebx
mov byte [ebp - 0x20f], bl
mov eax, dword [esi + 0x38]
movzx edi, word [eax + ebx*2]
test di, di
je 0x4ad0553e
cmp di, 0x22
je 0x4ad0c13d
cmp byte [ebp - 0x20d], 0
jne 0x4ad05528
cmp byte [ebp - 0x20e], 0
jne 0x4ad05528
push edi
call dword [sym.imp.msvcrt.dll_iswspace]
pop ecx
test eax, eax
jne 0x4ad0553e
push edi
push 0x4ad24670
call fcn.4ad018eb
test eax, eax
jne 0x4ad0553e
cmp di, word [0x4ad4065c]
je 0x4ad0553e
inc ebx
mov byte [ebp - 0x20e], 0
cmp byte [ebp - 0x20f], 0
je 0x4ad054dc
jmp 0x4ad042d8
mov byte [ebp - 0x20f], 1
jmp 0x4ad05530
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4ad02cba
mov ebx, dword [ebp - 0x214]
xor eax, eax
mov word [ebp + ebx*2 - 0x20c], ax
jmp 0x4ad04293
cmp byte [0x4ad24081], 0
je 0x4ad04274
mov dword [ebp - 0x214], ebx
jmp 0x4ad04261
mov dword [esi + 0x40], 1
jmp 0x4ad042c1
cmp byte [ebp - 0x20d], 0
sete al
test al, al
mov byte [ebp - 0x20d], al
sete al
jmp 0x4ad04224
cmp byte [ebp - 0x20d], 0
sete al
test al, al
mov byte [ebp - 0x20d], al
sete byte [ebp - 0x20e]
jmp 0x4ad054f2
lea eax, [ebx - 1]
jmp 0x4ad042fa
lea edi, [eax + 1]
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4ad17162
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4ad17152
sub eax, edx
sar eax, 1
add edi, eax
lea eax, [edi + edi]
push eax
call fcn.4ad02041
mov ecx, dword [esi + 0x38]
add ebx, ebx
add ecx, ebx
push ecx
push edi
push eax
mov dword [ebp - 0x218], eax
call fcn.4ad0185a
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4ad17194
push eax
push edi
push dword [ebp - 0x218]
call fcn.4ad020a9
mov eax, dword [ebp - 0x218]
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x38]
xor ecx, ecx
mov word [ebx + eax], cx
jmp 0x4ad042f4