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

Disassembly:
sub esp, 0x30
push ebp
mov ebp, dword [esp + 0x38]
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esp + 4], edx
jne 0x4aabee
mov eax, dword [esp + 0x44]
mov edx, dword [edx]
push 1
push eax
mov eax, dword [esp + 0x48]
push eax
push ebp
call fcn.00503c20
pop ebp
add esp, 0x30
ret 0x14
mov eax, dword [ebp + 0x40]
test eax, eax
je 0x4aaff2
cmp dword [eax + 0x1c], 1
je 0x4aac0b
mov eax, 1
pop ebp
add esp, 0x30
ret 0x14
mov ecx, dword [eax + 0xc]
test ecx, ecx
push esi
jne 0x4aafc6
mov ecx, dword [eax]
call fcn.00537930
mov ecx, dword [ebp + 0x40]
mov esi, dword [esp + 0x44]
mov ecx, dword [ecx]
mov edx, esi
call fcn.0041f5c0
test eax, eax
je 0x4aafc6
lea edx, [esp + 0x14]
push edx
push esi
call fcn.0059c8b7
add esp, 8
test eax, eax
jne 0x4aafc6
cmp dword [esp + 0x4c], 1
push edi
je 0x4aaf80
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4aaf80
mov eax, dword [ebp]
push 0x2e
push eax
call fcn.00591bd0
mov edi, eax
add esp, 8
test edi, edi
je 0x4aaf80
push str..size
push edi
call fcn.005a299c
add esp, 8
test eax, eax
je 0x4aaf80
push str..atime
push edi
call fcn.005a299c
add esp, 8
test eax, eax
jne 0x4aacb7
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x44]
push ecx
push 0x5a4990
push edx
jmp 0x4aafbc
push str..mtime
push edi
call fcn.005a299c
add esp, 8
test eax, eax
jne 0x4aacd2
mov eax, dword [esp + 0x34]
jmp 0x4aafb1
push str..ctime
push edi
call fcn.005a299c
add esp, 8
test eax, eax
jne 0x4aacf8
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x44]
push edx
push 0x5a4990
push eax
jmp 0x4aafbc
push str..shortfn
push edi
call fcn.005a299c
add esp, 8
test eax, eax
jne 0x4aad28
mov ecx, dword [esp + 0x44]
mov edi, ecx
mov eax, esi
sub edi, esi
mov dl, byte [eax]
mov byte [edi + eax], dl
inc eax
test dl, dl
jne 0x4aad14
call fcn.00524470
jmp 0x4aafc5
push str..longfn
push edi
call fcn.005a299c
add esp, 8
test eax, eax
jne 0x4aad7f
mov edi, dword [esp + 0x44]
mov ecx, esi
mov byte [edi], al
call fcn.00524360
test eax, eax
je 0x4aad64
mov edx, edi
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4aad51
cmp byte [edi], 0
jne 0x4aafc5
mov edx, edi
mov eax, esi
sub edx, esi
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4aad70
jmp 0x4aafc5
push 0x5a97cc
push edi
call fcn.005a299c
add esp, 8
test eax, eax
jne 0x4aafc5
mov ebp, dword [esp + 0x4c]
push esi
mov byte [ebp], al
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4aaf62
test al, 0x20
je 0x4aadc5
mov edi, ebp
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4aadb3
mov cx, word [0x5a97c8]
mov word [edi], cx
test ah, 8
je 0x4aade2
mov edi, ebp
dec edi
lea ecx, [ecx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4aadd0
mov dx, word [0x5a4e08]
mov word [edi], dx
test al, 0x40
je 0x4aae02
mov edi, ebp
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4aadf0
mov cx, word [0x5a97c4]
mov word [edi], cx
test al, 0x10
je 0x4aae22
mov edi, ebp
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4aae10
mov dx, word [0x5a4de4]
mov word [edi], dx
test ah, 0x40
je 0x4aae42
mov edi, ebp
dec edi
lea ebx, [ebx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4aae30
mov cx, word [0x5a5964]
mov word [edi], cx
test al, 2
je 0x4aae62
mov edi, ebp
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4aae50
mov dx, word [0x5a97c0]
mov word [edi], dx
test al, al
jns 0x4aae82
mov edi, ebp
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4aae70
mov cx, word [0x5a4dfc]
mov word [edi], cx
test ah, 0x20
je 0x4aaea2
mov edi, ebp
dec edi
lea ebx, [ebx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4aae90
mov dx, word [0x5a4dbc]
mov word [edi], dx
test ah, 0x10
je 0x4aaec2
mov edi, ebp
dec edi
lea ebx, [ebx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4aaeb0
mov cx, word [0x5a97bc]
mov word [edi], cx
test al, 1
je 0x4aaee2
mov edi, ebp
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4aaed0
mov dx, word [0x5a97b8]
mov word [edi], dx
test ah, 4
je 0x4aaf02
mov edi, ebp
dec edi
lea ebx, [ebx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4aaef0
mov cx, word [0x5a4df0]
mov word [edi], cx
test ah, 2
je 0x4aaf22
mov edi, ebp
dec edi
lea ebx, [ebx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4aaf10
mov dx, word [0x5a4e18]
mov word [edi], dx
test al, 4
je 0x4aaf42
mov edi, ebp
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4aaf30
mov cx, word [0x5a5a0c]
mov word [edi], cx
test ah, 1
je 0x4aaf62
mov edi, ebp
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4aaf50
mov dx, word [str.yrohva]
mov word [edi], dx
mov edx, dword [esp + 0x44]
mov eax, ebp
sub edx, ebp
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4aaf70
mov ebp, dword [esp + 0x40]
jmp 0x4aafc5
lea edx, [esp + 0x10]
mov ecx, esi
call fcn.00421690
test eax, eax
je 0x4aafad
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x44]
push eax
push ecx
push str._I64Ld
push edx
call fcn.005916f7
add esp, 0x10
jmp 0x4aafc5
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x44]
push eax
push 0x5a4990
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
pop edi
mov eax, dword [ebp + 8]
test eax, eax
jle 0x4aafea
mov esi, dword [esp + 8]
mov edx, dword [ebp + 0x40]
mov ecx, dword [esi]
call fcn.004d3ac0
mov dword [esi], eax
mov ecx, dword [ebp + 8]
dec ecx
mov eax, ecx
test eax, eax
mov dword [ebp + 8], ecx
jg 0x4aafd1
mov dword [ebp + 8], 0
pop esi
mov eax, 2
pop ebp
add esp, 0x30
ret 0x14