Function at 0x4b3a80
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.004dc041
add esp, 8
test eax, eax
jne 0x4b3c41
mov ecx, esi
call fcn.004b37e0
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 0x4b3c38
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 0x4b3c38
cmp dword [ebp - 4], 0
jne 0x4b3bdc
mov ecx, dword [ebp - 0x18]
xor eax, eax
add eax, dword [ebp - 0x1c]
adc ecx, 0
cmp ecx, 0x19db1de
ja 0x4b3b27
jb 0x4b3b17
cmp eax, 0xd53e8000
jae 0x4b3b27
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
jmp 0x4b3b34
push ecx
push eax
lea ecx, [edi + 0x20]
call fcn.004b3900
add esp, 8
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
test ebx, ebx
jne 0x4b3b50
test eax, eax
jne 0x4b3b50
mov eax, dword [edi + 0x20]
mov dword [edi + 0x18], eax
mov eax, dword [edi + 0x24]
mov dword [edi + 0x1c], eax
jmp 0x4b3b85
xor ecx, ecx
add ecx, ebx
adc eax, 0
cmp eax, 0x19db1de
ja 0x4b3b78
jb 0x4b3b68
cmp ecx, 0xd53e8000
jae 0x4b3b78
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
jmp 0x4b3b85
push eax
push ecx
lea ecx, [edi + 0x18]
call fcn.004b3900
add esp, 8
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
test edx, edx
jne 0x4b3b97
test eax, eax
je 0x4b3c18
xor ecx, ecx
add ecx, edx
adc eax, 0
cmp eax, 0x19db1de
ja 0x4b3bc6
jb 0x4b3baf
cmp ecx, 0xd53e8000
jae 0x4b3bc6
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.004b3900
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.004b3960
cmp dword [ebp - 0xc], 0
jne 0x4b3c01
cmp dword [ebp - 8], 0
jne 0x4b3c01
mov eax, dword [edi + 0x20]
mov dword [edi + 0x18], eax
mov eax, dword [edi + 0x24]
mov dword [edi + 0x1c], eax
jmp 0x4b3c0c
lea edx, [edi + 0x18]
lea ecx, [ebp - 0xc]
call fcn.004b3960
cmp dword [ebp - 0x14], 0
jne 0x4b3c2d
cmp dword [ebp - 0x10], 0
jne 0x4b3c2d
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.004b3960
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 0x4b3c9b
test bl, 0x10
je 0x4b3c9b
push 0x30
push 0
push edi
call fcn.004cddb0
add esp, 0xc
mov ecx, 0x210000
call fcn.004b30d0
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