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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4ad2406c]
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 0x4ad01e28
mov dword [ebp - 0x21c], eax
call fcn.4ad01d61
push eax
call fcn.4ad08608
push 0
push 0
push dword [esi + 0x3c]
call fcn.4ad01f27
mov ebx, eax
push edi
push ebx
call fcn.4ad08608
test eax, eax
je 0x4ad0c70d
mov ax, word [ebx]
inc ebx
inc ebx
test ax, ax
jne 0x4ad0c703
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4ad0c712
sub eax, edx
sar eax, 1
mov edi, eax
je 0x4ad1571f
cmp edi, 0x104
jae 0x4ad13595
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4ad0c739
sub eax, edx
sar eax, 1
push ebx
mov esi, eax
call fcn.4ad0156d
push eax
inc esi
push esi
push ebx
call fcn.4ad01416
push ebx
call fcn.4ad08468
cmp eax, 1
mov ecx, dword [ebp - 0x214]
mov dword [ecx], eax
je 0x4ad15729
lea esi, [ebx + edi*2 + 2]
xor edi, edi
cmp word [esi], di
je 0x4ad15731
push esi
call fcn.4ad032eb
cmp word [eax], di
jne 0x4ad1571f
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x4ad0c792
sub eax, edx
sar eax, 1
cmp eax, 0x104
ja 0x4ad13595
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x4ad0c7b0
sub eax, edx
sar eax, 1
push esi
mov edi, eax
call fcn.4ad0156d
push eax
inc edi
push edi
push esi
call fcn.4ad01416
movzx eax, word [esi + 2]
cmp ax, 0x3a
jne 0x4ad15755
push esi
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.4ad01416
mov esi, dword [ebp + 0x14]
push ebx
push esi
push dword [ebp - 0x210]
call fcn.4ad01a75
test eax, eax
jne 0x4ad13595
mov ebx, dword [ebp - 0x214]
mov eax, dword [ebx]
mov eax, dword [eax + 0x18]
test byte [eax], 0x10
jne 0x4ad0c865
movzx eax, word [0x4ad40604]
push eax
push dword [ebp - 0x210]
call fcn.4ad01a11
mov edi, eax
test edi, edi
je 0x4ad1359f
inc edi
inc edi
movzx eax, word [0x4ad40604]
push eax
mov eax, dword [ebx]
push dword [eax + 0x10]
call fcn.4ad01a11
test eax, eax
jne 0x4ad0c851
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.4ad01416
mov ebx, dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x1c]
push ebx
call fcn.4ad01a75
test eax, eax
jne 0x4ad13595
xor esi, esi
push esi
mov dword [0x4ad240e0], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp - 0x21c]
and dword [edi], esi
push ebx
call fcn.4ad01a37
mov ax, word [eax]
cmp ax, word [0x4ad40604]
je 0x4ad157d3
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4ad13583
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x4ad240e0], eax
je 0x4ad0c8d8
cmp eax, 2
jne 0x4ad157f1
test esi, esi
jne 0x4ad1352d
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.4ad013fa
leave
ret 0x20
movzx eax, word [0x4ad40604]
push eax
push dword [ebp - 0x210]
call fcn.4ad01a11
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
inc ecx
inc ecx
test dx, dx
jne 0x4ad13545
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 0x4ad1355a
sub ecx, edx
sar ecx, 1
lea ecx, [ecx + esi + 1]
cmp ecx, 0x104
ja 0x4ad13595
push eax
push dword [ebp + 0x1c]
push ebx
call fcn.4ad014d2
jmp 0x4ad0c8e0
test al, 0x10
je 0x4ad0c8d8
xor esi, esi
inc esi
mov dword [edi], esi
jmp 0x4ad0c8d8
push 0x232e
jmp 0x4ad15724
mov edi, dword [ebp - 0x210]
jmp 0x4ad0c836
push 0x232a
call fcn.4ad1d402
push dword [0x4ad240e0]
jmp 0x4ad15724
mov eax, dword [0x4ad240dc]
mov ax, word [eax]
mov word [ebp - 0x20c], ax
mov word [ebp - 0x20a], 0x3a
mov word [ebp - 0x208], di
jmp 0x4ad0c7ef
cmp word [esi], 0x5c
jne 0x4ad15765
cmp ax, 0x5c
je 0x4ad0c7dd
mov eax, dword [0x4ad240dc]
mov ax, word [eax]
and word [ebp - 0x208], 0
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
mov word [ebp - 0x20a], 0x3a
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4ad1578e
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 0x4ad157a1
sub ecx, edx
sar ecx, 1
lea ecx, [ecx + eax + 1]
mov eax, 0x104
cmp ecx, eax
ja 0x4ad13595
push esi
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.4ad014d2
jmp 0x4ad0c7ef
mov eax, ebx
inc esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4ad157d9
sub eax, edx
sar eax, 1
and word [ebx + eax*2 - 2], cx
jmp 0x4ad0c8b0
cmp eax, 3
je 0x4ad0c8d8
push eax
jmp 0x4ad15724