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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4ad33b78]
or dword [ebp - 0x214], 0xffffffff
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
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]
mov di, word [ecx + ebx*2]
cmp di, 0x22
je 0x4ad0e14a
test di, di
je 0x4ad01d78
cmp byte [ebp - 0x20d], 0
jne 0x4ad01d58
test al, al
jne 0x4ad01d58
push edi
push 0x4ad343d4
call fcn.4ad01323
test eax, eax
jne 0x4ad01d78
cmp dword [ebp - 0x214], 0xffffffff
je 0x4ad01eb6
xor al, al
mov word [ebp + ebx*2 - 0x20c], di
inc ebx
cmp ebx, 0x103
jb 0x4ad01d26
test ebx, ebx
je 0x4ad1489e
and word [ebp + ebx*2 - 0x20c], 0
cmp dword [ebp - 0x214], 0xffffffff
je 0x4ad01db0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4ad03b47
test al, 0x10
jne 0x4ad03b47
push dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push eax
push 0x28
call fcn.4ad01cad
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x21c], edi
jne 0x4ad05c88
push dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push eax
push 0x2b
call fcn.4ad01cad
cmp eax, 0x2b
je 0x4ad01ea7
cmp edi, 0xffffffff
mov byte [ebp - 0x20d], 0
mov byte [ebp - 0x20e], 0
jne 0x4ad01e7a
xor ebx, ebx
mov byte [ebp - 0x20f], bl
mov eax, dword [esi + 0x38]
mov di, word [eax + ebx*2]
test di, di
je 0x4ad03a8b
cmp di, 0x22
je 0x4ad0e170
cmp byte [ebp - 0x20d], 0
jne 0x4ad01e69
cmp byte [ebp - 0x20e], 0
jne 0x4ad01e69
push edi
call dword [sym.imp.msvcrt.dll_iswspace]
test eax, eax
pop ecx
jne 0x4ad03a8b
push edi
push 0x4ad33b80
call fcn.4ad01323
test eax, eax
jne 0x4ad03a8b
cmp di, word [0x4ad33b88]
je 0x4ad03a8b
inc ebx
mov byte [ebp - 0x20e], 0
cmp byte [ebp - 0x20f], 0
je 0x4ad01e0d
mov eax, dword [esi + 0x38]
test eax, eax
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
je 0x4ad0e164
push eax
call edi
pop ecx
mov dword [ebp - 0x214], eax
cmp ebx, dword [ebp - 0x214]
jne 0x4ad148a6
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.4ad01305
leave
ret 8
push edi
push 0x4ad343ec
call fcn.4ad01323
test eax, eax
je 0x4ad01d65
cmp byte [0x4ad2fa64], 0
je 0x4ad01d78
mov dword [ebp - 0x214], ebx
jmp 0x4ad01d65
mov byte [ebp - 0x20f], 1
jmp 0x4ad01e71
mov ebx, dword [ebp - 0x214]
and word [ebp + ebx*2 - 0x20c], 0
jmp 0x4ad01db0
cmp edi, 0x14
jne 0x4ad01df2
mov dword [esi + 0x40], 1
jmp 0x4ad01df2
cmp byte [ebp - 0x20d], 0
sete al
test al, al
mov byte [ebp - 0x20d], al
sete al
jmp 0x4ad01d37
and dword [ebp - 0x214], 0
jmp 0x4ad01e95
cmp byte [ebp - 0x20d], 0
sete al
test al, al
mov byte [ebp - 0x20d], al
sete byte [ebp - 0x20e]
jmp 0x4ad01e27
or eax, 0xffffffff
jmp 0x4ad01ea7
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4ad148b3
push eax
call edi
pop ecx
jmp 0x4ad148b5
xor eax, eax
mov ecx, dword [ebp - 0x214]
add eax, ecx
shl eax, 1
push eax
call fcn.4ad01725
mov edi, eax
test edi, edi
jne 0x4ad148dd
push eax
push 0x2374
call fcn.4ad0606f
pop ecx
pop ecx
call fcn.4ad1dfba
mov eax, dword [esi + 0x38]
lea eax, [eax + ebx*2]
test eax, eax
je 0x4ad148f1
push eax
push edi
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4ad14906
test edi, edi
je 0x4ad14906
push eax
push edi
call dword [sym.imp.msvcrt.dll_wcscat]
pop ecx
pop ecx
mov eax, dword [esi + 0x38]
mov dword [esi + 0x3c], edi
and word [eax + ebx*2], 0
jmp 0x4ad01ea1