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

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
xor ebx, ebx
push edi
mov dword [0x4ad1d000], ebx
mov eax, dword [esi]
cmp eax, ebx
mov dword [esp + 0x14], 0x4ad1c714
mov dword [esp + 0x10], ebx
je 0x4ad133b9
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
mov dword [esp + 0x20], eax
jmp 0x4ad133bd
mov dword [esp + 0x20], ebx
push dword [esi]
call fcn.4ad1948c
mov edi, eax
cmp word [edi], 0x3a
jne 0x4ad13480
cmp dword [esp + 0x20], 2
jle 0x4ad13480
mov ebp, dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov word [edi], bx
dec edi
push ebx
dec edi
call ebp
push 0x8000
push dword [esi]
mov dword [esp + 0x20], eax
call fcn.4ad13fad
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4ad13428
push ebx
call fcn.4ad14ea0
test eax, eax
jne 0x4ad13414
push ebx
call fcn.4ad14f2b
test eax, eax
je 0x4ad13428
push ebx
call fcn.4ad14ea0
test eax, eax
jne 0x4ad13474
push ebx
call fcn.4ad14f2b
test eax, eax
jmp 0x4ad13472
inc edi
inc edi
mov word [edi], 0x3a
cmp dword [0x4ad1c7d8], 4
jne 0x4ad1345e
cmp dword [0x4ad1cf70], 0
jne 0x4ad13452
push dword [esi]
push 1
push 0x236b
call fcn.4ad1393b
add esp, 0xc
mov dword [0x4ad1cf74], 1
jmp 0x4ad1346f
push dword [esi]
push 1
push 0x236b
call fcn.4ad1393b
add esp, 0xc
cmp ebx, 0xffffffff
je 0x4ad1347a
push ebx
call fcn.4ad1408a
push dword [esp + 0x18]
call ebp
push 0x250
call fcn.4ad0da4c
mov dword [esi + 0x14], eax
mov di, word [edi]
mov ax, word [0x4ad1c744]
mov dword [esp + 0x18], edi
cmp di, ax
jne 0x4ad134a8
push 1
pop ebp
mov dword [esp + 0x10], ebp
jmp 0x4ad13508
push eax
push dword [esi]
call fcn.4ad19436
mov ebx, eax
test ebx, ebx
jne 0x4ad134d9
mov ebx, dword [esi]
test ebx, ebx
je 0x4ad134c6
push ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
jmp 0x4ad134c8
xor eax, eax
cmp eax, 2
jb 0x4ad134db
cmp word [ebx + 2], 0x3a
jne 0x4ad134db
add ebx, 4
jmp 0x4ad134db
inc ebx
inc ebx
mov edi, dword [sym.imp.MSVCRT.dll__wcsicmp]
push 0x4ad01438
push ebx
call edi
pop ecx
test eax, eax
pop ecx
je 0x4ad134fd
push 0x4ad01430
push ebx
call edi
pop ecx
test eax, eax
pop ecx
jne 0x4ad13505
mov dword [esp + 0x10], 1
push 1
pop ebp
cmp dword [esp + 0x10], 0
jne 0x4ad1357f
cmp dword [0x4ad1c7d8], 4
jne 0x4ad13547
cmp dword [0x4ad1cf6c], ebp
je 0x4ad13547
cmp dword [0x4ad1c7dc], ebp
jne 0x4ad13578
and dword [0x4ad1c7dc], 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4ad1355f
and dword [0x4ad1d000], 0
jmp 0x4ad1356a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4ad1355f
and dword [0x4ad1d000], 0
jmp 0x4ad1356a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4ad1d000], eax
cmp ebx, 0xffffffff
je 0x4ad13578
test bl, 0x10
je 0x4ad13578
mov dword [esp + 0x10], ebp
cmp dword [esp + 0x10], 0
je 0x4ad135ee
mov ax, word [0x4ad1c744]
cmp word [esp + 0x18], ax
jne 0x4ad13594
mov dword [esp + 0x14], 0x4ad1c716
push dword [esi]
call fcn.4ad1334a
test al, al
jne 0x4ad135e5
mov eax, dword [esp + 0x20]
lea edi, [eax + eax + 0xa]
push edi
call fcn.4ad0da4c
test eax, eax
je 0x4ad135c9
mov eax, dword [esi]
test eax, eax
je 0x4ad135c9
push eax
push edi
call fcn.4ad0da4c
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
pop ecx
jmp 0x4ad135cb
xor eax, eax
test eax, eax
mov dword [esi], eax
je 0x4ad135e5
cmp dword [esp + 0x14], 0
je 0x4ad135e5
push dword [esp + 0x14]
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
pop ecx
pop ecx
mov eax, dword [esi + 0x14]
mov dword [eax], 0x10
mov edx, dword [esi]
xor edi, edi
mov ecx, edx
mov ebx, ebp
mov ax, word [ecx]
test ax, ax
je 0x4ad13622
cmp ax, word [0x4ad1c744]
je 0x4ad13612
cmp ax, 0x3a
jne 0x4ad13614
cmp ebx, 2
jne 0x4ad13614
mov edi, ecx
inc ecx
inc ecx
inc ebx
mov ax, word [ecx]
test ax, ax
jne 0x4ad135fe
push 1
pop ebp
test edi, edi
mov dword [esi + 8], edi
je 0x4ad13639
cmp word [edi], 0
lea eax, [edi + 2]
jne 0x4ad13634
mov eax, edi
mov dword [esi + 0xc], eax
jmp 0x4ad1363e
mov dword [esi + 0xc], edx
mov edi, edx
push 0x2a
push edi
call fcn.4ad19418
test eax, eax
jne 0x4ad13656
push 0x3f
push edi
call fcn.4ad19418
test eax, eax
je 0x4ad13660
or dword [esi + 0x18], 8
mov dword [0x4ad1cf84], ebp
push 0x2e
push edi
call fcn.4ad19418
mov dword [esi + 0x10], eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4