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

Disassembly:
sub esp, 0x28
push ebp
mov ebp, dword [esp + 0x30]
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esp + 4], edx
jne 0x49b6ce
mov eax, dword [esp + 0x3c]
mov edx, dword [edx]
push 1
push eax
mov eax, dword [esp + 0x40]
push eax
push ebp
call fcn.004ed570
pop ebp
add esp, 0x28
ret 0x14
mov eax, dword [ebp + 0x40]
test eax, eax
je 0x49baa5
cmp dword [eax + 0x1c], 1
je 0x49b6eb
mov eax, 1
pop ebp
add esp, 0x28
ret 0x14
mov ecx, dword [eax + 0xc]
test ecx, ecx
push esi
jne 0x49ba79
mov ecx, dword [eax]
call fcn.00519090
mov ecx, dword [ebp + 0x40]
mov esi, dword [esp + 0x3c]
mov ecx, dword [ecx]
mov edx, esi
call fcn.0041ce00
test eax, eax
je 0x49ba79
lea edx, [esp + 0xc]
push edx
push esi
call fcn.00572efe
add esp, 8
test eax, eax
jne 0x49ba79
cmp dword [esp + 0x44], 1
push edi
je 0x49ba60
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x49ba60
mov eax, dword [ebp]
push 0x2e
push eax
call fcn.00563c90
mov edi, eax
add esp, 8
test edi, edi
je 0x49ba60
push str..size
push edi
call fcn.00572b46
add esp, 8
test eax, eax
je 0x49ba60
push str..atime
push edi
call fcn.00572b46
add esp, 8
test eax, eax
jne 0x49b797
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x3c]
push ecx
push 0x5748f0
push edx
jmp 0x49ba6f
push str..mtime
push edi
call fcn.00572b46
add esp, 8
test eax, eax
jne 0x49b7b2
mov eax, dword [esp + 0x2c]
jmp 0x49ba64
push str..ctime
push edi
call fcn.00572b46
add esp, 8
test eax, eax
jne 0x49b7d8
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x3c]
push edx
push 0x5748f0
push eax
jmp 0x49ba6f
push str..shortfn
push edi
call fcn.00572b46
add esp, 8
test eax, eax
jne 0x49b808
mov ecx, dword [esp + 0x3c]
mov edi, ecx
mov eax, esi
sub edi, esi
mov dl, byte [eax]
mov byte [edi + eax], dl
inc eax
test dl, dl
jne 0x49b7f4
call fcn.0050b560
jmp 0x49ba78
push str..longfn
push edi
call fcn.00572b46
add esp, 8
test eax, eax
jne 0x49b85f
mov edi, dword [esp + 0x3c]
mov ecx, esi
mov byte [edi], al
call fcn.0050b450
test eax, eax
je 0x49b844
mov edx, edi
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x49b831
cmp byte [edi], 0
jne 0x49ba78
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 0x49b850
jmp 0x49ba78
push 0x578e44
push edi
call fcn.00572b46
add esp, 8
test eax, eax
jne 0x49ba78
mov ebp, dword [esp + 0x44]
push esi
mov byte [ebp], al
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x49ba42
test al, 0x20
je 0x49b8a5
mov edi, ebp
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x49b893
mov cx, word [0x578e40]
mov word [edi], cx
test ah, 8
je 0x49b8c2
mov edi, ebp
dec edi
lea ecx, [ecx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x49b8b0
mov dx, word [0x574d2c]
mov word [edi], dx
test al, 0x40
je 0x49b8e2
mov edi, ebp
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x49b8d0
mov cx, word [0x578e3c]
mov word [edi], cx
test al, 0x10
je 0x49b902
mov edi, ebp
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x49b8f0
mov dx, word [0x574d08]
mov word [edi], dx
test ah, 0x40
je 0x49b922
mov edi, ebp
dec edi
lea ebx, [ebx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x49b910
mov cx, word [0x575774]
mov word [edi], cx
test al, 2
je 0x49b942
mov edi, ebp
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x49b930
mov dx, word [0x578e38]
mov word [edi], dx
test al, al
jns 0x49b962
mov edi, ebp
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x49b950
mov cx, word [0x574d20]
mov word [edi], cx
test ah, 0x20
je 0x49b982
mov edi, ebp
dec edi
lea ebx, [ebx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x49b970
mov dx, word [0x574ce0]
mov word [edi], dx
test ah, 0x10
je 0x49b9a2
mov edi, ebp
dec edi
lea ebx, [ebx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x49b990
mov cx, word [0x578e34]
mov word [edi], cx
test al, 1
je 0x49b9c2
mov edi, ebp
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x49b9b0
mov dx, word [0x578e30]
mov word [edi], dx
test ah, 4
je 0x49b9e2
mov edi, ebp
dec edi
lea ebx, [ebx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x49b9d0
mov cx, word [0x574d14]
mov word [edi], cx
test ah, 2
je 0x49ba02
mov edi, ebp
dec edi
lea ebx, [ebx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x49b9f0
mov dx, word [0x574d3c]
mov word [edi], dx
test al, 4
je 0x49ba22
mov edi, ebp
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x49ba10
mov cx, word [0x57581c]
mov word [edi], cx
test ah, 1
je 0x49ba42
mov edi, ebp
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x49ba30
mov dx, word [str.yrohva]
mov word [edi], dx
mov edx, dword [esp + 0x3c]
mov eax, ebp
sub edx, ebp
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x49ba50
mov ebp, dword [esp + 0x38]
jmp 0x49ba78
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x3c]
push eax
push 0x5748f0
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
pop edi
mov eax, dword [ebp + 8]
test eax, eax
jle 0x49ba9d
mov esi, dword [esp + 8]
mov edx, dword [ebp + 0x40]
mov ecx, dword [esi]
call fcn.004c2730
mov dword [esi], eax
mov ecx, dword [ebp + 8]
dec ecx
mov eax, ecx
test eax, eax
mov dword [ebp + 8], ecx
jg 0x49ba84
mov dword [ebp + 8], 0
pop esi
mov eax, 2
pop ebp
add esp, 0x28
ret 0x14