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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
push edi
push esi
call fcn.004afb0c
add esp, 8
test eax, eax
jne 0x4a2881
mov ecx, esi
call fcn.004a2310
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4a2878
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4a2878
cmp dword [ebp - 4], 0
jne 0x4a281c
mov ecx, dword [ebp - 0x18]
xor eax, eax
add eax, dword [ebp - 0x1c]
adc ecx, 0
cmp ecx, 0x19db1de
ja 0x4a2767
jb 0x4a2757
cmp eax, 0xd53e8000
jae 0x4a2767
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
jmp 0x4a2774
push ecx
push eax
lea ecx, [edi + 0x20]
call fcn.004a2430
add esp, 8
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
test ebx, ebx
jne 0x4a2790
test eax, eax
jne 0x4a2790
mov eax, dword [edi + 0x20]
mov dword [edi + 0x18], eax
mov eax, dword [edi + 0x24]
mov dword [edi + 0x1c], eax
jmp 0x4a27c5
xor ecx, ecx
add ecx, ebx
adc eax, 0
cmp eax, 0x19db1de
ja 0x4a27b8
jb 0x4a27a8
cmp ecx, 0xd53e8000
jae 0x4a27b8
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
jmp 0x4a27c5
push eax
push ecx
lea ecx, [edi + 0x18]
call fcn.004a2430
add esp, 8
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
test edx, edx
jne 0x4a27d7
test eax, eax
je 0x4a2858
xor ecx, ecx
add ecx, edx
adc eax, 0
cmp eax, 0x19db1de
ja 0x4a2806
jb 0x4a27ef
cmp ecx, 0xd53e8000
jae 0x4a2806
mov dword [edi + 0x28], 0
xor eax, eax
mov dword [edi + 0x2c], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push ecx
lea ecx, [edi + 0x28]
call fcn.004a2430
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [edi + 0x20]
lea ecx, [ebp - 0x1c]
call fcn.004a2490
cmp dword [ebp - 0xc], 0
jne 0x4a2841
cmp dword [ebp - 8], 0
jne 0x4a2841
mov eax, dword [edi + 0x20]
mov dword [edi + 0x18], eax
mov eax, dword [edi + 0x24]
mov dword [edi + 0x1c], eax
jmp 0x4a284c
lea edx, [edi + 0x18]
lea ecx, [ebp - 0xc]
call fcn.004a2490
cmp dword [ebp - 0x14], 0
jne 0x4a286d
cmp dword [ebp - 0x10], 0
jne 0x4a286d
mov eax, dword [edi + 0x20]
mov dword [edi + 0x28], eax
mov eax, dword [edi + 0x24]
mov dword [edi + 0x2c], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [edi + 0x28]
lea ecx, [ebp - 0x14]
call fcn.004a2490
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4a28db
test bl, 0x10
je 0x4a28db
push 0x30
push 0
push edi
call fcn.004b67a0
add esp, 0xc
mov ecx, 0x210000
call fcn.0049e860
shl ebx, 7
not ebx
mov dword [edi + 0x20], eax
and ebx, 0x80
mov dword [edi + 0x28], eax
or ebx, 0x4100
mov dword [edi + 0x18], eax
mov dword [edi + 0x24], edx
xor eax, eax
mov dword [edi + 0x2c], edx
mov dword [edi + 0x1c], edx
mov word [edi + 6], bx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret