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

Disassembly:
mov eax, 0x1058
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x1054], eax
push ebp
push esi
mov esi, dword [esp + 0x1064]
mov ebp, ecx
cmp byte [esi], 0
je 0x4ad2d4
push ebx
push edi
lea ebx, [ebp + 0x101e]
push ebx
call fcn.00495850
mov edi, eax
cmp edi, ebx
jbe 0x4ad0f5
xor eax, eax
push ebx
mov word [edi - 2], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, 0x5c
mov word [edi - 2], cx
cmp eax, 0xffffffff
je 0x4ad0f5
test eax, 0x400
je 0x4ad0f5
mov byte [esi], 0
push str.System_Volume_Information_
push ebx
call fcn.0052053b
add esp, 8
test eax, eax
jne 0x4ad2cf
cmp byte [esi], al
je 0x4ad2d2
mov ecx, dword [ebp + 0x40f0]
test ecx, ecx
je 0x4ad130
push 1
push 1
push eax
push ebx
call fcn.00473300
test al, al
jne 0x4ad2cf
cmp byte [esi], 0
je 0x4ad2d2
mov ecx, dword [ebp + 0x30e0]
test ecx, ecx
je 0x4ad149
push ebx
call fcn.004b0450
mov edi, dword [ebp + 0x30e4]
test edi, edi
je 0x4ad234
mov ecx, dword [edi + 4]
mov esi, dword [ebp + 0x30ec]
inc ecx
mov dword [esp + 0x14], esi
mov dword [edi + 4], ecx
cmp ecx, dword [edi + 8]
jbe 0x4ad22b
mov eax, dword [edi + 0xc]
test eax, eax
je 0x4ad199
cmp ecx, eax
jbe 0x4ad199
push eax
push str.Maximum_allowed_array_size___u__is_exceeded
push 0x5b68fc
call fcn.0047af10
add esp, 0xc
mov ecx, 0x5b68fc
call fcn.0047b030
mov ecx, dword [edi + 8]
mov eax, ecx
shr eax, 2
add ecx, 0x20
add ecx, eax
mov eax, dword [edi + 4]
mov dword [esp + 0x10], eax
cmp eax, ecx
ja 0x4ad1b7
mov eax, ecx
mov dword [esp + 0x10], ecx
shl eax, 2
cmp byte [edi + 0x10], 0
push eax
je 0x4ad208
call fcn.00525bb0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4ad1d9
mov ecx, 0x5b68fc
call fcn.0047b030
mov eax, dword [edi]
test eax, eax
je 0x4ad222
mov esi, dword [edi + 8]
shl esi, 2
push esi
push eax
push ebp
call fcn.0051f6b0
add esp, 0xc
push esi
push dword [edi]
call fcn.004ad810
push dword [edi]
call fcn.00525b95
mov esi, dword [esp + 0x18]
add esp, 4
jmp 0x4ad222
push dword [edi]
call fcn.00525bbb
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x4ad222
mov ecx, 0x5b68fc
call fcn.0047b030
mov eax, dword [esp + 0x10]
mov dword [edi], ebp
mov dword [edi + 8], eax
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov dword [eax + ecx*4 - 4], esi
push 0x800
lea eax, [esp + 0x68]
push eax
push ebx
call fcn.004939f0
xor eax, eax
mov dword [esp + 0x1c], 0x54266c
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x64]
mov dword [esp + 0x20], 0x54266c
mov dword [esp + 0x24], 0x54266c
mov dword [esp + 0x28], 0x54266c
mov dword [esp + 0x2c], 0x54266c
mov dword [esp + 0x30], 0x54266c
mov dword [esp + 0x34], 0x54266c
mov dword [esp + 0x60], 0x57
mov dword [esp + 0x18], eax
mov dword [esp + 0x58], 1
call fcn.004b2040
mov ecx, 0x5b68fc
call fcn.0047b860
jmp 0x4ad2d2
mov byte [esi], 0
pop edi
pop ebx
mov ecx, dword [esp + 0x105c]
pop esi
pop ebp
xor ecx, esp
call fcn.0051dca8
add esp, 0x1058
ret 4