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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [0x4ad2b9c4], ebx
mov eax, dword [esi]
cmp eax, ebx
push edi
mov dword [ebp - 8], 0x4ad3cb70
je 0x4ad08e2a
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
mov dword [ebp - 4], eax
push dword [esi]
call fcn.4ad02ea5
mov edi, eax
cmp word [edi], 0x3a
je 0x4ad1736e
push 0x250
call fcn.4ad026a9
mov dword [esi + 0x14], eax
movzx edi, word [edi]
xor eax, eax
mov ax, word [0x4ad34440]
cmp di, ax
mov dword [ebp + 8], edi
je 0x4ad07ff8
push eax
push dword [esi]
call fcn.4ad026cd
mov edi, eax
test edi, edi
je 0x4ad08df9
inc edi
inc edi
mov ebx, dword [sym.imp.msvcrt.dll__wcsicmp]
push 0x4ad02d34
push edi
call ebx
test eax, eax
pop ecx
pop ecx
je 0x4ad07ff8
push 0x4ad02d2c
push edi
call ebx
test eax, eax
pop ecx
pop ecx
je 0x4ad07ff8
cmp dword [0x4ad2fa20], 4
je 0x4ad0e468
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4ad07fe3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4ad2b9c4], eax
cmp ebx, 0xffffffff
jne 0x4ad07fef
mov edx, dword [esi]
xor ebx, ebx
inc ebx
xor edi, edi
mov ecx, edx
mov ax, word [ecx]
test ax, ax
je 0x4ad07e5d
cmp ax, word [0x4ad34440]
je 0x4ad07ebc
cmp ax, 0x3a
je 0x4ad07ec0
inc ecx
inc ecx
inc ebx
jmp 0x4ad07e41
test edi, edi
mov dword [esi + 8], edi
je 0x4ad08e20
cmp word [edi], ax
lea eax, [edi + 2]
je 0x4ad1743e
mov dword [esi + 0xc], eax
push 0x2a
push edi
call fcn.4ad015d7
test eax, eax
je 0x4ad07fce
or dword [esi + 0x18], 8
mov dword [0x4ad33ab0], 1
push 0x2e
push edi
call fcn.4ad015d7
mov dword [esi + 0x10], eax
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret 4
mov edi, ecx
jmp 0x4ad07e58
cmp ebx, 2
jne 0x4ad07e58
jmp 0x4ad07ebc
push 0x3f
push edi
call fcn.4ad015d7
test eax, eax
je 0x4ad07e95
jmp 0x4ad07e87
and dword [0x4ad2b9c4], 0
jmp 0x4ad07e2f
test bl, 0x10
je 0x4ad07e38
mov ax, word [0x4ad34440]
cmp word [ebp + 8], ax
je 0x4ad17432
push dword [esi]
call fcn.4ad0f18f
test al, al
jne 0x4ad0805a
mov edi, dword [ebp - 4]
lea edi, [edi + edi + 0xa]
push edi
call fcn.4ad026a9
test eax, eax
je 0x4ad08e36
mov eax, dword [esi]
test eax, eax
je 0x4ad08e36
push eax
push edi
call fcn.4ad026a9
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
test eax, eax
mov dword [esi], eax
je 0x4ad0805a
cmp dword [ebp - 8], 0
je 0x4ad0805a
push dword [ebp - 8]
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
pop ecx
pop ecx
mov eax, dword [esi + 0x14]
mov dword [eax], 0x10
jmp 0x4ad07e38
mov edi, dword [esi]
test edi, edi
je 0x4ad08e32
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
cmp eax, 2
jb 0x4ad07dda
cmp word [edi + 2], 0x3a
jne 0x4ad07dda
jmp 0x4ad1742a
mov dword [esi + 0xc], edx
mov edi, edx
jmp 0x4ad07e77
mov dword [ebp - 4], ebx
jmp 0x4ad07d8f
xor eax, eax
jmp 0x4ad08e07
xor eax, eax
jmp 0x4ad08042
cmp dword [0x4ad33b04], 1
je 0x4ad07e11
cmp dword [0x4ad33b08], 1
jne 0x4ad07e38
and dword [0x4ad33b08], 0
jmp 0x4ad07e11
cmp dword [ebp - 4], 2
jle 0x4ad07da2
mov word [edi], bx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetErrorMode]
dec edi
dec edi
call ebx
push 0x8000
push dword [esi]
mov dword [ebp - 0xc], eax
call fcn.4ad03166
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x4ad173cb
push eax
call fcn.4ad01538
test eax, eax
jne 0x4ad173b3
push dword [ebp + 8]
call fcn.4ad0c156
test eax, eax
je 0x4ad173cb
push dword [ebp + 8]
call fcn.4ad01538
test eax, eax
jne 0x4ad17418
push dword [ebp + 8]
call fcn.4ad0c156
test eax, eax
jmp 0x4ad17416
inc edi
inc edi
mov word [edi], 0x3a
cmp dword [0x4ad2fa20], 4
jne 0x4ad17401
cmp dword [0x4ad33b00], 0
jne 0x4ad173f5
push dword [esi]
push 1
push 0x236b
call fcn.4ad050c9
add esp, 0xc
mov dword [0x4ad33af8], 1
jmp 0x4ad17412
push dword [esi]
push 1
push 0x236b
call fcn.4ad050c9
add esp, 0xc
cmp dword [ebp + 8], 0xffffffff
je 0x4ad17420
push dword [ebp + 8]
call fcn.4ad01925
push dword [ebp - 0xc]
call ebx
jmp 0x4ad07da2
add edi, 4
jmp 0x4ad07dda
mov dword [ebp - 8], 0x4ad3cb72
jmp 0x4ad08008
mov eax, edi
jmp 0x4ad07e74