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

Disassembly:
mov edi, ecx
jmp 0x4ad0954e
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [0x4ad24128], 0
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi]
mov eax, ecx
push edi
mov dword [ebp - 8], 0x4ad24874
lea edx, [eax + 2]
mov di, word [eax]
inc eax
inc eax
test di, di
jne 0x4ad0946e
sub eax, edx
push ebx
sar eax, 1
push ecx
mov dword [ebp - 4], eax
call fcn.4ad02ed1
mov edi, eax
cmp word [edi], 0x3a
je 0x4ad1961d
push 0x250
call fcn.4ad02041
mov dword [esi + 0x18], eax
movzx ecx, word [edi]
mov ax, word [0x4ad40664]
mov dword [ebp + 8], ecx
cmp cx, ax
je 0x4ad10b68
movzx eax, ax
push eax
push dword [esi]
call fcn.4ad02148
mov edi, eax
test edi, edi
je 0x4ad196dc
inc edi
inc edi
mov ebx, dword [sym.imp.msvcrt.dll__wcsicmp]
push 0x4ad02ec4
push edi
call ebx
pop ecx
pop ecx
test eax, eax
je 0x4ad10b68
push 0x4ad02ebc
push edi
call ebx
pop ecx
pop ecx
test eax, eax
je 0x4ad10b68
cmp dword [0x4ad24098], 4
je 0x4ad111e4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4ad09614
and dword [0x4ad24128], 0
cmp ebx, 0xffffffff
je 0x4ad0952a
test bl, 0x10
jne 0x4ad10b68
mov edx, dword [esi]
xor ebx, ebx
inc ebx
xor edi, edi
mov ecx, edx
movzx eax, word [ecx]
test ax, ax
je 0x4ad09553
cmp ax, word [0x4ad40664]
je 0x4ad09440
cmp ax, 0x3a
je 0x4ad095a2
inc ecx
inc ecx
inc ebx
jmp 0x4ad09533
mov dword [esi + 0xc], edi
pop ebx
test edi, edi
je 0x4ad10bba
cmp word [edi], ax
lea eax, [edi + 2]
je 0x4ad1970d
mov dword [esi + 0x10], eax
push 0x2a
push edi
call fcn.4ad018eb
test eax, eax
jne 0x4ad09624
push 0x3f
push edi
call fcn.4ad018eb
test eax, eax
jne 0x4ad09624
push 0x2e
push edi
call fcn.4ad018eb
mov dword [esi + 0x14], eax
xor eax, eax
pop edi
inc eax
pop esi
leave
ret 4
cmp ebx, 2
jne 0x4ad0954e
jmp 0x4ad09440
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4ad24128], eax
jmp 0x4ad0951c
or dword [esi + 0x1c], 8
mov dword [0x4ad240f4], 1
jmp 0x4ad0958e
mov ax, word [0x4ad40664]
cmp word [ebp + 8], ax
jne 0x4ad10b7b
mov dword [ebp - 8], 0x4ad24876
push dword [esi]
call fcn.4ad10bc9
test al, al
jne 0x4ad10bac
mov edi, dword [ebp - 4]
mov ebx, dword [esi]
add edi, 5
lea eax, [edi + edi]
push eax
call fcn.4ad02041
push ebx
push edi
push eax
mov dword [esi], eax
call fcn.4ad0185a
push dword [ebp - 8]
push edi
push dword [esi]
call fcn.4ad020a9
mov eax, dword [esi + 0x18]
mov dword [eax], 0x10
jmp 0x4ad0952a
mov dword [esi + 0x10], edx
mov edi, edx
jmp 0x4ad0956e
cmp dword [0x4ad240e8], 1
je 0x4ad09502
cmp dword [0x4ad2409c], 1
jne 0x4ad0952a
and dword [0x4ad2409c], 0
jmp 0x4ad09502
cmp dword [ebp - 4], 2
jle 0x4ad09492
mov ebx, dword [sym.imp.KERNEL32.dll_SetErrorMode]
xor eax, eax
mov word [edi], ax
dec edi
push eax
dec edi
call ebx
push 0x8000
push dword [esi]
mov dword [ebp - 0xc], eax
call fcn.4ad039ef
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x4ad1967c
push eax
call fcn.4ad03b03
test eax, eax
jne 0x4ad19664
push dword [ebp + 8]
call fcn.4ad06bea
test eax, eax
je 0x4ad1967c
push dword [ebp + 8]
call fcn.4ad03b03
test eax, eax
jne 0x4ad196ca
push dword [ebp + 8]
call fcn.4ad06bea
test eax, eax
jmp 0x4ad196c8
inc edi
push 0x3a
inc edi
pop eax
mov word [edi], ax
cmp dword [0x4ad24098], 4
jne 0x4ad196b3
cmp dword [0x4ad240ec], 0
jne 0x4ad196a7
push dword [esi]
push 1
push 0x236b
call fcn.4ad06d44
add esp, 0xc
mov dword [0x4ad240f0], 1
jmp 0x4ad196c4
push dword [esi]
push 1
push 0x236b
call fcn.4ad06d44
add esp, 0xc
cmp dword [ebp + 8], 0xffffffff
je 0x4ad196d2
push dword [ebp + 8]
call fcn.4ad03ab3
push dword [ebp - 0xc]
call ebx
jmp 0x4ad09492
mov edi, dword [esi]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4ad196e3
sub eax, edx
sar eax, 1
cmp eax, 2
jb 0x4ad094cb
cmp word [edi + 2], 0x3a
jne 0x4ad094cb
add edi, 4
jmp 0x4ad094cb
mov eax, edi
jmp 0x4ad0956b