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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [0x4ad24120], 0
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi]
mov eax, ecx
push edi
mov dword [ebp - 8], 0x4ad24864
lea edx, [eax + 2]
mov di, word [eax]
inc eax
inc eax
test di, di
jne 0x4ad098de
sub eax, edx
push ebx
sar eax, 1
push ecx
mov dword [ebp - 4], eax
call fcn.4ad02d9a
mov edi, eax
cmp word [edi], 0x3a
je 0x4ad1963f
push 0x250
call fcn.4ad0190d
mov dword [esi + 0x18], eax
movzx ecx, word [edi]
mov ax, word [0x4ad40620]
mov dword [ebp + 8], ecx
cmp cx, ax
je 0x4ad105c8
movzx eax, ax
push eax
push dword [esi]
call fcn.4ad01b5c
mov edi, eax
test edi, edi
je 0x4ad196fe
inc edi
inc edi
mov ebx, dword [sym.imp.msvcrt.dll__wcsicmp]
push 0x4ad02dc0
push edi
call ebx
pop ecx
pop ecx
test eax, eax
je 0x4ad105c8
push 0x4ad02db8
push edi
call ebx
pop ecx
pop ecx
test eax, eax
je 0x4ad105c8
cmp dword [0x4ad24098], 4
je 0x4ad11530
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4ad09a81
and dword [0x4ad24120], 0
cmp ebx, 0xffffffff
je 0x4ad0999a
test bl, 0x10
jne 0x4ad105c8
mov edx, dword [esi]
xor ebx, ebx
inc ebx
xor edi, edi
mov ecx, edx
movzx eax, word [ecx]
test ax, ax
je 0x4ad099c3
cmp ax, word [0x4ad40620]
je 0x4ad099bf
cmp ax, 0x3a
je 0x4ad09a12
inc ecx
inc ecx
inc ebx
jmp 0x4ad099a3
mov edi, ecx
jmp 0x4ad099ba
mov dword [esi + 0xc], edi
pop ebx
test edi, edi
je 0x4ad106b9
cmp word [edi], ax
lea eax, [edi + 2]
je 0x4ad1972f
mov dword [esi + 0x10], eax
push 0x2a
push edi
call fcn.4ad01892
test eax, eax
jne 0x4ad09a91
push 0x3f
push edi
call fcn.4ad01892
test eax, eax
jne 0x4ad09a91
push 0x2e
push edi
call fcn.4ad01892
mov dword [esi + 0x14], eax
xor eax, eax
pop edi
inc eax
pop esi
leave
ret 4
cmp ebx, 2
jne 0x4ad099ba
jmp 0x4ad099bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4ad24120], eax
jmp 0x4ad0998c
or dword [esi + 0x1c], 8
mov dword [0x4ad240ec], 1
jmp 0x4ad099fe
mov ax, word [0x4ad40620]
cmp word [ebp + 8], ax
je 0x4ad106ad
push dword [esi]
call fcn.4ad1061c
test al, al
jne 0x4ad10609
mov edi, dword [ebp - 4]
mov ebx, dword [esi]
add edi, 5
lea eax, [edi + edi]
push eax
call fcn.4ad0190d
push ebx
push edi
push eax
mov dword [esi], eax
call fcn.4ad017fb
push dword [ebp - 8]
push edi
push dword [esi]
call fcn.4ad01a89
mov eax, dword [esi + 0x18]
mov dword [eax], 0x10
jmp 0x4ad0999a
mov dword [ebp - 8], 0x4ad24866
jmp 0x4ad105d8
mov dword [esi + 0x10], edx
mov edi, edx
jmp 0x4ad099de
cmp dword [0x4ad240e0], 1
je 0x4ad09972
cmp dword [0x4ad2409c], 1
jne 0x4ad0999a
and dword [0x4ad2409c], 0
jmp 0x4ad09972
cmp dword [ebp - 4], 2
jle 0x4ad09902
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.4ad03c28
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x4ad1969e
push eax
call fcn.4ad03bd3
test eax, eax
jne 0x4ad19686
push dword [ebp + 8]
call fcn.4ad08776
test eax, eax
je 0x4ad1969e
push dword [ebp + 8]
call fcn.4ad03bd3
test eax, eax
jne 0x4ad196ec
push dword [ebp + 8]
call fcn.4ad08776
test eax, eax
jmp 0x4ad196ea
inc edi
push 0x3a
inc edi
pop eax
mov word [edi], ax
cmp dword [0x4ad24098], 4
jne 0x4ad196d5
cmp dword [0x4ad240e4], 0
jne 0x4ad196c9
push dword [esi]
push 1
push 0x236b
call fcn.4ad0ab8b
add esp, 0xc
mov dword [0x4ad240e8], 1
jmp 0x4ad196e6
push dword [esi]
push 1
push 0x236b
call fcn.4ad0ab8b
add esp, 0xc
cmp dword [ebp + 8], 0xffffffff
je 0x4ad196f4
push dword [ebp + 8]
call fcn.4ad03b88
push dword [ebp - 0xc]
call ebx
jmp 0x4ad09902
mov edi, dword [esi]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4ad19705
sub eax, edx
sar eax, 1
cmp eax, 2
jb 0x4ad0993b
cmp word [edi + 2], 0x3a
jne 0x4ad0993b
add edi, 4
jmp 0x4ad0993b
mov eax, edi
jmp 0x4ad099db