Function at 0x4ad01cde
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 0x4ad0a14b
test di, di
je 0x4ad01d64
cmp byte [ebp - 0x20d], 0
jne 0x4ad01d44
test al, al
jne 0x4ad01d44
push edi
push str._______t_
call fcn.4ad01323
test eax, eax
jne 0x4ad01d64
cmp dword [ebp - 0x214], 0xffffffff
je 0x4ad01ea2
xor al, al
mov word [ebp + ebx*2 - 0x20c], di
inc ebx
cmp ebx, 0x103
jb 0x4ad01d12
test ebx, ebx
je 0x4ad148b6
and word [ebp + ebx*2 - 0x20c], 0
cmp dword [ebp - 0x214], 0xffffffff
je 0x4ad01d9c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.vKERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4ad03b2f
test al, 0x10
jne 0x4ad03b2f
push dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push eax
push 0x28
call fcn.4ad01c99
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x21c], edi
jne 0x4ad05c78
push dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push eax
push 0x2b
call fcn.4ad01c99
cmp eax, 0x2b
je 0x4ad01e93
cmp edi, 0xffffffff
mov byte [ebp - 0x20d], 0
mov byte [ebp - 0x20e], 0
jne 0x4ad01e66
xor ebx, ebx
mov byte [ebp - 0x20f], bl
mov eax, dword [esi + 0x38]
mov di, word [eax + ebx*2]
test di, di
je 0x4ad03a73
cmp di, 0x22
je 0x4ad0a171
cmp byte [ebp - 0x20d], 0
jne 0x4ad01e55
cmp byte [ebp - 0x20e], 0
jne 0x4ad01e55
push edi
call dword [sym.imp.vmsvcrt.dll_iswspace]
test eax, eax
pop ecx
jne 0x4ad03a73
push edi
push 0x4ad33b80
call fcn.4ad01323
test eax, eax
jne 0x4ad03a73
cmp di, word [0x4ad33b88]
je 0x4ad03a73
inc ebx
mov byte [ebp - 0x20e], 0
cmp byte [ebp - 0x20f], 0
je 0x4ad01df9
mov eax, dword [esi + 0x38]
test eax, eax
mov edi, dword [sym.imp.vmsvcrt.dll_wcslen]
je 0x4ad0a165
push eax
call edi
pop ecx
mov dword [ebp - 0x214], eax
cmp ebx, dword [ebp - 0x214]
jne 0x4ad148be
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 0x4ad01d51
cmp byte [0x4ad2fa64], 0
je 0x4ad01d64
mov dword [ebp - 0x214], ebx
jmp 0x4ad01d51
mov byte [ebp - 0x20f], 1
jmp 0x4ad01e5d
mov ebx, dword [ebp - 0x214]
and word [ebp + ebx*2 - 0x20c], 0
jmp 0x4ad01d9c
cmp edi, 0x14
jne 0x4ad01dde
mov dword [esi + 0x40], 1
jmp 0x4ad01dde
cmp byte [ebp - 0x20d], 0
sete al
test al, al
mov byte [ebp - 0x20d], al
sete al
jmp 0x4ad01d23
and dword [ebp - 0x214], 0
jmp 0x4ad01e81
cmp byte [ebp - 0x20d], 0
sete al
test al, al
mov byte [ebp - 0x20d], al
sete byte [ebp - 0x20e]
jmp 0x4ad01e13
or eax, 0xffffffff
jmp 0x4ad01e93
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4ad148cb
push eax
call edi
pop ecx
jmp 0x4ad148cd
xor eax, eax
mov ecx, dword [ebp - 0x214]
add eax, ecx
shl eax, 1
push eax
call fcn.4ad01711
mov edi, eax
test edi, edi
jne 0x4ad148f5
push eax
push 0x2374
call fcn.4ad05fb5
pop ecx
pop ecx
call fcn.4ad1dfe2
mov eax, dword [esi + 0x38]
lea eax, [eax + ebx*2]
test eax, eax
je 0x4ad14909
push eax
push edi
call dword [sym.imp.vmsvcrt.dll_wcscpy]
pop ecx
pop ecx
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4ad1491e
test edi, edi
je 0x4ad1491e
push eax
push edi
call dword [sym.imp.vmsvcrt.dll_wcscat]
pop ecx
pop ecx
mov eax, dword [esi + 0x38]
mov dword [esi + 0x3c], edi
and word [eax + ebx*2], 0
jmp 0x4ad01e8d