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

Disassembly:
test al, 0x10
je 0x4a214293
jmp 0x4a21555d
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4a2340ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
or dword [ebp - 0x214], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x218], eax
xor al, al
push edi
mov byte [ebp - 0x20d], 0
xor ebx, ebx
mov ecx, dword [esi + 0x38]
movzx edi, word [ecx + ebx*2]
cmp di, 0x22
je 0x4a21c123
test di, di
je 0x4a214274
cmp byte [ebp - 0x20d], 0
jne 0x4a214245
test al, al
jne 0x4a214245
push edi
push str._______t_
call fcn.4a2118eb
test eax, eax
jne 0x4a214274
cmp dword [ebp - 0x214], 0xffffffff
jne 0x4a214261
push edi
push 0x4a234678
call fcn.4a2118eb
test eax, eax
jne 0x4a215572
xor al, al
mov word [ebp + ebx*2 - 0x20c], di
inc ebx
cmp ebx, 0x103
jb 0x4a214213
test ebx, ebx
je 0x4a22713d
xor eax, eax
cmp dword [ebp - 0x214], 0xffffffff
mov word [ebp + ebx*2 - 0x20c], ax
jne 0x4a215547
push dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push eax
push 0x2a
call fcn.4a2140f2
mov edi, eax
mov dword [ebp - 0x214], edi
cmp edi, 0xffffffff
je 0x4a2154b2
cmp edi, 0x14
je 0x4a21660b
mov byte [ebp - 0x20d], 0
mov byte [ebp - 0x20e], 0
cmp edi, 0xffffffff
je 0x4a2154d4
mov eax, dword [esi + 0x38]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4a2142de
sub eax, edx
sar eax, 1
cmp ebx, eax
jne 0x4a227145
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.4a2113a9
leave
ret 8
push dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push eax
push 0x2d
call fcn.4a2140f2
cmp eax, 0x2d
jne 0x4a2142c1
jmp 0x4a2142fa
xor ebx, ebx
mov byte [ebp - 0x20f], bl
mov eax, dword [esi + 0x38]
movzx edi, word [eax + ebx*2]
test di, di
je 0x4a21553e
cmp di, 0x22
je 0x4a21c13d
cmp byte [ebp - 0x20d], 0
jne 0x4a215528
cmp byte [ebp - 0x20e], 0
jne 0x4a215528
push edi
call dword [sym.imp.msvcrt.dll_iswspace]
pop ecx
test eax, eax
jne 0x4a21553e
push edi
push 0x4a234670
call fcn.4a2118eb
test eax, eax
jne 0x4a21553e
cmp di, word [0x4a25065c]
je 0x4a21553e
inc ebx
mov byte [ebp - 0x20e], 0
cmp byte [ebp - 0x20f], 0
je 0x4a2154dc
jmp 0x4a2142d8
mov byte [ebp - 0x20f], 1
jmp 0x4a215530
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4a212cba
mov ebx, dword [ebp - 0x214]
xor eax, eax
mov word [ebp + ebx*2 - 0x20c], ax
jmp 0x4a214293
cmp byte [0x4a234081], 0
je 0x4a214274
mov dword [ebp - 0x214], ebx
jmp 0x4a214261
mov dword [esi + 0x40], 1
jmp 0x4a2142c1
cmp byte [ebp - 0x20d], 0
sete al
test al, al
mov byte [ebp - 0x20d], al
sete al
jmp 0x4a214224
cmp byte [ebp - 0x20d], 0
sete al
test al, al
mov byte [ebp - 0x20d], al
sete byte [ebp - 0x20e]
jmp 0x4a2154f2
lea eax, [ebx - 1]
jmp 0x4a2142fa
lea edi, [eax + 1]
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4a227162
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4a227152
sub eax, edx
sar eax, 1
add edi, eax
lea eax, [edi + edi]
push eax
call fcn.4a212041
mov ecx, dword [esi + 0x38]
add ebx, ebx
add ecx, ebx
push ecx
push edi
push eax
mov dword [ebp - 0x218], eax
call fcn.4a21185a
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4a227194
push eax
push edi
push dword [ebp - 0x218]
call fcn.4a2120a9
mov eax, dword [ebp - 0x218]
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x38]
xor ecx, ecx
mov word [ebx + eax], cx
jmp 0x4a2142f4