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

Disassembly:
test al, 0x10
je 0x4ad0af67
xor esi, esi
inc esi
mov dword [edi], esi
jmp 0x4ad0af67
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4ad240ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x210], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x218], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0x24]
push edi
push 0x4ad03154
mov dword [ebp - 0x21c], eax
call fcn.4ad0308d
push eax
call fcn.4ad0a10c
push 0
push 0
push dword [esi + 0x3c]
call fcn.4ad027a7
mov ebx, eax
push edi
push ebx
call fcn.4ad0a10c
test eax, eax
je 0x4ad0ad9c
mov ax, word [ebx]
inc ebx
inc ebx
test ax, ax
jne 0x4ad0ad92
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4ad0ada1
sub eax, edx
sar eax, 1
mov edi, eax
je 0x4ad15dcf
cmp edi, 0x104
jae 0x4ad139c3
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4ad0adc8
sub eax, edx
sar eax, 1
push ebx
mov esi, eax
call fcn.4ad01b0c
push eax
inc esi
push esi
push ebx
call fcn.4ad017fb
push ebx
call fcn.4ad09aa9
mov ecx, dword [ebp - 0x214]
mov dword [ecx], eax
cmp eax, 1
je 0x4ad15dd9
lea esi, [ebx + edi*2 + 2]
cmp word [esi], 0
je 0x4ad15de1
push esi
call fcn.4ad04756
cmp word [eax], 0
jne 0x4ad15dcf
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4ad0ae21
sub eax, edx
sar eax, 1
cmp eax, 0x104
ja 0x4ad139c3
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4ad0ae3f
sub eax, edx
sar eax, 1
push esi
mov edi, eax
call fcn.4ad01b0c
push eax
inc edi
push edi
push esi
call fcn.4ad017fb
movzx eax, word [esi + 2]
cmp ax, 0x3a
jne 0x4ad15e08
push esi
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.4ad017fb
mov esi, dword [ebp + 0x14]
push ebx
push esi
push dword [ebp - 0x210]
call fcn.4ad02ece
test eax, eax
jne 0x4ad139c3
mov ebx, dword [ebp - 0x214]
mov eax, dword [ebx]
mov eax, dword [eax + 0x18]
test byte [eax], 0x10
jne 0x4ad0aef4
movzx eax, word [0x4ad40620]
push eax
push dword [ebp - 0x210]
call fcn.4ad01b5c
mov edi, eax
test edi, edi
je 0x4ad139cd
inc edi
inc edi
movzx eax, word [0x4ad40620]
push eax
mov eax, dword [ebx]
push dword [eax + 0x10]
call fcn.4ad01b5c
test eax, eax
jne 0x4ad0aee0
mov eax, dword [ebx]
mov eax, dword [eax + 0x10]
push eax
mov eax, edi
sub eax, dword [ebp - 0x210]
sar eax, 1
sub esi, eax
push esi
push edi
call fcn.4ad017fb
mov ebx, dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x1c]
push ebx
call fcn.4ad02ece
test eax, eax
jne 0x4ad139c3
xor esi, esi
push esi
mov dword [0x4ad24120], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp - 0x21c]
and dword [edi], esi
push ebx
call fcn.4ad02d9a
mov ax, word [eax]
cmp ax, word [0x4ad40620]
je 0x4ad15e88
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4ad08732
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4ad24120], eax
test eax, eax
je 0x4ad0af67
cmp eax, 2
jne 0x4ad15ea8
test esi, esi
jne 0x4ad139a9
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.4ad0139d
leave
ret 0x20
movzx eax, word [0x4ad40620]
push eax
push dword [ebp - 0x210]
call fcn.4ad01b5c
mov ecx, eax
lea esi, [ecx + 2]
jmp 0x4ad139d8
push 0x232e
jmp 0x4ad15dd4
mov edi, dword [ebp - 0x210]
jmp 0x4ad0aec5
mov dx, word [ecx]
inc ecx
inc ecx
test dx, dx
jne 0x4ad139d8
sub ecx, esi
sar ecx, 1
mov esi, ecx
mov ecx, ebx
lea edx, [ecx + 2]
mov di, word [ecx]
inc ecx
inc ecx
test di, di
jne 0x4ad139ed
sub ecx, edx
sar ecx, 1
lea ecx, [ecx + esi + 1]
cmp ecx, 0x104
ja 0x4ad139c3
push eax
push dword [ebp + 0x1c]
push ebx
call fcn.4ad01a89
jmp 0x4ad0af6f
push 0x232a
call fcn.4ad1daea
push dword [0x4ad24120]
jmp 0x4ad15dd4
mov eax, dword [0x4ad2411c]
mov ax, word [eax]
mov word [ebp - 0x20c], ax
push 0x3a
pop eax
mov word [ebp - 0x20a], ax
xor eax, eax
mov word [ebp - 0x208], ax
jmp 0x4ad0ae7e
cmp word [esi], 0x5c
jne 0x4ad15e18
cmp ax, 0x5c
je 0x4ad0ae6c
mov eax, dword [0x4ad2411c]
mov ax, word [eax]
mov word [ebp - 0x20c], ax
push 0x3a
pop eax
mov word [ebp - 0x20a], ax
xor eax, eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4ad15e43
sub eax, edx
mov ecx, esi
sar eax, 1
lea edx, [ecx + 2]
mov di, word [ecx]
inc ecx
inc ecx
test di, di
jne 0x4ad15e56
sub ecx, edx
sar ecx, 1
lea ecx, [ecx + eax + 1]
mov eax, 0x104
cmp ecx, eax
ja 0x4ad139c3
push esi
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.4ad01a89
jmp 0x4ad0ae7e
mov eax, ebx
inc esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4ad15e8e
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [ebx + eax*2 - 2], cx
jmp 0x4ad0af3f
cmp eax, 3
je 0x4ad0af67
push eax
jmp 0x4ad15dd4