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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4ad33b38]
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 0x4ad10848
test di, di
je 0x4ad043c9
cmp byte [ebp - 0x20d], 0
jne 0x4ad0439a
test al, al
jne 0x4ad0439a
push edi
push str._______t_
call fcn.4ad015d7
test eax, eax
jne 0x4ad043c9
cmp dword [ebp - 0x214], 0xffffffff
jne 0x4ad043b6
push edi
push 0x4ad3cb18
call fcn.4ad015d7
test eax, eax
jne 0x4ad08ac7
xor al, al
mov word [ebp + ebx*2 - 0x20c], di
inc ebx
cmp ebx, 0x103
jb 0x4ad04368
test ebx, ebx
je 0x4ad14c4a
and word [ebp + ebx*2 - 0x20c], 0
cmp dword [ebp - 0x214], 0xffffffff
jne 0x4ad08adf
push dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push eax
push 0x28
call fcn.4ad0446d
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x21c], edi
je 0x4ad08a25
cmp edi, 0x14
je 0x4ad05e05
cmp edi, 0xffffffff
mov byte [ebp - 0x20d], 0
mov byte [ebp - 0x20e], 0
je 0x4ad08a47
mov eax, dword [esi + 0x38]
test eax, eax
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
je 0x4ad0e88e
push eax
call edi
pop ecx
mov dword [ebp - 0x214], eax
cmp ebx, dword [ebp - 0x214]
jne 0x4ad0e811
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.4ad01389
leave
ret 8
mov dword [esi + 0x40], 1
jmp 0x4ad04415
push dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push eax
push 0x2b
call fcn.4ad0446d
cmp eax, 0x2b
jne 0x4ad04415
jmp 0x4ad04459
xor ebx, ebx
mov byte [ebp - 0x20f], bl
jmp 0x4ad08a92
cmp byte [ebp - 0x20e], 0
jne 0x4ad08ab1
push edi
call dword [sym.imp.msvcrt.dll_iswspace]
test eax, eax
pop ecx
jne 0x4ad08a89
push edi
push 0x4ad34444
call fcn.4ad015d7
test eax, eax
jne 0x4ad08a89
cmp di, word [0x4ad3468c]
jne 0x4ad08ab1
mov byte [ebp - 0x20f], 1
jmp 0x4ad08ab9
mov eax, dword [esi + 0x38]
mov di, word [eax + ebx*2]
test di, di
je 0x4ad08a89
cmp di, 0x22
je 0x4ad10862
cmp byte [ebp - 0x20d], 0
je 0x4ad08a5c
inc ebx
mov byte [ebp - 0x20e], 0
cmp byte [ebp - 0x20f], 0
je 0x4ad08a92
jmp 0x4ad0442c
cmp byte [0x4ad2fa24], 0
je 0x4ad043c9
mov dword [ebp - 0x214], ebx
jmp 0x4ad043b6
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4ad08b05
mov ebx, dword [ebp - 0x214]
and word [ebp + ebx*2 - 0x20c], 0
jmp 0x4ad043e7
test al, 0x10
je 0x4ad043e7
jmp 0x4ad08af1
mov eax, dword [esi + 0x3c]
test eax, eax
jne 0x4ad0e888
xor eax, eax
mov ecx, dword [ebp - 0x214]
add eax, ecx
shl eax, 1
push eax
call fcn.4ad0206b
mov edi, eax
test edi, edi
je 0x4ad14c52
mov eax, dword [esi + 0x38]
lea eax, [eax + ebx*2]
test eax, eax
je 0x4ad0e848
push eax
push edi
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
mov eax, dword [esi + 0x3c]
test eax, eax
jne 0x4ad0e89a
mov eax, dword [esi + 0x38]
mov dword [esi + 0x3c], edi
and word [eax + ebx*2], 0
jmp 0x4ad04453
push eax
call edi
pop ecx
jmp 0x4ad0e81a
and dword [ebp - 0x214], 0
jmp 0x4ad04447
test edi, edi
je 0x4ad0e84f
push eax
push edi
call dword [sym.imp.msvcrt.dll_wcscat]
pop ecx
pop ecx
jmp 0x4ad0e84f
cmp byte [ebp - 0x20d], 0
sete al
test al, al
mov byte [ebp - 0x20d], al
sete al
jmp 0x4ad04379
cmp byte [ebp - 0x20d], 0
sete al
test al, al
mov byte [ebp - 0x20d], al
sete byte [ebp - 0x20e]
jmp 0x4ad08aa8
or eax, 0xffffffff
jmp 0x4ad04459
push eax
push 0x2374
call fcn.4ad050c9
pop ecx
pop ecx
call fcn.4ad1e2c8
int3