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

Disassembly:
sub esp, 0x2c
push ebp
mov ebp, dword [esp + 0x3c]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4b6895
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x38]
push 1
push eax
mov eax, dword [edx]
push ecx
mov ecx, dword [esp + 0x40]
push ebp
push eax
push ecx
call fcn.00515c10
add esp, 0x18
pop ebp
add esp, 0x2c
ret
mov eax, dword [ebp + 0x40]
test eax, eax
je 0x4b6caa
cmp dword [eax + 0x1c], 1
je 0x4b68b0
mov eax, 1
pop ebp
add esp, 0x2c
ret
mov ecx, dword [eax + 0xc]
test ecx, ecx
push esi
jne 0x4b6c79
mov edx, dword [eax]
push edx
call fcn.00551fa0
mov eax, dword [ebp + 0x40]
mov esi, dword [esp + 0x4c]
mov ecx, dword [eax]
push esi
push ecx
call fcn.004222b0
add esp, 0xc
test eax, eax
je 0x4b6c79
lea edx, [esp + 0x10]
push edx
push esi
call fcn.005d81c7
add esp, 8
test eax, eax
jne 0x4b6c79
cmp dword [esp + 0x50], 1
push edi
je 0x4b6c30
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4b6c30
mov eax, dword [ebp]
push 0x2e
push eax
call fcn.005ccc30
mov edi, eax
add esp, 8
test edi, edi
je 0x4b6c30
push str..size
push edi
call fcn.005e31f5
add esp, 8
test eax, eax
je 0x4b6c30
push str..atime
push edi
call fcn.005e31f5
add esp, 8
test eax, eax
jne 0x4b6955
mov ecx, dword [esp + 0x2c]
jmp 0x4b6c64
push str..mtime
push edi
call fcn.005e31f5
add esp, 8
test eax, eax
jne 0x4b697b
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x48]
push eax
push 0x5e6a44
push ecx
jmp 0x4b6c6f
push str..ctime
push edi
call fcn.005e31f5
add esp, 8
test eax, eax
jne 0x4b69a1
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x48]
push edx
push 0x5e6a44
push eax
jmp 0x4b6c6f
push str..shortfn
push edi
call fcn.005e31f5
add esp, 8
test eax, eax
jne 0x4b69d8
mov edi, dword [esp + 0x48]
mov edx, edi
mov eax, esi
sub edx, esi
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4b69c0
push edi
call fcn.0053b420
add esp, 4
jmp 0x4b6c78
push str..longfn
push edi
call fcn.005e31f5
add esp, 8
test eax, eax
jne 0x4b6a2f
mov edi, dword [esp + 0x48]
push esi
mov byte [edi], al
call fcn.0053b300
add esp, 4
test eax, eax
je 0x4b6a16
mov edx, edi
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4b6a03
cmp byte [edi], 0
jne 0x4b6c78
mov edx, edi
mov eax, esi
sub edx, esi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4b6a20
jmp 0x4b6c78
push 0x5ebfdc
push edi
call fcn.005e31f5
add esp, 8
test eax, eax
jne 0x4b6c78
mov ebp, dword [esp + 0x50]
push esi
mov byte [ebp], al
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4b6c12
test al, 0x20
je 0x4b6a75
mov edi, ebp
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4b6a63
mov cx, word [0x5ebfd8]
mov word [edi], cx
test ah, 8
je 0x4b6a92
mov edi, ebp
dec edi
lea ecx, [ecx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4b6a80
mov dx, word [0x5e6eb8]
mov word [edi], dx
test al, 0x40
je 0x4b6ab2
mov edi, ebp
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4b6aa0
mov cx, word [0x5ebfd4]
mov word [edi], cx
test al, 0x10
je 0x4b6ad2
mov edi, ebp
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4b6ac0
mov dx, word [0x5e6e94]
mov word [edi], dx
test ah, 0x40
je 0x4b6af2
mov edi, ebp
dec edi
lea ebx, [ebx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4b6ae0
mov cx, word [0x5e7fb8]
mov word [edi], cx
test al, 2
je 0x4b6b12
mov edi, ebp
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4b6b00
mov dx, word [0x5ebfd0]
mov word [edi], dx
test al, al
jns 0x4b6b32
mov edi, ebp
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4b6b20
mov cx, word [0x5e6eac]
mov word [edi], cx
test ah, 0x20
je 0x4b6b52
mov edi, ebp
dec edi
lea ebx, [ebx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4b6b40
mov dx, word [0x5e6e6c]
mov word [edi], dx
test ah, 0x10
je 0x4b6b72
mov edi, ebp
dec edi
lea ebx, [ebx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4b6b60
mov cx, word [0x5ebfcc]
mov word [edi], cx
test al, 1
je 0x4b6b92
mov edi, ebp
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4b6b80
mov dx, word [0x5ebfc8]
mov word [edi], dx
test ah, 4
je 0x4b6bb2
mov edi, ebp
dec edi
lea ebx, [ebx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4b6ba0
mov cx, word [0x5e6ea0]
mov word [edi], cx
test ah, 2
je 0x4b6bd2
mov edi, ebp
dec edi
lea ebx, [ebx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4b6bc0
mov dx, word [0x5e6ec8]
mov word [edi], dx
test al, 4
je 0x4b6bf2
mov edi, ebp
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4b6be0
mov cx, word [0x5e8060]
mov word [edi], cx
test ah, 1
je 0x4b6c12
mov edi, ebp
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4b6c00
mov dx, word [str.yrohva]
mov word [edi], dx
mov edx, dword [esp + 0x48]
mov eax, ebp
sub edx, ebp
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4b6c20
mov ebp, dword [esp + 0x44]
jmp 0x4b6c78
lea eax, [esp + 0xc]
push eax
push esi
call fcn.004243c0
add esp, 8
test eax, eax
je 0x4b6c60
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x48]
push ecx
push edx
push str._I64Ld
push eax
call fcn.005cc759
add esp, 0x10
jmp 0x4b6c78
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x48]
push ecx
push 0x5e6a44
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
pop edi
mov eax, dword [ebp + 8]
test eax, eax
jle 0x4b6ca2
mov esi, dword [esp + 0x3c]
mov eax, dword [ebp + 0x40]
mov ecx, dword [esi]
push eax
push ecx
call fcn.004e3140
mov dword [esi], eax
mov ecx, dword [ebp + 8]
add esp, 8
dec ecx
mov eax, ecx
test eax, eax
mov dword [ebp + 8], ecx
jg 0x4b6c84
mov dword [ebp + 8], 0
pop esi
mov eax, 2
pop ebp
add esp, 0x2c
ret